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:
| Parameter | Value | Required | Description |
|---|---|---|---|
| matchId | string | true | Returns match analysis data for the specified match. |
Response
| Parameter | Value | Description | |
|---|---|---|---|
| headToHead | list | Each 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 | string | RGB color code used to distinguish leagues, e.g. #FF0000. | |
| matchTime | string | Match time (Unix timestamp, GMT+0). | |
| matchType | string | Regular, 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 | int | Moneyline 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 | string | Margin, calculated as this historical match's own home score minus away score (not relative to the queried teams). | |
| spread | string | Asian Handicap line (Hong Kong Odds) for this match. | |
| spreadResult | int | Asian 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 | int | Actual combined score of this match (home score + away score). | |
| totalOdds | string | Over/Under line offered for this match. | |
| totalResult | int | Over/Under result, based on comparing the actual combined score (total) against the line (totalOdds). 1: over 0: void -1: under. | |
| homeLastMatches | list | The same as HeadToHead. Return up to the last 20 games. Each string contains all parameters below, separated by comma. | |
| awayLastMatches | list | The same as HeadToHead. Return up to the last 20 games. Each string contains all parameters below, separated by comma. | |
| homeSchedule | list | Return 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 | string | RGB color code used to distinguish leagues. | |
| matchTime | string | Match time (Unix timestamp, GMT+0). | |
| homeTeamId | string | ID of the home team. | |
| home | string | Name of the home team. | |
| score | string | Final 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 | string | Number 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 | list | The same as HomeSchedule. | |
Example Request

English
Tiếng Việt
ภาษาไทย 