Get leagues
Markets
Get leagues
List leagues with active markets
GET
Get leagues
Returns every league with active markets on the exchange. Use league codes from this endpoint to fetch games (Documentation Index
Fetch the complete documentation index at: https://docs.4casters.io/llms.txt
Use this file to discover all available pages before exploring further.
/exchange/v2/getGames) and orderbooks (/exchange/v2/getOrderbook).
If the response contains a league name with LIVE in it (other than the per-sport live leagues NFL-LIVE, NBA-LIVE, NCAAF-LIVE, NCAAB-LIVE), the value "LIVE" is appended as an alias for “all in-play games”.
Request
GET /exchange/getLeagues
Optional sport filter (
basketball, baseball, hockey, football, soccer, golf, tennis, mma, etc.). When sport=soccer or sport=golf, the value "all" is appended to the list.Response
Array of league codes.
Example
Authorizations
Pass your auth token in the Authorization header. The Bearer prefix is optional; the server also accepts a signed auth cookie or a token field in the request body.
Query Parameters
Optional sport filter (e.g. basketball, soccer, golf). When sport=soccer or sport=golf, all is appended to the list.
Response
Available leagues