Skip to main content
GET
List teams
Use it to find a team_id. More ways to look up IDs: Finding IDs.

Authorizations

Authorization
string
header
required

Your API key, sent as Authorization: Bearer YOUR_API_KEY. Get one at https://www.thestatsapi.com/api-keys

Query Parameters

page
integer
default:1

Page number, starting at 1. meta.total_pages tells you how many there are

Required range: x >= 1
per_page
integer
default:20

Results per page (default 20, max 100). The older name limit also works the same way

Required range: 1 <= x <= 100
competition_id
string

Only teams that play in this competition. Without season_id, uses the competition's latest season that has a table

season_id
string

Only teams in this season. Use it with competition_id; a season from a different competition returns 400

country
string

Team's country, case-insensitive, e.g. England

Part of the team name, case-insensitive. The best match comes first unless you set sort=name

is_mens_team
boolean

true returns men's teams only, false women's teams only. Omit for both. Useful when a men's and a women's team share a name

sort
enum<string>
default:relevance

relevance (default) puts the best matches for search first. name sorts A to Z. Without search, results are A to Z either way

Available options:
relevance,
name

Response

A page of teams.

data
object[]
meta
object