Steam API endpoint
Returns the current number of concurrent players for a Steam app, given its numeric `appid` such as `570`. The response has `appid`, `player_count` and a `source_url`. An app with no player-count data returns 404.
/steam/playersQuery parameters:
appid (required) — numeric Steam app id (e.g. 570).| Field | In the sample | Value in the sample |
|---|---|---|
| appid | Has a value | |
| player_count | Has a value | 882,376 |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| appid | string | Yes | Numeric Steam app id | 570 | |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/steam/players?appid=570" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"appid": "570",
"player_count": 612345,
"source_url": "https://api.steampowered.com/ISteamUserStats/GetNumberOfCurrentPlayers/v1/?appid=570"
}
}Request schema
No body schema
Response schema
#/definitions/steam.playersResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | steam.PlayersResponse | No | ||||
| data.appid | string | No | Steam app id the count belongs to. | |||
| data.player_count | integer | No | Number of players currently in the app. | |||
| data.source_url | string | No | URL the data was read from. | |||
| msg | string | No | OK |
| Status | Description | Schema |
|---|---|---|
| 400 | Bad Request | #/definitions/app.Response |
| 404 | Not Found | #/definitions/app.Response |
| 503 | Service Unavailable | #/definitions/app.Response |
Use environment variables for secrets and keep Crawlora API keys server-side.
curl -X GET "https://api.crawlora.net/api/v1/steam/players?appid=570" \
-H "x-api-key: $CRAWLORA_API_KEY"