Get Teams
Retrieve teams with their short code, city, conference and home arena.
GET/v1/basketball/teams
Parameters
NameTypeRequiredDescription
x-api-keystringRequiredYour API key, sent as a header.
idintegerOptionalFilter by team ID.
league_idintegerOptionalFilter by league ID.
searchstringOptionalSearch by team name (3+ characters).
pageintegerOptionalPage number. Default 1, 50 per page.
Response
- dataarray<Team>Teams matching your filters.
- idintegerUnique team ID.
- namestringTeam name.
- codestringThree-letter short code.
- citystringHome city.
- conferencestringConference, where the league has them.
- arenaobjectHome arena name and city.
- metaobjectpage, per_page and total.
Status codes
- 200Teams returned
- 400Invalid parameter
- 401Missing or invalid API key
- 429Rate limit reached