Matches Analysis

Thời gian cập nhật: 2026-07-16 10:37

Introduction

• This API endpoint returns match analysis data for the queried matchId — including historical head-to-head results, each team's recent form, and each team's upcoming/recent schedule — for matches within 7 days before or after the current time.

• Data is cached for 24 hours and does not update frequently.

• For a visual reference of this data, see: https://www.goaloo.com/basketball/nba-summer-league-minnesota-timberwolves-vs-indiana-pacers/analysis-719976

Related Plans

You can use this api by subscribing plans:  Stats.

Request

  • Path: /sport/basketball/analysis
  • Method: GET
  • Calls: This interface is limited to 1 second/call;
  • Recommend Calls: 1 day/call
  • Parameters:
ParameterValueRequiredDescription
matchIdstringtrueReturns match analysis data for the specified match.

Response

ParameterValueDescription
headToHead listEach entry is a comma-separated string containing the following fields in order.

headToHead returns up to the last 20 meetings between the two teams in the queried match; homeLastMatches and awayLastMatches return up to the last 20 matches played by the home team and away team respectively, against any opponent.
matchId string Unique ID of this historical match.
leagueId string Unique ID of the league.
league string Name of the league, e.g. NBA.
color stringRGB color code used to distinguish leagues, e.g. #FF0000.
matchTime stringMatch time (Unix timestamp, GMT+0).
matchType stringRegular, Playoffs, Preseason, or undefined (if classification is unavailable).
homeTeamId string ID of the home team in this historical match.
home string Name of the home team in this historical match.
awayTeamId string ID of the away team in this historical match.
away string Name of the away team in this historical match.
homeScore int Home team's final score.
homeHalfScore int Home team's score at halftime.
awayScore int Away team's final score.
awayHalfScore int Away team's score at halftime.
result intMoneyline result. 1: win 0: draw -1: loss.

In headToHead and homeLastMatches, this reflects the outcome for the home team of the queried match. In awayLastMatches, this reflects the outcome for the away team of the queried match.
scoreGap stringMargin, calculated as this historical match's own home score minus away score (not relative to the queried teams).
spread stringAsian Handicap line (Hong Kong Odds) for this match.
spreadResult intAsian Handicap result. 1: win 0: void -1: loss — based on the spread line, not the raw score margin. Follows the same team-reference convention as result above.
total intActual combined score of this match (home score + away score).
totalOdds stringOver/Under line offered for this match.
totalResult intOver/Under result, based on comparing the actual combined score (total) against the line (totalOdds).

1: over 0: void -1: under.
homeLastMatches listThe same as HeadToHead.
Return up to the last 20 games.
Each string contains all parameters below, separated by comma.
awayLastMatches listThe same as HeadToHead.
Return up to the last 20 games.
Each string contains all parameters below, separated by comma.
homeSchedule listReturn to the team's last 3 matches and the next 3 matches.
Each string contains all of the following parameters, separated by commas.
matchId string Unique ID of the match.
leagueId string Unique ID of the league.
league string Name of the league.
color stringRGB color code used to distinguish leagues.
matchTime stringMatch time (Unix timestamp, GMT+0).
homeTeamId string ID of the home team.
home string Name of the home team.
score stringFinal score, format home-away, e.g. 120-103.

Returns "vs" for matches that have not yet been played.
awayTeamId string ID of the away team.
away string Name of the away team.
day stringNumber of days between this match and the queried match.

Negative values indicate the match occurred before the queried match; positive values indicate it occurs after.
awaySchedule listThe same as HomeSchedule.

Example Request

Example Response

    • This API endpoint returns match analysis data for the queried matchId — including historical head-to-head results, each team's recent form, and each team's upcoming/recent schedule — for matches within 7 days before or after the current time. \n\n • Data is cached for 24 hours and does not update frequently.\n\n • For a visual reference of this data, see: https://www.goaloo.com/basketball/nba-summer-league-minnesota-timberwolves-vs-indiana-pacers/analysis-719976
    Contact

    Liên hệ