# Steam Community Profile API Documentation

Retrieve a public Steam community profile by vanity name or SteamID64: persona name, privacy state, avatar, level, games count, groups and more. Friends-only profiles return limited but valid data. Private or unknown profiles return a 404.

- **Documentation:** [https://scrappa.co/docs/steam-api/steam_profile](https://scrappa.co/docs/steam-api/steam_profile)
- **API group:** Steam API
- **Endpoint:** `GET https://scrappa.co/api/steam/profile`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `identifier` | string | Yes | Steam vanity name (e.g. robinwalker) or 17-digit SteamID64. |
| `include_html` | boolean | No | Include level and count data from the SSR HTML (vanity names only). Defaults to false. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/steam/profile?identifier=robinwalker"
```

## Example response

```json
{
    "success": true,
    "data": {
        "steamid64": "76561197960435530",
        "persona_name": "Robin",
        "privacy_state": "public",
        "avatar": {
            "icon": "https://avatars.akamai.steamstatic.com/abc.jpg",
            "medium": "https://avatars.akamai.steamstatic.com/abc_medium.jpg",
            "full": "https://avatars.akamai.steamstatic.com/abc_full.jpg"
        },
        "custom_url": "robinwalker",
        "groups": [
            {
                "group_id64": "103582791435162258",
                "group_name": "Steam",
                "group_url": "https://steamcommunity.com/groups/steam",
                "member_count": 12345
            }
        ]
    },
    "meta": {
        "endpoint_family": "profile",
        "billable": true
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 404 | Not Found | The requested Steam profile was not found or is private. This response is not billable. |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
