Highlights

GET https://rugby.highlightly.net/highlights Rugby API
GET https://sports.highlightly.net/rugby/highlights All Sports API

Highlights are the core of the Rugby API. They cover everything from a single try through to full match replays, 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. Certain highlights also carry a description.

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.
try-clip A single try.
tries-compilation Compilation of tries.
full-match-replay Complete match replay, unedited.
press-conference Official press conferences and media availability.
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.

A single try and a compilation of tries are separate values, so a product showing individual scores can keep the returned highlights whose category is try-clip without pulling in longer edits.

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. EU
countryNameoptional string No description in the spec.e.g. Europe
leagueNameoptional string No description in the spec.e.g. Six Nations U20
leagueIdoptional number No description in the spec.e.g. 48440
dateoptional string Date that follows the YYYY-MM-DD format.e.g. 2024-03-08
timezoneoptional stringdefault Etc/UTC Valid timezone identifier.e.g. Europe/London
seasonoptional number No description in the spec.e.g. 2024
matchIdoptional number No description in the spec.e.g. 36224450
homeTeamIdoptional number No description in the spec.e.g. 384585
awayTeamIdoptional number No description in the spec.e.g. 385436
homeTeamNameoptional string No description in the spec.e.g. Italy U20
awayTeamNameoptional string No description in the spec.e.g. Scotland U20
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://rugby.highlightly.net/highlights?countryCode=EU&countryName=Europe' \
  --header 'x-rapidapi-key: YOUR_API_KEY'
const params = new URLSearchParams({
  countryCode: 'EU',
  countryName: 'Europe'
})
const response = await fetch(`https://rugby.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://rugby.highlightly.net/highlights',
    params={
        'countryCode': 'EU',
        'countryName': 'Europe',
    },
    headers={
        'x-rapidapi-key': os.environ['HIGHLIGHTLY_API_KEY'],
    },
    timeout=10,
)

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

Response

dataRugbyHighlightResponse[]required34 fields
idnumberrequired
typestringrequired
imgUrlstringPreview picture of the highlight.
titlestringrequired
descriptionstring
urlstringrequiredUrl location of the video highlight.
embedUrlstringUrl of embeddable video highlight.
matchRugbyMatchResponserequired23 fields
idnumberrequired
weekstring
datestringrequired
countryRugbyCountryResponserequired3 fields
codestringrequiredCountry code specified by the ISO 3166 standard.
namestringrequired
logostringrequired
awayTeamRugbyTeamResponserequired3 fields
idnumberrequired
logostring
namestringrequired
homeTeamRugbyTeamResponserequired3 fields
idnumberrequired
logostring
namestringrequired
leagueRugbyMatchLeagueResponserequired4 fields
idnumberrequired
seasonnumberrequired
namestringrequired
logostring
stateRugbyMatchStateResponserequired2 fields
descriptionstringrequiredState of the match.Not startedFirst halfHalf timeSecond halfExtra timeBreak timePenaltiesSuspendedInterruptedFinishedFinished after extra timePostponedCancelledAbandonedAwardedUnknownTo be announced
scorestringHome - Away match score.
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": 1,
      "type": "VERIFIED",
      "imgUrl": "https://example.com/images/preview/28.png",
      "title": "HIGHLIGHTS | Italy v Scotland | Under-20 Six Nations Championship 2024",
      "description": "Game recap of the match.",
      "url": "https://example.com/highlight/213123safas132e",
      "embedUrl": "https://example.com/embed/13efe2g4t542",
      "match": {
        "id": 36224450,
        "week": "4",
        "date": "2024-03-08T19:15:00.000Z",
        "country": {
          "code": "EU",
          "name": "Europe",
          "logo": "https://example.com/logos/country/EU.png"
        },
        "awayTeam": {
          "id": 384585,
          "logo": "https://example.com/logos/team/90990.png",
          "name": "Italy U20"
        },
        "homeTeam": {
          "id": 384585,
          "logo": "https://example.com/logos/team/90990.png",
          "name": "Italy U20"
        },
        "league": {
          "id": 48440,
          "season": 2024,
          "name": "Six Nations U20",
          "logo": "https://example.com/logos/league/48440.png"
        },
        "state": {
          "description": "Finished",
          "score": "47 - 14"
        }
      },
      "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.