DocumentationAPI v1
Documentation/Reference and coverage/A competition

A competition

One competition, its editions and how its market behaves.

Livelast 30 days Archive and upwhole archive

Parameters

The path first, then the query
competition_ididrequired
A competition, as cp_ followed by six characters.

Try it

Your key, sent from your browser straight to the API
Paste your keyGet a free one in a minute
GET
https://api.dartsapi.com/v1/competitions/{id}
Run it to see your limits

What comes back

In data, read from a real response
FieldTypeExample
competition_idid"cp_2YJ4TA"
namestring"European Tour"
editionslist3 items

When it refuses

Every error code
StatusCodeWhen
401no_keyNo key, a malformed key, or one that is not ours.
402upgrade_requiredYour plan does not reach this endpoint. The message names the plan that does.
400bad_idAn id of the wrong type in the path.
404not_foundNo record with that id.
422bad_parameterA parameter is malformed or out of range, named in the message.
429rate_limitedOver your rate or allowance. Retry-After says when.

Related