LeaguesEndpoint 74 of 116
League fixtures
https://api.datasportsapi.com/
- Plan
- All plans
- Auth
Bearer dsa_live_…- Parameters
- 3 required · 2 optional
- Returns
Fixture[]
Returns all fixtures in a single round of a season.
01Parameters
idpathRequiredleague id issued by DataSportsAPI, a positive integer
seasonqueryRequiredseason id, as listed by /v2/leagues/{id}/seasons
roundqueryRequiredround number taken from /rounds, between 1 and 9999
slugqueryOptionalslug of the round as given by /rounds, if the round has one
prefixqueryOptionalprefix of the round as given by /rounds; applied only in combination with slug
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/leagues/{id}/fixtures?season=…&round=…"03Response
The top-level keys of the JSON body. Each object links to its full shape in the data reference.
dataFixture[]meta- season, round, slug, prefix, count
{ "data": [ { "id": 201324, "round": { "number": 7, "name": null, "slug": null, "prefix": null }, … }, … ],
"meta": { "season": 200386, "round": 7, "slug": null, "prefix": null, "count": 10 } }04Errors
- 400
bad_requestseason or round is absent, or slug or prefix is malformed
- 404
not_foundthe season id does not belong to this league; the error message names the offending parameter, and /v2/leagues/{id}/seasons lists the valid ones
unauthorized429rate_limited429quota_exceeded500internal_errorEvery error code