getPlayers
Get a list of Players for a specific Team or Event
GET
https://api.sportsgameodds.com/v2/players/Parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
teamID | string | No | TeamID to get Players data for | KANSAS_CITY_CHIEFS_NFL |
eventID | string | No | EventID to get Players data for | mXCZTRJnbX8ib64z1h3D |
playerID | string | No | PlayerID to get data for | PATRICK_MAHOMES_SAN_FRANCISCO_49ERS_NFL |
limit | number | No | The maximum number of Players to return | 25 |
cursor | string | No | The cursor for the request. Used to get the next group of Players. This should be the nextCursor from the prior response. | n.1720564800000.DCtqsAt8d0GIFAvMmfzD |
Response 200 OK
{
"success": true,
"data": [
{
"sportID": "BASEBALL",
"leagueID": "MLB",
"jerseyNumber": 31,
"position": "RF",
"playerID": "HENRY_RAMOS_1_MLB",
"names": {
"display": "Henry Ramos",
"firstName": "Henry",
"lastName": "Ramos"
},
"aliases": [
"HENRY_RAMOS_CINCINNATI_REDS_MLB"
],
"teamID": "",
"birthday": "1992-04-15"
}
]
}Error Responses
400Invalid params
401Invalid API key
403Inactive API key
404No Players found
429Rate limit exceeded
500Query failed
