getStats
Get a list of StatIDs
GET
https://api.sportsgameodds.com/v2/stats/Parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
statID | string | No | StatID to get data for | POINTS |
sportID | string | No | SportID to get StatIDs for | BASKETBALL |
statLevel | string | No | Level of the stat, must be used in combination with sportID. Must be one of all, player, or team. Shows stats that are applicable to that specified entity, defaults to all. | team |
Response 200 OK
{
"success": true,
"data": [
{
"type": "number",
"statID": "batting_homeRuns",
"supportedLevels": {
"all": true,
"team": true,
"player": true
},
"displays": {
"short": "HRs",
"long": "Home Runs"
},
"description": "Home runs",
"supportedSports": {
"BASEBALL": "Home Runs"
}
}
]
}Error Responses
400Invalid params
401Invalid API key
403Inactive API key
404No stats found
429Rate limit exceeded
