Skip to content
datasportsAPI

LeaguesLeague fixtures

Documentation

/

Type to filter the docs by title or path.

LeaguesEndpoint 74 of 116

League fixtures

GET

/v2/leagues/{id}/fixtures

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

  • idpathRequired

    league id issued by DataSportsAPI, a positive integer

  • seasonqueryRequired

    season id, as listed by /v2/leagues/{id}/seasons

  • roundqueryRequired

    round number taken from /rounds, between 1 and 9999

  • slugqueryOptional

    slug of the round as given by /rounds, if the round has one

  • prefixqueryOptional

    prefix 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.

data
Fixture[]
meta
season, round, slug, prefix, count
ObjectsFixture
Example response
{ "data": [ { "id": 201324, "round": { "number": 7, "name": null, "slug": null, "prefix": null }, … }, … ],
  "meta": { "season": 200386, "round": 7, "slug": null, "prefix": null, "count": 10 } }

04Errors

  • 400bad_request

    season or round is absent, or slug or prefix is malformed

  • 404not_found

    the season id does not belong to this league; the error message names the offending parameter, and /v2/leagues/{id}/seasons lists the valid ones

Any key can also meet401unauthorized429rate_limited429quota_exceeded500internal_errorEvery error code