Fixtures
Upcoming matches, with the best price where one is held. Live prices are not collected at present, so price is empty on most fixtures.
The call
The address follows the form below
GET
https://api.dartsapi.com/v1/fixtures
Try it
Sent from your browser straight to the API, with your keyYour keyPaste it once, kept in this browser
Kept in this browser as
dartsapi.com.api_key, so every docs page has it. Get a free key and it is put here for you.Ctrl + Enter runs it
Run it to see your limits
Parameters
All in the query string| Name | Type | What it does |
|---|---|---|
from | date | Earliest fixture date to include. |
to | date | Latest fixture date to include. |
competition_id | id | A competition, as cp_ followed by six characters. |
player_id | id | A player, as pl_ followed by six characters. |
limit | int | How many to return. Default 100, at most 500. |
cursor | cursor | Carry on from here: pass back meta.next_cursor exactly as it came. |
Returns
Each item in data, read from a real responseRun it to see the shape of the answer.
When it refuses
Every error code| Status | Code | When |
|---|---|---|
| 401 | no_key | No key, a malformed key, or one that is not ours. |
| 402 | outside_window | Dates outside your plan's window. The answer names the plan that reaches them. |
| 422 | bad_parameter | A parameter is malformed or out of range, named in the message. |
| 429 | rate_limited | Over your rate a minute. Retry-After says when. |
| 429 | allowance_used | The day's or month's allowance is used. The answer names the plan with a larger one. |