PitchAPIDocumentationFixtures

Fixtures API

The entry point when you know the day but not the match.

GET /v1/date/{date} returns every match on one UTC date. It is the endpoint to call when you know the day and nothing else, and the IDs it returns are what the match endpoints take. The date is YYYY-MM-DD in UTC, not the caller's local day.

The status filter decides what comes back. Omitted, it returns played matches only, which is what the endpoint did before fixtures existed. upcoming returns fixtures not yet played with a null score and status of not_started; all returns both.

A league's fixtures are also available from the league endpoint, which is the better call when you already know the competition. For a day across every competition, this is the one.

API reference

Endpoint

Every request takes an X-API-KEY header and returns the JSON envelope described on the overview.

GET/v1/date/{date}

List matches by date

The covered matches on that day. The usual entry point for browsing: take a match ID and follow it into the match endpoints. The list is the same for every plan; a match older than the free window still answers 403 when you open it. Dates before the window answer 403 here. By default only played matches are returned, so a future date is empty unless you pass `status=upcoming` or `status=all` for the fixtures.

Auth API keyResponse JSONQuery 1
datestringrequired

Calendar date as YYYY-MM-DD

statusstring

Which matches to return: played (default — settled results only), upcoming (fixtures not yet played, with a null score and status not_started), or all. Omit it to keep the historical played-only response.

curl https://api.pitchapi.dev/v1/date/{date} \
  -H "X-API-KEY: $PITCH_KEY"
Questions

Common questions

Which timezone is the date in?
UTC. A match at 00:30 local time can belong to the previous UTC date, so compute the date on the server rather than from a visitor's clock.
Why are there no upcoming matches by default?
The default is played only, matching the endpoint's original behaviour. Pass status=upcoming for fixtures or status=all for both.
Something missing or wrong? That is a bug in the docs.Get a free key
On this page