Matches
Retrieve a list of matches.
- Refresh interval
- Once a minute
- Pagination
- limit and offset
- Detail
- General information only
Querying
At least one primary query parameter must be specified before you can retrieve data.
timezone, limit and offset are secondary and do
not count on their own.
Combine timezone with date to get matches relevant to your own
location rather than UTC.
Teams can be filtered by id, name, abbreviation or display name.
league takes NBA or NCAA and separates
professional from college.
limit sets how many matches come back. When the number of matching games
exceeds it, request the next page by increasing offset. See
Pagination and limits.
Match states
Every match carries a state, and that object is where the live detail sits.
It holds the state name in description, the current period,
the clock, and the score with a homeTeam and an
awayTeam list of numbers.
So a single call to this endpoint gives you a scoreboard. You do not need the detail route to show the score, the period and the clock.
| State | Meaning |
|---|---|
Scheduled |
Match has not been started yet. |
In progress |
Game is currently in progress. |
End period |
Break time between periods. |
Half time |
Half time pause between the second and third quarter. |
Finished |
Match has been concluded. |
Postponed |
Prevented from being played. The start time moves to a future moment. |
Suspended |
Was in play and was halted. Will resume from the exact point it stopped. |
Cancelled |
Game will not be played. |
Abandoned |
Ended prematurely by the officials and cannot be resumed or completed, though it may be resumed later from the point it stopped. |
Unknown |
Unknown coverage or state. |
Parameters
| Parameter | Type | Description |
|---|---|---|
leagueoptional |
string |
No description in the spec.e.g. NBA
|
dateoptional |
string |
Date that follows the YYYY-MM-DD format.e.g. 2024-05-20
|
timezoneoptional |
stringdefault Etc/UTC
|
Valid timezone identifier.e.g. Europe/London
|
seasonoptional |
number |
No description in the spec.e.g. 2024
|
homeTeamIdoptional
|
number |
No description in the spec.e.g. 3
|
awayTeamIdoptional
|
number |
No description in the spec.e.g. 41
|
homeTeamNameoptional
|
string |
No description in the spec.e.g. Nuggets
|
awayTeamNameoptional
|
string |
No description in the spec.e.g. Timberwolves
|
homeTeamAbbreviationoptional
|
string |
No description in the spec.e.g. DEN
|
awayTeamAbbreviationoptional
|
string |
No description in the spec.e.g. MIN
|
homeTeamDisplayNameoptional
|
string |
No description in the spec.e.g. Denver Nuggets
|
awayTeamDisplayNameoptional
|
string |
No description in the spec.e.g. Minnesota Timberwolves
|
limitoptional |
numberdefault 100
|
No description in the spec.e.g. 100
|
offsetoptional |
numberdefault 0
|
No description in the spec.e.g. 0
|
Request
curl --request GET \
--url 'https://nba.highlightly.net/matches?league=NBA&date=2024-05-20' \
--header 'x-rapidapi-key: YOUR_API_KEY'
const params = new URLSearchParams({
league: 'NBA',
date: '2024-05-20'
})
const response = await fetch(`https://nba.highlightly.net/matches?${params}`, {
headers: {
'x-rapidapi-key': process.env.HIGHLIGHTLY_API_KEY
}
})
if (!response.ok) {
throw new Error(`Highlightly responded ${response.status}`)
}
const data = await response.json()
import os
import requests
response = requests.get(
'https://nba.highlightly.net/matches',
params={
'league': 'NBA',
'date': '2024-05-20',
},
headers={
'x-rapidapi-key': os.environ['HIGHLIGHTLY_API_KEY'],
},
timeout=10,
)
response.raise_for_status()
data = response.json()
Response
dataNbaMatchResponse[]required23 fields
idnumberrequired
leaguestringrequiredNBANCAA
seasonnumberrequired
stateNbaMatchStateResponserequired6 fields
clocknumberrequiredTime left for a game to finish.
scoreNbaMatchScoreResponserequired2 fields
awayTeamnumber[]requiredCurrent away team result for each inning.
homeTeamnumber[]requiredCurrent home team result for each inning.
periodnumberrequiredCurrent period
descriptionstringrequiredCurrent game state descriptionSuspendedPostponedCancelledAbandonedFinishedScheduledIn progressEnd periodHalf timeUnknown
homeTeamNbaTeamInfoResponserequired5 fields
idnumberrequired
displayNamestringrequired
namestringrequired
logostring
abbreviationstringrequired
awayTeamNbaTeamInfoResponserequired5 fields
idnumberrequired
displayNamestringrequired
namestringrequired
logostring
abbreviationstringrequired
datestringrequired
paginationPaginationResponserequired3 fields
totalCountnumberrequiredAvailable number of items, relevant to the provided query.
offsetnumberrequired
limitnumberrequired
planPlanResponserequired2 fields
tierstringrequiredYour current API subscription tier.
messagestringrequiredExplanation message regarding your current tier.
Example response
{
"data": [
{
"id": 5294,
"league": "NBA",
"season": 2024,
"state": {
"clock": 0,
"score": {
"awayTeam": [
0
],
"homeTeam": [
0
]
},
"period": 4,
"description": "Finished"
},
"homeTeam": {
"id": 3,
"displayName": "Denver Nuggets",
"name": "Nuggets",
"logo": "https://highlightly.net/nba/images/teams/3.png",
"abbreviation": "DEN"
},
"awayTeam": {
"id": 3,
"displayName": "Denver Nuggets",
"name": "Nuggets",
"logo": "https://highlightly.net/nba/images/teams/3.png",
"abbreviation": "DEN"
},
"date": "2024-04-07T01:00:00.000Z"
}
],
"pagination": {
"totalCount": 490,
"offset": 20,
"limit": 100
},
"plan": {
"tier": "BASIC",
"message": "Some results might be hidden with FREE tier. Check your API coverage for more information: https://rapidapi.com/highlightly-api-highlightly-api-default/api/sport-highlights-api/details"
}
}
Values are the examples declared in the OpenAPI spec, not a captured live response.
Errors
| Status | Description |
|---|---|
400 |
Bad request descriptive error. |
500 |
Internal server error. |