Skip to main content
GET
/
competitions
List Competitions
curl --request GET \
  --url https://v1.basketball.sportsapipro.com/competitions \
  --header 'x-api-key: <api-key>'
{
  "competitions": [
    {
      "id": 123,
      "name": "<string>",
      "country": {
        "id": 123,
        "name": "<string>"
      },
      "hasStandings": true,
      "hasBrackets": true
    }
  ]
}

Endpoint

GET https://v1.football.sportsapipro.com/competitions

Description

Returns a comprehensive list of all available competitions (leagues, cups, tournaments) along with all countries. This is the primary endpoint for discovering available football data.
When filtering by competitionIds, the response may include additional related competitions beyond those requested. Always filter the competitions array by the specific ID you need:
const targetCompetition = data.competitions.find(c => c.id === competitionId);

Parameters

ParameterTypeRequiredDefaultDescription
sportsnumberNo1Sport ID (1 = Football)
timezoneNamestringNoAutoTimezone for date/time values (auto-resolved, or specify e.g., America/New_York)
Parameters like appTypeId, langId, timezoneName, and userCountryId are automatically resolved by the upstream service. You can override timezoneName to receive date/time values in a specific timezone.

Request

curl -X GET "https://v1.football.sportsapipro.com/competitions?sports=1" \
  -H "x-api-key: YOUR_API_KEY"

Response

{
  "lastUpdateId": 5493716652,
  "requestedUpdateId": -1,
  "ttl": 300,
  "sports": [
    {
      "id": 1,
      "name": "Football",
      "nameForURL": "football",
      "drawSupport": true,
      "imageVersion": 1
    }
  ],
  "countries": [
    {
      "id": 1,
      "name": "England",
      "totalGames": 23,
      "liveGames": 0,
      "nameForURL": "england",
      "imageVersion": 1
    },
    {
      "id": 2,
      "name": "Spain",
      "totalGames": 12,
      "liveGames": 0,
      "nameForURL": "spain",
      "imageVersion": 1
    }
  ],
  "competitions": [
    {
      "id": 7,
      "countryId": 1,
      "sportId": 1,
      "name": "Premier League",
      "longName": "English Premier League",
      "hasStandings": true,
      "hasBrackets": false,
      "hasStats": true,
      "hasTransfers": true,
      "totalGames": 10,
      "liveGames": 0,
      "nameForURL": "premier-league",
      "popularityRank": 500000000,
      "currentSeasonNum": 35,
      "currentStageNum": 1,
      "color": "#3D195B",
      "imageVersion": 5,
      "isActive": true
    }
  ]
}

Country Object

FieldTypeDescription
idnumberUnique country identifier
namestringCountry name
totalGamesnumberTotal games today in this country
liveGamesnumberCurrently live games
nameForURLstringURL-friendly name
imageVersionnumberImage version for cache busting
isInternationalbooleanWhether this is an international entity

Competition Object

FieldTypeDescription
idnumberUnique competition identifier
countryIdnumberAssociated country ID
sportIdnumberSport ID (1 = Football)
namestringCompetition name
longNamestringFull competition name
hasStandingsbooleanWhether standings are available
hasBracketsbooleanWhether brackets are available (cups)
hasStatsbooleanWhether statistics are available
totalGamesnumberTotal games today
liveGamesnumberCurrently live games
currentSeasonNumnumberCurrent season number
colorstringBrand color (hex)
imageVersionnumberImage version for logos
isActivebooleanWhether competition is currently active

Images

Country Flag

https://v1.football.sportsapipro.com/images/countries/{countryId}?imageVersion={imageVersion}
https://v1.football.sportsapipro.com/images/competitions/{competitionId}?imageVersion={imageVersion}

Authorizations

x-api-key
string
header
required

Your SportsAPI Pro API key

Query Parameters

countryId
integer

Filter by country ID

Response

200 - application/json

Competitions retrieved successfully

competitions
object[]