Skip to main content
GET
List competitions
Use it to find a competition_id, then pass it to matches, teams and standings. 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
country
string

Country name, case-insensitive, e.g. England or Spain

country_code
string

Country code as returned in country_code or subdivision_code. GB returns all UK nations; GB-ENG, GB-SCT, GB-WLS and GB-NIR return one nation. Other countries use ISO codes such as DE or ES

type
enum<string>

Competition format

Available options:
league,
cup,
tournament

Part of the competition name, case-insensitive. The best match comes first unless you set sort=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 competitions.

data
object[]
meta
object