Referees & managersEndpoint 100 of 116
Referee
https://api.datasportsapi.com/
- Plan
- All plans
- Auth
Bearer dsa_live_…- Parameters
- 1 required · 0 optional
- Returns
RefereeProfile
Referee profile with country, sport, career totals (matches plus yellow, red and second-yellow cards) and a per-competition breakdown of appearances, cards and penalties awarded.
Worth knowing
Career totals come straight from the source. competitions covers every competition the referee has officiated in, or is [] if the source lists none. Figures are not broken down by season, because the source has no such split.
01Parameters
idpathRequiredDataSportsAPI referee id, a positive integer
02Request
The same call from the command line and each SDK. The SDK lines assume a client created with your key; left out, it is read from DATASPORTSAPI_API_KEY. Installing a client: SDKs & CLI.
curl -H "Authorization: Bearer dsa_live_…" \
"https://api.datasportsapi.com/v2/referees/{id}"03Response
The top-level keys of the JSON body. Each object links to its full shape in the data reference.
dataRefereeProfilemeta- competitionCount
{ "data": { "id": 51040, "name": "Thomas Bramall", "slug": "thomas-bramall", "country": { "code": "EN", "name": "England" },
"games": 197, "yellowCards": 667, "redCards": 15, "yellowRedCards": 10, "image": "https://cdn.datasportsapi.com/v2/referees/51040/photo", "sport": "football",
"competitions": [ { "league": { "id": 195828, "name": "Premier League", … }, "appearances": 57, "yellowCards": 229,
"redCards": 6, "yellowRedCards": 4, "penalties": 17 }, … ] },
"meta": { "competitionCount": 7 } }04Errors
- 404
not_foundDataSportsAPI has never assigned this id
unauthorized429rate_limited429quota_exceeded500internal_errorEvery error code