Highlights
Highlights are the core of the Hockey API. They cover everything from a single goal through to full game recaps, plus pre and post match interviews.
- Refresh interval
- Once a minute
- Plan
- May be restricted on Basic/Free
- Pagination
- limit and offset, 40 per page
Verified and unverified clips
Clips are aggregated from many different platforms. Depending on the source and what verification it has been through, each one falls into one of two types.
| type | What it means |
|---|---|
VERIFIED |
The clip comes from a reputable source that has been inspected. In most cases the author owns the copyright to the video. Verified highlights are uploaded between 1 and 48 hours after a match finishes. The hosting platform can still impose geo restrictions or block embedding, so check geo restrictions before showing one. |
UNVERIFIED |
The clip may not have been through verification, or is user uploaded. These cover a wider spectrum, including last minute scores, memorable plays and recaps. They are more real time and can appear while the match is still being played. How long they survive depends on the hosting platform. |
Reading a highlight
Every highlight carries a title describing what the video shows. Many also
carry a description that expands on it.
The source field records where the clip was aggregated from, for example
youtube, twitter, reddit or espn.
For some sources a channel is present as well, which is the uploading
channel's title. Together these let you narrow down which videos you want to show.
Where embedUrl is present you can embed the video directly in your own site
or app.
Categories
The category field describes what kind of content the clip contains.
Categorisation happens automatically when a highlight is aggregated. A clip that cannot
be placed confidently is labelled other rather than being forced into a
category it does not belong to, so filtering on category in your own code
will not return unrelated content.
| Category | Contains |
|---|---|
match-highlights |
Edited recap of a match, including full game highlights and summaries in any language. |
goal |
A single goal clip. |
power-play-goal |
Power play goals. |
shorthanded-goal |
Shorthanded goals. |
overtime-shootout-goal |
Overtime or shootout goals. |
hat-trick |
Hat tricks. |
save |
Goaltender saves. |
fight |
Fights and scraps. |
hit-check |
Big hits and body checks. |
assist-play |
Assists and playmaking passes. |
injury |
A player injured on the play, carted or helped off, or exiting the game. |
viral-moment |
Celebrations, mascots, milestones, tributes and other spectacle moments. |
pre-match-content |
Previews, predictions and build up content ahead of a match. |
post-match-content |
Reactions, interviews and analysis after a match. |
press-conference |
Official press conferences and media availability. |
other |
Clips that do not fit any other category. |
Plan coverage
On the Basic and Free plans, highlights are excluded from these leagues.
| Country | League |
|---|---|
| USA | NHL |
| Canada | OHL |
| USA | NCAA |
| USA | AHL |
| Czechia | Extraliga |
| Sweden | SHL |
| Russia | KHL |
A Pro plan or higher removes the restriction and returns highlights from every league this API covers.
Querying
At least one primary query parameter must be specified before you can retrieve data.
timezone, limit and offset are considered
secondary and do not count on their own.
Combine timezone with date to get highlights relevant to your
own location rather than UTC.
limit sets how many highlights come back. When the number of matching
highlights exceeds it, request the next page by increasing offset. The
pagination object in every response tells you the
totalCount to page through.
Parameters
| Parameter | Type | Description |
|---|---|---|
countryCodeoptional
|
string |
Country code specified by the ISO 3166 standard.e.g. DE
|
countryNameoptional
|
string |
No description in the spec.e.g. Germany
|
leagueNameoptional
|
string |
No description in the spec.e.g. DEL
|
leagueIdoptional |
number |
No description in the spec.e.g. 16953
|
dateoptional |
string |
Date that follows the YYYY-MM-DD format.e.g. 2023-10-13
|
timezoneoptional |
stringdefault Etc/UTC
|
Valid timezone identifier.e.g. Europe/London
|
seasonoptional |
number |
No description in the spec.e.g. 2023
|
matchIdoptional |
number |
No description in the spec.e.g. 291869956
|
homeTeamIdoptional
|
number |
No description in the spec.e.g. 223746
|
awayTeamIdoptional
|
number |
No description in the spec.e.g. 214385
|
homeTeamNameoptional
|
string |
No description in the spec.e.g. Frankfurt Lowen
|
awayTeamNameoptional
|
string |
No description in the spec.e.g. Kolner
|
limitoptional |
numberdefault 40
|
No description in the spec.e.g. 40
|
offsetoptional |
numberdefault 0
|
No description in the spec.e.g. 0
|
Request
curl --request GET \
--url 'https://hockey.highlightly.net/highlights?countryCode=DE&countryName=Germany' \
--header 'x-rapidapi-key: YOUR_API_KEY'
const params = new URLSearchParams({
countryCode: 'DE',
countryName: 'Germany'
})
const response = await fetch(`https://hockey.highlightly.net/highlights?${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://hockey.highlightly.net/highlights',
params={
'countryCode': 'DE',
'countryName': 'Germany',
},
headers={
'x-rapidapi-key': os.environ['HIGHLIGHTLY_API_KEY'],
},
timeout=10,
)
response.raise_for_status()
data = response.json()
Response
dataHockeyHighlightResponse[]required40 fields
idnumberrequired
typestringrequired
imgUrlstringPreview picture of the highlight.
titlestringrequired
descriptionstring
urlstringrequiredUrl location of the video highlight.
embedUrlstringUrl of embeddable video highlight.
matchHockeyMatchResponserequired29 fields
idnumberrequired
weekstring
datestringrequired
countryHockeyCountryResponserequired3 fields
codestringrequiredCountry code specified by the ISO 3166 standard.
namestringrequired
logostringrequired
awayTeamHockeyTeamResponserequired3 fields
idnumberrequired
logostring
namestringrequired
homeTeamHockeyTeamResponserequired3 fields
idnumberrequired
logostring
namestringrequired
leagueHockeyMatchLeagueResponserequired4 fields
idnumberrequired
seasonnumberrequired
namestringrequired
logostring
stateHockeyMatchStateResponserequired8 fields
descriptionstringrequiredCurrent state of the game.Not started1st period2nd period3rd periodOver timePenaltiesBreak timeAwardedPostponedCancelledInterruptedAbandonedFinishedTo be announcedFinished after penaltiesFinished after over timeUnknown
scoreHockeyMatchScoreResponserequired6 fields
currentstringHome - Away score for the match.
overTimestringHome - Away score in overtime.
penaltiesstringHome - Away score in penalties.
firstPeriodstringHome - Away score in 1st period.
secondPeriodstringHome - Away score in 2nd period.
thirdPeriodstringHome - Away score in 3rd period.
channelstringChannel title of a given highlight.
sourcestringAggregation source from social media and other equivalent platforms.
categorystringAssumed highlight category
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": 16,
"type": "VERIFIED",
"imgUrl": "https://example.com/images/preview/16.png",
"title": "DEL: Frankfurt Lowen vs Kolner",
"description": "Game recap of the match.",
"url": "https://example.com/highlight/13efe2g4t542",
"embedUrl": "https://example.com/embed/13efe2g4t542",
"match": {
"id": 291869956,
"week": "1",
"date": "2023-10-13T17:30:00.000Z",
"country": {
"code": "DE",
"name": "Germany",
"logo": "https://example.com/logos/country/DE.png"
},
"awayTeam": {
"id": 223746,
"logo": "https://example.com/logos/team/223746.png",
"name": "Frankfurt Lowen"
},
"homeTeam": {
"id": 223746,
"logo": "https://example.com/logos/team/223746.png",
"name": "Frankfurt Lowen"
},
"league": {
"id": 16953,
"season": 2023,
"name": "DEL",
"logo": "https://example.com/logos/league/16953.png"
},
"state": {
"description": "1st period",
"score": {
"current": "4 - 4",
"overTime": "6 - 4",
"penalties": "17 - 33",
"firstPeriod": "2 - 0",
"secondPeriod": "2 - 1",
"thirdPeriod": "5 - 2"
}
}
},
"channel": "Ligue 1 Uber Eats",
"source": "youtube",
"category": "match-highlights"
}
],
"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. |