Highlights

GET https://cricket.highlightly.net/highlights Cricket API
GET https://sports.highlightly.net/cricket/highlights All Sports API

Highlights are the core of the Cricket API. They cover everything from a single six through to full innings recaps, complete match replays and post match interviews.

Refresh interval
Once a minute
Plan
May be restricted on Basic/Free
Pagination
limit and offset, up to 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. Certain highlights 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.
innings-highlights Highlights of a single innings.
full-match-replay Complete match replay, unedited.
live-coverage Raw live streams such as warm ups and watch alongs, as opposed to edited recaps.
batting-highlight Centuries, fifties and batting performances.
bowling-highlight Wickets, spells and bowling performances.
six-boundary Sixes and boundary compilations.
catch-fielding Catches, run outs and fielding plays.
toss The coin toss.
pre-match-content Previews, predictions and build up content ahead of a match.
post-match-content Reactions, interviews and analysis after a match.
other Clips that do not fit any other category.

Highlights rendered in a client application

Plan coverage

Highlights come from every league this API covers, on every plan.

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. AU
countryNameoptional string No description in the spec.e.g. Australia
leagueNameoptional string No description in the spec.e.g. Big Bash League
leagueIdoptional number No description in the spec.e.g. 48513362
dateoptional string Date that follows the YYYY-MM-DD format.e.g. 2024-01-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. 48514657
homeTeamIdoptional number No description in the spec.e.g. 17838627
awayTeamIdoptional number No description in the spec.e.g. 17838662
homeTeamNameoptional string No description in the spec.e.g. Melbourne Renegades
awayTeamNameoptional string No description in the spec.e.g. Melbourne Stars
limitoptional numberdefault 40 No description in the spec.e.g. 40
offsetoptional numberdefault 0 No description in the spec.e.g. 0
homeTeamAbbreviationoptional string No description in the spec.e.g. MR
awayTeamAbbreviationoptional string No description in the spec.e.g. MS

Request

curl --request GET \
  --url 'https://cricket.highlightly.net/highlights?countryCode=AU&countryName=Australia' \
  --header 'x-rapidapi-key: YOUR_API_KEY'
const params = new URLSearchParams({
  countryCode: 'AU',
  countryName: 'Australia'
})
const response = await fetch(`https://cricket.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://cricket.highlightly.net/highlights',
    params={
        'countryCode': 'AU',
        'countryName': 'Australia',
    },
    headers={
        'x-rapidapi-key': os.environ['HIGHLIGHTLY_API_KEY'],
    },
    timeout=10,
)

response.raise_for_status()
data = response.json()

Response

dataCricketHighlightResponse[]required42 fields
idnumberrequired
typestringrequired
imgUrlstringPreview picture of the highlight.
titlestringrequired
descriptionstring
urlstringrequiredUrl location of the video highlight.
embedUrlstringUrl of embeddable video highlight.
matchCricketMatchResponserequired31 fields
idstringrequired
endDatestringrequired
startDatestringrequired
startTimestring
countryCricketCountryResponserequired3 fields
codestringrequiredCountry code specified by the ISO 3166 standard.
namestringrequired
logostringrequired
awayTeamCricketTeamResponserequired4 fields
idstringrequired
logostring
namestringrequired
abbreviationstringrequired
homeTeamCricketTeamResponserequired4 fields
idstringrequired
logostring
namestringrequired
abbreviationstringrequired
leagueCricketMatchLeagueResponserequired4 fields
idstringrequired
seasonnumberrequired
namestringrequired
logostring
formatstringCricket match format, e.g. T20, ODI, TEST
dayTypestringInformation that tells us whether the match will be played across multiple daysSINGLEMULTI
stateCricketMatchStateResponserequired5 fields
descriptionstringrequiredState of the match.FinishedUnknownNo live coverageIn playStumpsLunchInnings breakDrinksTimeoutTeaScheduledMatch delayedCancelledAbandonedPostponed
reportstringDescriptive report of the match based on the match status.
teamsCricketMatchScoreTeamsrequired2 fields
awayCricketMatchScoreTeamAwayrequired
homeCricketMatchScoreTeamHomerequired
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

200 application/json
{
  "data": [
    {
      "id": 75,
      "type": "VERIFIED",
      "imgUrl": "https://example.com/images/preview/75.png",
      "title": "Big Bash League: Melbourne Renegades vs Melbourne Stars",
      "description": "Game recap of the match.",
      "url": "https://example.com/highlight/213123safas132e",
      "embedUrl": "https://example.com/embed/213123safas132e",
      "match": {
        "id": "48514657",
        "endDate": "2024-01-13T00:00:00.000Z",
        "startDate": "2024-01-13T00:00:00.000Z",
        "startTime": "2024-01-13T14:30:00.000Z",
        "country": {
          "code": "AU",
          "name": "Australia",
          "logo": "https://example.com/logos/country/AU.png"
        },
        "awayTeam": {
          "id": "17838627",
          "logo": "https://example.com/logos/team/17838627.png",
          "name": "Melbourne Stars",
          "abbreviation": "MS"
        },
        "homeTeam": {
          "id": "17838627",
          "logo": "https://example.com/logos/team/17838627.png",
          "name": "Melbourne Stars",
          "abbreviation": "MS"
        },
        "league": {
          "id": "48513362",
          "season": 2023,
          "name": "Big Bash League",
          "logo": "https://example.com/logos/league/48513362.png"
        },
        "format": "T20",
        "dayType": "SINGLE",
        "state": {
          "description": "Finished",
          "report": "Renegades won by 6 wickets (with 16 balls remaining)",
          "teams": {}
        }
      },
      "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.