API v3 Documentation

Endpoints Code Lookup

← All endpoints

leaguecodes

reference EuroBB,AsiaBB,AmerBB,MBB,MB2,MB3,MBIA,MBJC,WBB,WB2,WB3,WBIA,WBJC,MiLB,FC,PFB,CFB

A query to this endpoint will return a list of league codes for use in other queries.

FC League Codes
https://api3.natst.at/xxxx-xxxxxx/leaguecodes/fc Download sample

Parameters

Range

NameRequiredTypeDescription
dataformat optional range Controls the data format by which query results are returned. Acceptable values are xml, json or php. The default value is json. Example: https://api3.natst.at/xxxx-xxxxxx/leaguecodes/nba/xml
season optional range A valid season code (the year when a particular season completes) in YYYY format. A list of available values can be retrieved from the seasons endpoint. Example: https://api3.natst.at/xxxx-xxxxxx/leaguecodes/nba/2025
leaguecode optional range A two to eight-character code for a league. A list of available values can be retrieved from the /leaguecodes endpoint or the lookup below. Example: https://api3.natst.at/xxxx-xxxxxx/leaguecodes/eurobb/XXX
search optional range If a comma-separated value is none of the above, the API will assume it is a search term. The system will only accept the first entry in a string as a search term. Example: https://api3.natst.at/xxxx-xxxxxx/leaguecodes/nba/XXX

Path

NameRequiredTypeDescription
endpoint required path The API endpoint to query. This must be the second path parameter. Example: https://api3.natst.at/xxxx-xxxxxx/leaguecodes/...