Skip to main content
GET
/
games
/
fixtures
Upcoming Games
curl --request GET \
  --url https://v1.basketball.sportsapipro.com/games/fixtures \
  --header 'x-api-key: <api-key>'

Team Fixtures

Retrieve fixtures (upcoming and past games) for a specific team or competitor.

Endpoint

GET /games/fixtures

Description

Returns a list of games for a specific competitor (team), including upcoming fixtures and past results. The response includes competition filters, game details, and optional betting odds.

Parameters

ParameterTypeRequiredDescription
competitorsnumberYesThe competitor (team) ID to get fixtures for
showOddsbooleanNoInclude betting odds in response (default: true)
includeTopBettingOpportunitynumberNoInclude top betting opportunities (1 = yes)
topBookmakernumberNoFilter odds by specific bookmaker ID

Auto-Resolved Parameters

These parameters are automatically determined by the API based on the user’s context:
ParameterDescription
appTypeIdClient application type identifier
langIdLanguage identifier for localized content
timezoneNameUser’s timezone for time formatting (can be overridden with IANA timezone, e.g., America/New_York)
userCountryIdUser’s country for regional content
All startTime fields use ISO 8601 format with a dynamic timezone offset based on the resolved or specified timezone.

Request Example

curl -X GET "https://v1.football.sportsapipro.com/games/fixtures?competitors=110&showOdds=true" \
  -H "x-api-key: YOUR_API_KEY"

Response Structure

{
  "lastUpdateId": 5495172167,
  "requestedUpdateId": -1,
  "ttl": 300,
  "paging": {
    "previousPage": "/web/games/?competitors=110&direction=-1...",
    "nextPage": "/web/games/?competitors=110&direction=1..."
  },
  "summary": {},
  "competitionFilters": [...],
  "sports": [...],
  "countries": [...],
  "competitions": [...],
  "competitors": [...],
  "games": [...],
  "bookmakers": [...]
}

Response Fields

Root Object

FieldTypeDescription
lastUpdateIdnumberInternal versioning ID for caching and incremental updates
requestedUpdateIdnumberThe update ID requested by client (-1 = latest)
ttlnumberTime To Live in seconds (cache duration)
pagingobjectPagination links for previous/next pages
summaryobjectSummary statistics (may be empty)
competitionFiltersarrayCompetitions the team participates in
sportsarraySport definitions
countriesarrayCountry data for competitions
competitionsarrayFull competition details
competitorsarrayTeam/competitor details
gamesarrayList of fixtures and results
bookmakersarrayBookmaker information for odds

Competition Filter Object

{
  "id": 7,
  "countryId": 1,
  "sportId": 1,
  "name": "Premier League",
  "shortName": "EPL",
  "hasBrackets": false,
  "nameForURL": "premier-league",
  "popularityRank": 92856977,
  "imageVersion": 12,
  "currentStageType": 1,
  "color": "#075C9C",
  "competitorsType": 0,
  "currentPhaseNum": -1,
  "currentSeasonNum": 131,
  "currentStageNum": 1,
  "hideOnCatalog": false,
  "hideOnSearch": false,
  "isInternational": false
}
FieldTypeDescription
idnumberCompetition unique identifier
countryIdnumberCountry the competition belongs to
sportIdnumberSport type identifier
namestringFull competition name
shortNamestringAbbreviated competition name
longNamestringExtended competition name (optional)
hasBracketsbooleanWhether competition has bracket/knockout stages
nameForURLstringURL-safe competition name
popularityRanknumberPopularity score for sorting
imageVersionnumberVersion number for competition logo
currentStageTypenumberCurrent stage type (1=league, 3=knockout)
colorstringBrand color for the competition (hex)
competitorsTypenumberType of competitors (0=clubs, 1=national teams)
currentPhaseNumnumberCurrent phase number (-1 if not applicable)
currentSeasonNumnumberCurrent season number
currentStageNumnumberCurrent stage number
hideOnCatalogbooleanWhether to hide in catalog views
hideOnSearchbooleanWhether to hide in search results
isInternationalbooleanWhether it’s an international competition

Paging Object

FieldTypeDescription
previousPagestringURL path to previous page of results
nextPagestringURL path to next page of results

Use Cases

Get Team Schedule

Retrieve all upcoming and past fixtures for a specific team:
const teamId = 110; // Manchester City
const fixtures = await sportsApi.get('/games/fixtures', {
  competitors: teamId,
  showOdds: true
});

// Filter upcoming games (statusGroup 1 = Scheduled)
const upcomingGames = fixtures.games.filter(g => g.statusGroup === 1);

// Filter completed games (statusGroup 4 = Ended)
const completedGames = fixtures.games.filter(g => g.statusGroup === 4);

// Filter live games (statusGroup 2 = 1st half, 3 = 2nd half)
const liveGames = fixtures.games.filter(g => g.statusGroup === 2 || g.statusGroup === 3);

Filter by Competition

Use the competitionFilters to show fixtures by competition:
const fixtures = await sportsApi.get('/games/fixtures', {
  competitors: 110
});

// Group games by competition
const gamesByCompetition = {};
fixtures.games.forEach(game => {
  const compId = game.competitionId;
  if (!gamesByCompetition[compId]) {
    gamesByCompetition[compId] = [];
  }
  gamesByCompetition[compId].push(game);
});

// Get competition names
fixtures.competitionFilters.forEach(comp => {
  console.log(`${comp.name}: ${gamesByCompetition[comp.id]?.length || 0} games`);
});

Image URLs

https://v1.football.sportsapipro.com/images/competitions/{id}?imageVersion={imageVersion}

Notes

  • The ttl value (300 seconds / 5 minutes) indicates how long the response can be cached
  • Use pagination links (paging.nextPage, paging.previousPage) to navigate through results
  • The competitionFilters array shows all competitions the team is participating in during the current season
  • Games are returned in chronological order, including both past results and upcoming fixtures

Authorizations

x-api-key
string
header
required

Your SportsAPI Pro API key

Query Parameters

competitions
integer

Filter by competition ID

Example:

132

date
string<date>

Filter by date (YYYY-MM-DD)

Example:

"2026-01-26"

Response

200

Fixtures retrieved successfully