Endpoint
Path parameters
Response (200)
This page is generated from the live API contract at
https://api.thestatsapi.com/llms.txt.Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
Retrieve details for a competition, including country, type, current season, teams, and data availability flags.
GET https://api.thestatsapi.com/api/football/competitions/{competition_id}
| Name | Type | Required | Description |
|---|---|---|---|
competition_id | string | Yes | Example: comp_3039 |
{
"data": {
"id": "comp_3039",
"name": "Premier League",
"country": "England",
"country_code": "GB",
"subdivision_code": "GB-ENG",
"confederation": null,
"type": "league",
"has_team_stats": true,
"has_player_stats": true,
"odds_available": true,
"live_odds_available": true,
"xg_available": true,
"current_season_id": "sn_6125938",
"total_teams": 20
}
}
https://api.thestatsapi.com/llms.txt.