DocumentationAPI v1
Documentation/Editions/Simulate bracket

Simulate bracket

The same calculation over a draw the caller supplies, so outrights exist before a draw reaches the archive.

Analystonly

The call

The address follows the form below
POST
https://api.dartsapi.com/v1/simulate/bracket

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

Sent as the JSON body
NameTypeWhat it does
body requiredJSON bodyA JSON body: draw is a list of player ids in draw order, a power of two long, with null for a bye; format or rounds give the match length.

Returns

In data, read from a real response
FieldTypeExample
fieldnumber8
roundslist3 items
playerslist3 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 answer names the plan that does, and its checkout.
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.