/baseball/leaguesGet baseball leagues
Returns a list of all available baseball leagues
Parameters
futurestring · queryFilter to leagues with future matches (true)
Response
JSON with success, the result in data, and where the endpoint pages its results meta.
dataarray of objectdivisionsarray of stringDivisions: the separate competitions the data provider files under this one id (soccer only, e.g. the five Regionalliga divisions). Filter matches of one division with league_name.
gidintegeridintegernamestringname_sourcestringofficial_namestringOfficialName: the competition's name without country and stage, from the official source, Wikidata or the data provider (NameSource); stable when a sponsor renames the league. Name stays the provider's ("Country: League"), the value the league_name filters take.
errorobjectcodestringmessagestringmetaobjectattributionstringAttribution a data source's licence asks for (Cricsheet's history).
limitintegeroffsetintegertotalintegersuccessboolean
Errors
| Status | Code | When |
|---|---|---|
| 401 | UNAUTHORIZED | The key is missing, mistyped or was rotated. |
| 403 | FORBIDDEN | The sport or feature is not in your plan (FEATURE_NOT_IN_PLAN for Insights and other plan features). |
| 500 | INTERNAL_ERROR | Our side. Try again after a few seconds and check the status page. |
All errors have the shape described in Errors and limits.
Generated from the OpenAPI file, version 1.0. See it as JSON