DataSportAPI
Docs
Your first call in one line

The free key reads yesterday for every sport, 50 calls a day. No card.

Get a free key
Every sport, one key

Complete reads all sixteen sports for $249 a month.

Take Complete
Ask in plain words

"Who won at Kempton yesterday?" Your assistant picks the tool and answers from your plan.

Connect in two minutes
Showing

Baseball results API

Results
Not held for this sportKept 6 hours

Finished games by date, with the final score.

Baseball does not have this endpoint. The call answers 501 not_held, and the sport's other endpoints are listed below.

GET/v1/baseball/results

Parameters

Query values this call takes. Anything else is refused with bad_param and the list it accepts.

NameTypeWhat it does
datedateoptionalOne day, written YYYY-MM-DD. Leave it out for the default day. The free key reads yesterday only.
competitionidoptionalOnly this competition, by its id from Competitions.
pageintegeroptionalWhich page of rows, from 1.
per_pageintegeroptionalRows per page, up to 100 on most lists.

Returns

The fields of data are listed here from a real answer as soon as one is held. Every answer also carries meta.

metaWhat it holds
sport, endpointWhat you asked
countRows in this answer
page, per_page, total, next_cursorWhere you are in a paged list, when it is paged
as_ofWhen the data was built
cached, age_secondsWhether this is a stored copy, and its age
accessOn the free key: what it reads, and the plan that opens the rest

Errors

Codes this call can give. Each is explained in Errors.

StatusCodeWhen
501not_heldBaseball does not have this endpoint
503comingBaseball is being connected

The free key reads yesterday. The Baseball plan opens live, fixtures and every date held, for $49 a month.

Add Baseball