DocumentationAPI v1
Documentation/Players/Head to head

Head to head

A full rivalry: the record, each player's averages across their meetings, the form and the biggest wins, with the meetings paged.

Free key7 days behind Livelast 30 days Archive and upwhole archive MCP head_to_head

The call

The address follows the form below
GET
https://api.dartsapi.com/v1/head-to-head

Try it

Sent from your browser straight to the API, with your key
Your 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
NameTypeWhat it does
player_id requiredidA player, as pl_ followed by six characters.
opponent_id requiredidThe other player, as pl_ followed by six characters.
fromdateEarliest date to include, YYYY-MM-DD.
todateLatest date to include, YYYY-MM-DD.
limitintHow many to return. Default 50, at most 200.
cursorcursorCarry on from here: pass back meta.next_cursor exactly as it came.

Returns

In data, read from a real response
FieldTypeExample
playerslist2 items
meetingsnumber39
first_meetingdate"2024-01-03"
last_meetingdate"2026-09-06"
matcheslist3 items
meta.next_cursorstringPass back as cursor for the next page; null on the last

When it refuses

Every error code
StatusCodeWhen
401no_keyNo key, a malformed key, or one that is not ours.
402outside_windowDates outside your plan's window. The answer names the plan that reaches them.
422bad_parameterA parameter is malformed or out of range, named in the message.
429rate_limitedOver your rate a minute. Retry-After says when.
429allowance_usedThe day's or month's allowance is used. The answer names the plan with a larger one.