Skip to main content
GET
/
athletes
/
nextGame
Player's Next Game
curl --request GET \
  --url https://v1.basketball.sportsapipro.com/athletes/nextGame \
  --header 'x-api-key: <api-key>'

Endpoint

GET https://v1.football.sportsapipro.com/athletes/nextGame

Description

Returns the next scheduled game for a specific athlete, including detailed match information, competitor data, venue, betting predictions, and player-specific prop bets. This endpoint is ideal for player-focused betting applications and upcoming match previews.

Parameters

ParameterTypeRequiredDescription
athletesnumberYesAthlete ID (e.g., 57415 for Ayoub El Kaabi)
fullDetailsbooleanNoInclude full game details (default: true)
topBookmakernumberNoPreferred bookmaker ID for odds (default: 14 for Bet365)
appTypeIdnumberNoClient application type identifier (auto-resolved)
langIdnumberNoLanguage identifier (auto-resolved)
timezoneNamestringNoTimezone for date/time values (auto-resolved, or specify e.g., America/New_York)
userCountryIdnumberNoUser’s country for localization (auto-resolved)
The athletes parameter is required. Use the athlete ID from the /athletes/top endpoint or other athlete endpoints. All startTime fields use ISO 8601 format with a dynamic timezone offset based on the resolved or specified timezone.

Request

curl -X GET "https://v1.football.sportsapipro.com/athletes/nextGame?athletes=57415&fullDetails=true" \
  -H "x-api-key: YOUR_API_KEY"

Response

{
  "lastUpdateId": 5500197825,
  "requestedUpdateId": -1,
  "ttl": 600,
  "athletes": [
    {
      "id": 57415,
      "name": "Ayoub El Kaabi",
      "shortName": "El Kaabi",
      "nameForURL": "ayoub-el-kaabi",
      "sportId": 1,
      "clubId": 1023,
      "nationalityId": 127,
      "nationalTeamId": 5093,
      "nationalityName": "Morocco",
      "age": 32,
      "gender": 1,
      "status": 1,
      "imageVersion": 0,
      "position": {
        "id": 4,
        "name": "Attacker"
      },
      "formationPosition": {
        "id": 12,
        "name": "Centre Forward",
        "order": 12
      },
      "nextGame": {
        "id": 4365029,
        "sportId": 1,
        "competitionId": 167,
        "competitionDisplayName": "Africa Cup of Nations - Group A",
        "startTime": "2025-12-26T12:00:00+00:00",
        "statusGroup": 2,
        "statusText": "Scheduled",
        "shortStatusText": "Sched.",
        "hasBets": true,
        "hasPlayerBets": true,
        "hasStats": true,
        "hasStandings": true,
        "homeCompetitor": {
          "id": 5093,
          "name": "Morocco",
          "symbolicName": "MAR",
          "imageVersion": 1,
          "color": "#E60000"
        },
        "awayCompetitor": {
          "id": 5097,
          "name": "Mali",
          "symbolicName": "MAL",
          "imageVersion": 1,
          "color": "#FFFFFF"
        },
        "venue": {
          "id": 8346,
          "name": "Stade Prince Moulay Abdallah"
        },
        "promotedPredictions": {
          "playersBetsPredictions": [
            {
              "id": -2069462872,
              "type": 59,
              "title": "To Score at Any Time",
              "totalVotes": 174,
              "odds": {
                "lineId": 1656121385,
                "gameId": 4365029,
                "bookmakerId": 14,
                "athleteId": 57415,
                "bookmaker": {
                  "id": 14,
                  "name": "Bet365",
                  "color": "#007B5B"
                },
                "options": [
                  {
                    "num": 1,
                    "name": "Yes",
                    "rate": {
                      "decimal": 2.62,
                      "fractional": "13/8",
                      "american": "+162"
                    },
                    "trend": 3
                  }
                ]
              },
              "options": [
                {
                  "num": 1,
                  "name": "Yes",
                  "vote": {
                    "count": 167,
                    "percentage": 96
                  }
                },
                {
                  "num": 2,
                  "name": "No",
                  "vote": {
                    "count": 7,
                    "percentage": 4
                  }
                }
              ]
            }
          ]
        }
      }
    }
  ],
  "sports": [...],
  "countries": [...],
  "competitions": [...],
  "competitors": [...]
}

Response Fields

Athlete Object

FieldTypeDescription
idnumberUnique athlete identifier
namestringFull athlete name
shortNamestringAbbreviated display name
clubIdnumberCurrent club/team ID
nationalTeamIdnumberNational team ID (if applicable)
nationalityNamestringNationality country name
agenumberCurrent age in years
positionobjectGeneral playing position
formationPositionobjectSpecific formation position
nextGameobjectUpcoming match details

Next Game Object

FieldTypeDescription
idnumberUnique game identifier
competitionIdnumberCompetition ID
competitionDisplayNamestringFull competition name with stage
startTimestringISO 8601 timestamp with dynamic timezone offset
statusTextstringGame status (e.g., “Scheduled”, “Live”)
homeCompetitorobjectHome team details
awayCompetitorobjectAway team details
venueobjectMatch venue information
hasBetsbooleanWhether betting lines are available
hasPlayerBetsbooleanWhether player prop bets are available
promotedPredictionsobjectFeatured betting predictions

Player Bets Prediction Object

FieldTypeDescription
typenumberBet type ID (57=First Goalscorer, 58=Last Goalscorer, 59=Anytime Scorer)
titlestringBet type name
totalVotesnumberNumber of community votes
oddsobjectBookmaker odds details
optionsarrayVoting options with percentages

Odds Object

FieldTypeDescription
lineIdnumberUnique betting line identifier
bookmakerIdnumberBookmaker identifier
athleteIdnumberAthlete ID for this prop bet
bookmakerobjectBookmaker details (name, color)
optionsarrayBetting options with rates

Rate Object

FieldTypeDescription
decimalnumberDecimal odds format (e.g., 2.62)
fractionalstringFractional odds format (e.g., “13/8”)
americanstringAmerican odds format (e.g., “+162”)

Player Bet Types

Type IDNameDescription
57First GoalscorerPlayer scores the first goal
58Last GoalscorerPlayer scores the last goal
59To Score at Any TimePlayer scores at any point

Trend Values

ValueMeaning
1Odds decreasing (better for bettor)
2Odds stable
3Odds increasing (worse for bettor)

Use Cases

Player Betting Hub

Display upcoming games for tracked athletes with player prop bets

Match Preview

Show detailed match information for an athlete’s next fixture

Odds Comparison

Compare betting odds across different bet types for a player

Fan Engagement

Display community voting predictions for player performance

Authorizations

x-api-key
string
header
required

Your SportsAPI Pro API key

Query Parameters

athleteId
integer
required

Player ID

Example:

12345

Response

200

Player's next game retrieved successfully