Download OpenAPI specification:Download
Welcome to the biggest Football Highlights API, covering data from over 750 football leagues globally. Get access to a centralized hub for diverse and engaging sport highlights to ensure that your sport application remains dynamic, distinctive, and rich in content.
For feature requests, questions, private plans or business inquiries you can contact us at [email protected].
You can also contact us via RapidAPI by starting a discussion or by sending us a private message.
To start using our API services you will first need to create a RapidAPI account. The platform offers you the ability to view the API analytics, manage billing settings, control API keys and much more.
Please ensure that your API key is not made public to prevent potential abuse. Your API key can be managed through the RapidAPI platform.
Base API url:
https://football-highlights-api.p.rapidapi.com
Each API request will be considered valid only if the following headers are present:
Request Header | Value |
---|---|
x-rapidapi-key |
Your RapidAPI API Key |
x-rapidapi-host |
football-highlights-api.p.rapidapi.com |
These headers are mandatory when requesting API data. They are not needed when requesting other resources such as logos or images.
Each API response will contain additional headers. The following three are considered the most important for developers:
Response Header | Value |
---|---|
x-ratelimit-requests-limit |
This is a static value indicating the number of requests the plan you are currently subscribed to allows you to make. |
x-ratelimit-requests-remaining |
The number of requests remaining (from your plan) before you reach the limit of requests your application is allowed to make. When this reaches zero, you will not be able to make any requests until your daily quota is reset. You can view these limits and quotas on the pricing page of the API in the API Hub. |
content-type |
Value will always be application/json . XML format is not supported. |
In the following sections we will guide you through all endpoints and functionalities the API has to offer.
Refresh interval: Once a day
Retrieve a list of countries that are supported by the API.
By utilising the name
query parameter you can check whether a specific country exists or simply retrieve the associated data.
Country name and code can be used to query other resources such as matches
, leagues
, highlights
, etc.
Below is an example of supported countries and their associated logos:
name | string Example: name=France |
x-rapidapi-host required | string football-highlights-api.p.rapidapi.com |
x-rapidapi-key required | string Rapid API Token |
[
]
Refresh interval: Once a day
Retrieve associated country details by specifying the country code path parameter. The path parameter should follow the ISO 3166
standard.
Country name and code can be used to query other resources such as matches
, leagues
, highlights
, etc.
countryCode required | string Example: FR A string value code of the country, following the ISO 3166 standard. |
x-rapidapi-host required | string football-highlights-api.p.rapidapi.com |
x-rapidapi-key required | string Rapid API Token |
[
]
Refresh interval: Multiple times a day
Retrieve a list of leagues.
By utilising the leagueName
query parameter you can check whether a specific league exists or simply retrieve the associated data. You can also narrow down your search by specifying the countryCode
or countryName
query parameters.
There are two other important query parameters. The limit
parameter defines what the number of returned leagues will be. If the number of actual leagues is above the limit
value you can make subsequent requests by increasing the offset
value.
The league information and their associated seasons can be used to request data from other endpoints such as standings
.
limit | number [ 0 .. 100 ] Default: 100 Example: limit=100 |
offset | number >= 0 Default: 0 |
season | number >= 0 Example: season=2023 |
leagueName | string Example: leagueName=Superettan |
countryCode | string Example: countryCode=SE Country code specified by the ISO 3166 standard. |
countryName | string Example: countryName=Sweden |
x-rapidapi-host required | string football-highlights-api.p.rapidapi.com |
x-rapidapi-key required | string Rapid API Token |
{- "data": [
- {
- "id": 104,
- "name": "UEFA Champions League",
- "seasons": [
- {
- "season": 2022
}
]
}
], - "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"
}
}
Retrieve league information by specifying the league id path parameter.
Note: Used to check whether a league still exists or had its information updated.
id required | number Example: 97798 Requested league id. |
x-rapidapi-host required | string football-highlights-api.p.rapidapi.com |
x-rapidapi-key required | string Rapid API Token |
[- {
- "id": 104,
- "name": "UEFA Champions League",
- "seasons": [
- {
- "season": 2022
}
]
}
]
Retrieve a list of teams that are supported by the API.
By utilising the name
query parameter you can check whether a specific team exists or simply retrieve the associated data.
There are two other important query parameters. The limit
parameter defines what the number of returned teams will be. If the number of actual teams is above the limit
value you can make subsequent requests by increasing the offset
value.
limit | number [ 0 .. 500 ] Default: 500 Example: limit=50 |
offset | number >= 0 Default: 0 |
name | string Example: name=Skövde AIK |
x-rapidapi-host required | string football-highlights-api.p.rapidapi.com |
x-rapidapi-key required | string Rapid API Token |
{- "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"
}
}
Refresh interval: Immediately once a match is finished.
Retrieve team stats for each league and season by specifying the team's id
path parameter. Requires fromDate
query parameter to be specified in the YYYY-MM-DD format. Additionally, the timezone
query parameter can be specified to futher narrow down the search results based on your location.
id required | number Example: 5700782 Requested team id. |
fromDate required | string Example: fromDate=2023-08-06 Date that follows the YYYY-MM-DD format. |
timezone | string Default: "Etc/UTC" Example: timezone=Europe/London Valid timezone identifier. |
x-rapidapi-host required | string football-highlights-api.p.rapidapi.com |
x-rapidapi-key required | string Rapid API Token |
[- {
- "leagueId": 216087,
- "season": 2023,
- "leagueName": "Major League Soccer",
- "total": {
- "games": {
- "played": 34,
- "wins": 20,
- "loses": 5,
- "draws": 5
}, - "goals": {
- "scored": 57,
- "received": 39
}
}, - "home": {
- "games": {
- "played": 34,
- "wins": 20,
- "loses": 5,
- "draws": 5
}, - "goals": {
- "scored": 57,
- "received": 39
}
}, - "away": {
- "games": {
- "played": 34,
- "wins": 20,
- "loses": 5,
- "draws": 5
}, - "goals": {
- "scored": 57,
- "received": 39
}
}
}
]
Retrieve team information by specifying the team id path parameter.
Note: Used to check whether a team still exists or had its information updated.
id required | number Example: 5700782 Requested team id. |
x-rapidapi-host required | string football-highlights-api.p.rapidapi.com |
x-rapidapi-key required | string Rapid API Token |
[
]
Refresh interval: Once a minute
Route returns only general match information. For additional match details check the
matches/{matchId}
route.
Retrieve a list of matches based on the requested query parameters.
At least one primary query parameter needs to be specified before you can retrieve the data (timezone
, limit
, offset
are considered secondary).
You can specify the timezone
field in combination with the date
query parameter to get matches relevant to your location.
There are two other important parameters. The limit
parameter defines what the number of returned matches will be. If the number of actual matches is above the limit
value you can make subsequent requests by increasing the offset
value.
Matches have different possible states they can be in:
State | Description |
---|---|
Not started | Match has not been started yet. |
First half | Match is considered in play and is in the first half. |
Second half | Match is considered in play and is in the second half. |
Half time | Half time pause between first and second half. |
Extra time | Game was considered a draw in normal time. Additional extra time is needed to decide the winner. |
Break time | Short pause between in play periods and extra time. |
Penalties | Penalty shootout to decide the winner of the match. |
Finished | Match has been concluded. |
Finished after penalties | Match has been concluded with the penalty shootout. |
Finished after extra time | Match has been concluded in extra time. |
Postponed | Match has been postponed due to certain circumstances that are preventing the game from being played. Event start time will be changed to a moment in the future. |
Suspended | Match has already been in play but was suspended. In the future the game will resume from the exact point where it was halted. |
Cancelled | Game will not be played. |
Awarded | Game awarded to one of the teams when the other forfeits or specific circumstances have been met such as insufficient players, late arrival, team withdrawl, etc. |
Interrupted | An issue arose that is preventing the game from continuing. Based on the interruption the game will either resume normal play or be abandoned. |
Abandoned | Considered "abandoned" when it is prematurely ended by the officials and can not be resumed or completed. In the future the game might be resumed from the exact point where it was halted. |
In progress | Match is considered in play but the coverage information is minimal. |
Unknown | Unknown match coverage or state. |
To be announced | Match's start time will be updated or competing teams are not yet known. |
Below is an example of what you can aim to achieve with the matches endpoint:
leagueName | string Example: leagueName=Superettan |
leagueId | number Example: leagueId=97798 |
date | string Example: date=2023-08-06 Date that follows the YYYY-MM-DD format. |
timezone | string Default: "Etc/UTC" Example: timezone=Europe/London Valid timezone identifier. |
season | number Example: season=2023 |
homeTeamId | number Example: homeTeamId=5700782 |
awayTeamId | number Example: awayTeamId=1907875 |
homeTeamName | string Example: homeTeamName=Skövde AIK |
awayTeamName | string Example: awayTeamName=Vasteras SK FK |
countryCode | string Example: countryCode=SE Country code specified by the ISO 3166 standard. |
countryName | string Example: countryName=Sweden |
limit | number [ 0 .. 100 ] Default: 100 Example: limit=100 |
offset | number >= 0 Default: 0 |
x-rapidapi-host required | string football-highlights-api.p.rapidapi.com |
x-rapidapi-key required | string Rapid API Token |
{- "data": [
- {
- "id": 489389,
- "round": "Regular Season - 32",
- "date": "2023-05-20T15:30:00.000Z",
- "league": {
- "id": 133,
- "season": 2023,
- "name": "Ligue 1",
}, - "state": {
- "description": "Second half",
- "clock": 67,
- "score": {
- "current": "3 - 1",
- "penalties": "6 - 4"
}
}
}
], - "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"
}
}
Retrieve detailed match information by specifying the match id path parameter.
Certain popular leagues and their associated matches will have additional data about the venue
, weather forecast
, match statistics
, and who the game's referee
is. The retrieved data will also contain a list of important events that happened:
Type | Description |
---|---|
Goal | A player strikes the ball into the opposing team's goal. |
Own Goal | A player strikes or deflects the ball into their own team's goal. |
Penalty | A player scores the goal from the penalty spot after a foul or hand play by the defending team inside the penalty area. |
Missed Penatly | The player taking the penalty kick failed to score, either by missing the target or the shot being saved by the goalkeeper. |
Yellow Card | A player is cautioned by the referee for unsporting behavior or foul play. |
Red Card | A player is sent off the field for serious foul play, violent conduct, or receiving a second yellow card. |
Substitution | A player is replaced by another player from the bench during a stoppage in play. |
VAR Goal Confirmed | The Video Assistant Referee (VAR) review confirms that a goal is valid and should stand. |
VAR Goal Cancelled | The VAR review determines that a goal should be disallowed due to an infringement or violation. |
VAR Penalty | The VAR review results in a penalty being awarded to a team. |
VAR Penalty Cancelled | The VAR review results in a previously awarded penalty being overturned. |
VAR Goal Cancelled - Offside | The VAR review determines that a goal should be disallowed due to an offside infringement. |
The above list may be updated with additional entries in the future.
Note: Used to retrieve additional match information.
id required | number Example: 986165114 Requested match id. |
x-rapidapi-host required | string football-highlights-api.p.rapidapi.com |
x-rapidapi-key required | string Rapid API Token |
[- {
- "id": 1002433681,
- "round": "Apertura - 9",
- "date": "\"2024-03-31T20:30:00.000Z",
- "league": {
- "id": 133,
- "season": 2023,
- "name": "Ligue 1",
}, - "state": {
- "description": "Second half",
- "clock": 67,
- "score": {
- "current": "3 - 1",
- "penalties": "6 - 4"
}
}, - "events": [
- {
- "team": {
- "id": 13394673,
- "name": "Tersana"
}, - "time": "45+1",
- "type": "Goal",
- "player": "M. Mamdouh",
- "assist": "J. Johanson",
- "substituted": "string"
}
], - "statistics": [
- {
- "value": 0.62,
- "displayName": "Shots accuracy"
}
], - "referee": {
- "name": "Brace, Andrew",
- "nationality": "Ireland"
}, - "venue": {
- "city": "Swansea",
- "name": "Liberty Stadium",
- "country": "Wales",
- "capacity": "20827"
}, - "forecast": {
- "status": "cloudy",
- "temperature": "11.97°C"
}
}
]
Refresh interval: Once a minute
Note: Certain highlights might be uploaded whilst the game is playing. Full game recaps tend to be uploaded anywhere from 1 to 48 hours after a match is finished.
Highlights represent the core of our API. They include various different kinds of clips ranging from real time live events such as insane plays, last minute scores to full game recaps, pre/post match interviews.
Currently we aggregate videos from many different sources. Depending on the source and verification process we divide the clips into two categories:
Type | Description |
---|---|
VERIFIED | Videos come from reputable sources that have been thoroughly inspected. In most cases the clips are from official authors who own the copyrights to the video itself. The hosting platform can impose geo restrictions or prevent direct imbedding (highlights/geo-restrictions/{highlightId} route can be used to check for potential restrictions). Verified highlights are uploaded anywhere from 1 to 48 hours of the match being finished. |
UNVERIFIED | Highlights vary and might not have gone through the verification process or are considered user uploaded. Videos include a wide spectrum of topics such as last minute scores, memorable plays, game recaps, etc. Unverified highlights are considered more real time and might be uploaded even when the match is still being played. The lifetime of these clips vary and is dependant on the hosting platform. |
Each highlight has a title
which describes what the video is about. Certain entries will have a description
as well which is used to further describe the associated clip. The source
field defines where the clip was aggregated from (e.g. would be youtube, twitter, reddit, espn, etc.). For certain sources you will see additional information being present in the channel
field. By utilising this information you can further narrow down which videos you want to showcase. Highlights might also have an embedUrl
property which is used to directly embed the videos into your website or mobile application.
Below is an example of what you can aim to achieve with our highlights data:
Retrieve a list of highlights based on the requested query parameters.
At least one primary query parameter needs to be specified before you can retrieve the data (timezone
, limit
, offset
are considered secondary).
You can specify the timezone
field in combination with the date
query parameter to get highlights relevant to your location.
There are two other important parameters. The limit
parameter defines what the number of returned highlights will be. If the number of actual highlights is above the limit
value you can make subsequent requests by increasing the offset
value.
Note: The Basic/Free plan might have certain restrictions in place. More information can be found here.
countryCode | string Example: countryCode=TR Country code specified by the ISO 3166 standard. |
countryName | string Example: countryName=Turkey |
leagueName | string Example: leagueName=Süper Lig |
leagueId | number Example: leagueId=173537 |
date | string Example: date=2023-08-11 Date that follows the YYYY-MM-DD format. |
timezone | string Default: "Etc/UTC" Example: timezone=Europe/London Valid timezone identifier. |
season | number Example: season=2023 |
matchId | number Example: matchId=914490490 |
homeTeamId | number Example: homeTeamId=850082 |
awayTeamId | number Example: awayTeamId=856039 |
homeTeamName | string Example: homeTeamName=Trabzonspor |
awayTeamName | string Example: awayTeamName=Antalyaspor |
limit | number [ 0 .. 40 ] Default: 40 Example: limit=40 |
offset | number >= 0 Default: 0 |
x-rapidapi-host required | string football-highlights-api.p.rapidapi.com |
x-rapidapi-key required | string Rapid API Token |
{- "data": [
- {
- "id": 1,
- "type": "VERIFIED",
- "title": "Ligue 1: Lyon vs Reims",
- "description": "Game recap of the match.",
- "match": {
- "id": 489389,
- "round": "Regular Season - 32",
- "date": "2023-05-20T15:30:00.000Z",
- "league": {
- "id": 133,
- "season": 2023,
- "name": "Ligue 1",
}, - "state": {
- "description": "Second half",
- "clock": 67,
- "score": {
- "current": "3 - 1",
- "penalties": "6 - 4"
}
}
}, - "channel": "Ligue 1 Uber Eats",
- "source": "youtube"
}
], - "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"
}
}
Refresh interval: Once an hour
Note: Endpoint is not available in the Basic/Free plan.
Geo restrictions are a plague that have been around for quite a while. They restrict access to online content based on the viewers geographical location. Trying to show restricted highlights to your users can greatly hinder the viewing experience.
Each highlight has a state
property which defines how the geo restrictions are applied.
State | Description |
---|---|
No restricitons applied | Highlight has no restrictions applied and is available globally. |
Allowed countries restriction | Highlight is only available to users whose country code is found in the allowedCountries list. |
Blocked countries restriction | Highlight is blocked to all users whose country code is found in the blockedCountries list. |
Unknown restrictions | There is no guaranteed way to define all allowed or blocked countries. |
As presented before, certain highlights have an embedUrl
field which can be used to directly embed the video into your website or application. The embeddable
field specifies whether this is allowed or not.
id required | number Example: 125344 Requested higlight id. |
x-rapidapi-host required | string football-highlights-api.p.rapidapi.com |
x-rapidapi-key required | string Rapid API Token |
{- "state": "Allowed countries restriction",
- "allowedCountries": [
- "IT"
], - "blockedCountries": [ ],
- "embeddable": true
}
Retrieve highlight information by specifying the highlight id path parameter.
Note: Used to check whether a highlight still exists or had its information updated.
id required | number Example: 8780 Requested higlight id. |
x-rapidapi-host required | string football-highlights-api.p.rapidapi.com |
x-rapidapi-key required | string Rapid API Token |
[- {
- "id": 1,
- "type": "VERIFIED",
- "title": "Ligue 1: Lyon vs Reims",
- "description": "Game recap of the match.",
- "match": {
- "id": 489389,
- "round": "Regular Season - 32",
- "date": "2023-05-20T15:30:00.000Z",
- "league": {
- "id": 133,
- "season": 2023,
- "name": "Ligue 1",
}, - "state": {
- "description": "Second half",
- "clock": 67,
- "score": {
- "current": "3 - 1",
- "penalties": "6 - 4"
}
}
}, - "channel": "Ligue 1 Uber Eats",
- "source": "youtube"
}
]
Refresh interval: Once a day
Retrieve a list of supported bookmakers.
There are two important parameters that are used to navigate through the pagination. The limit
parameter defines what the number of returned bookmakers will be. If the number of actual bookmakers is above the limit
value you can make subsequent requests by increasing the offset
value.
The bookmakers name
or id
can be used to filter data from the odds
endpoint.
name | string Example: name=Stake.com |
limit | number [ 0 .. 100 ] Default: 20 Example: limit=20 |
offset | number >= 0 Default: 0 |
x-rapidapi-host required | string football-highlights-api.p.rapidapi.com |
x-rapidapi-key required | string Rapid API Token |
{- "data": [
- {
- "id": 1,
- "name": "Stake.com"
}
], - "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"
}
}
Retrieve bookmaker information by specifying the bookmaker id path parameter.
Note: Used to check whether a bookmaker still exists or had its information updated.
id required | number Example: 1 Requested bookmaker id. |
x-rapidapi-host required | string football-highlights-api.p.rapidapi.com |
x-rapidapi-key required | string Rapid API Token |
[- {
- "id": 1,
- "name": "Stake.com"
}
]
Prematch odds refresh interval: Multiple times a day
Live odds refresh interval: Once every 10 minutes
Note: Endpoint is not available in the Basic/Free plan.
Retrieve a list of match odds based on the requested query parameters. With oddsType
query parameter you can specify whether you want prematch or live odds. If you do not set a specific value prematch odds will be returned.
At least one primary query parameter needs to be specified before you can retrieve the data (timezone
, limit
, offset
, oddsType
are considered secondary).
The most popular way of getting match odds is by specifying the matchId
query parameter. You can also utilise the date
parameter alongside the timezone
to fetch all match odds for a given day. By specifying league or bookmaker related fields you can further narrow down your search.
As it stands, we currently offer the support for the following markets:
Market | Description |
---|---|
Full Time Result | The possible outcomes for the mentioned market are Home , Draw or Away . |
Asian Handicap | This is considered a complex market. It is split into multiple possible variants such as "Asian Handicap -1.25/+1.25", "Asian Handicap -1.5/+1.5" and so on. The possible outcome of a variant is either Home or Away . |
Odd or Even | The Odd or Even market defines whether the score of both teams will be either Odd or Even . |
Total Goals | This is considered a complex market. It is split into multiple possible variants such as "Total Goals 2", "Total Goals 3.5" and so on. The possible outcome of a variant is either Over or Under . |
Both Teams to Score | The market defines whether both teams will score or not. Outcomes can be either Yes or No . |
There are two other important query parameters. The limit
parameter defines what the number of returned match odds will be. If the number of actual match odds is above the limit
value you can make subsequent requests by increasing the offset
value.
Match odds are available up to 28 days after the game finishes and up to 7 days before the game starts.
Below is an example of what can be achieved with bookmaker odds on a match basis:
oddsType | string Enum: "prematch" "live" Example: oddsType=prematch Defines whether live or prematch odds will be returned. |
leagueId | number |
leagueName | string |
timezone | string Default: "Etc/UTC" Example: timezone=Europe/London Valid timezone identifier. |
bookmakerId | number Example: bookmakerId=1 |
limit | number [ 0 .. 5 ] Default: 5 Example: limit=5 |
offset | number >= 0 Default: 0 |
matchId | number |
bookmakerName | string Example: bookmakerName=Stake.com |
date | string Date that follows the YYYY-MM-DD format. |
x-rapidapi-host required | string football-highlights-api.p.rapidapi.com |
x-rapidapi-key required | string Rapid API Token |
{- "data": [
- {
- "matchId": 884822928,
- "odds": [
- {
- "bookmakerId": 1,
- "bookmakerName": "Stake.com",
- "type": "prematch",
- "market": "Full Time Result",
- "values": [
- {
- "odd": 6.6,
- "value": "Home"
}
]
}
]
}
], - "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"
}
}
Refresh interval: Up to an hour after a match for the associated league and season is finished
Retrieve standings data for a specific league, conference or division.
Endpoint requires both leagueId
and season
query parameters to be specified before you can fetch the data.
Below is an example on how you could render league associated standings
leagueId required | number Example: leagueId=33973 |
season required | number Example: season=2023 |
x-rapidapi-host required | string football-highlights-api.p.rapidapi.com |
x-rapidapi-key required | string Rapid API Token |
{- "groups": [
- {
- "name": "Premier League - Regular Season",
- "standings": [
- {
- "away": {
- "wins": 11,
- "draws": 4,
- "games": 17,
- "loses": 5,
- "scoredGoals": 28,
- "receivedGoals": 27
}, - "home": {
- "wins": 11,
- "draws": 4,
- "games": 17,
- "loses": 5,
- "scoredGoals": 28,
- "receivedGoals": 27
}, - "total": {
- "wins": 11,
- "draws": 4,
- "games": 17,
- "loses": 5,
- "scoredGoals": 28,
- "receivedGoals": 27
}, - "points": 63,
- "position": 4
}
]
}
], - "league": {
- "id": 33973,
- "name": "Premier League",
- "season": 2023
}
}
Refresh interval: Immediately once a game is considered finished
Retrieve a list of the last five finished games for a specific team. If a game was not finished (e.g. was cancelled or postponed) it will not be returned.
Specify teamId
query parameter to retrieve the data. Endpoint is used to create a form section between two teams that are playing a match. Below is an example of what can be achieved:
teamId required | number Example: teamId=5700782 |
x-rapidapi-host required | string football-highlights-api.p.rapidapi.com |
x-rapidapi-key required | string Rapid API Token |
[- {
- "id": 489389,
- "round": "Regular Season - 32",
- "date": "2023-05-20T15:30:00.000Z",
- "league": {
- "id": 133,
- "season": 2023,
- "name": "Ligue 1",
}, - "state": {
- "description": "Second half",
- "clock": 67,
- "score": {
- "current": "3 - 1",
- "penalties": "6 - 4"
}
}
}
]
Retrieve a list of the last ten head 2 head games between two teams. Compare the two teams to find out who is stronger based on their past match results.
Specify teamIdOne
and teamIdTwo
query parameters to retrieve the data. The order of team ids does not matter.
Below is an example of what you can achieve with the data:
teamIdOne required | number Example: teamIdOne=314803 |
teamIdTwo required | number Example: teamIdTwo=5700782 |
x-rapidapi-host required | string football-highlights-api.p.rapidapi.com |
x-rapidapi-key required | string Rapid API Token |
[- {
- "id": 489389,
- "round": "Regular Season - 32",
- "date": "2023-05-20T15:30:00.000Z",
- "league": {
- "id": 133,
- "season": 2023,
- "name": "Ligue 1",
}, - "state": {
- "description": "Second half",
- "clock": 67,
- "score": {
- "current": "3 - 1",
- "penalties": "6 - 4"
}
}
}
]
Lineups will become available 30 minutes before the game starts or, at the latest, 15 minutes after kickoff.
Refresh interval: Once every 10 minutes
Retrieve home and away team lineups for a specific match.
Understanding the returned data structure is crucial for accurate rendering. The formation
and initialLineup
fields are closely related. The first row will always include the team's goalkeeper, while subsequent rows will have the number of entries specified by the formation field.
Below is an example of what you can aim to achieve with the lineup endpoint:
matchId required | number Example: 890342514 Requested match id. |
x-rapidapi-host required | string football-highlights-api.p.rapidapi.com |
x-rapidapi-key required | string Rapid API Token |
{- "homeTeam": {
- "id": 66311,
- "formation": "4-2-3-1",
- "name": "Angers",
- "substitutes": [
- {
- "name": "Lilian Raolisoa",
- "number": 27,
- "position": "Defender"
}
], - "initialLineup": [
- [
- {
- "name": "Yahia Fofana",
- "number": 30,
- "position": "Goalkeeper"
}
], - [
- {
- "name": "Florent Hanin",
- "number": 26,
- "position": "Defender"
}, - {
- "name": "Jordan Lefort",
- "number": 21,
- "position": "Defender"
}, - {
- "name": "Cédric Hountondji",
- "number": 22,
- "position": "Defender"
}, - {
- "name": "Yan Valery",
- "number": 2,
- "position": "Defender"
}
], - [
- {
- "name": "Himad Abdelli",
- "number": 10,
- "position": "Midfielder"
}, - {
- "name": "Zinédine Ould Khaled",
- "number": 12,
- "position": "Midfielder"
}
], - [
- {
- "name": "Justin-Noel Kalumba",
- "number": 17,
- "position": "Midfielder"
}, - {
- "name": "Pierrick Capelle",
- "number": 15,
- "position": "Midfielder"
}, - {
- "name": "Farid El Melali",
- "number": 28,
- "position": "Midfielder"
}
], - [
- {
- "name": "Loïs Diony",
- "number": 9,
- "position": "Forward"
}
]
]
}, - "awayTeam": {
- "id": 66311,
- "formation": "4-2-3-1",
- "name": "Angers",
- "substitutes": [
- {
- "name": "Lilian Raolisoa",
- "number": 27,
- "position": "Defender"
}
], - "initialLineup": [
- [
- {
- "name": "Yahia Fofana",
- "number": 30,
- "position": "Goalkeeper"
}
], - [
- {
- "name": "Florent Hanin",
- "number": 26,
- "position": "Defender"
}, - {
- "name": "Jordan Lefort",
- "number": 21,
- "position": "Defender"
}, - {
- "name": "Cédric Hountondji",
- "number": 22,
- "position": "Defender"
}, - {
- "name": "Yan Valery",
- "number": 2,
- "position": "Defender"
}
], - [
- {
- "name": "Himad Abdelli",
- "number": 10,
- "position": "Midfielder"
}, - {
- "name": "Zinédine Ould Khaled",
- "number": 12,
- "position": "Midfielder"
}
], - [
- {
- "name": "Justin-Noel Kalumba",
- "number": 17,
- "position": "Midfielder"
}, - {
- "name": "Pierrick Capelle",
- "number": 15,
- "position": "Midfielder"
}, - {
- "name": "Farid El Melali",
- "number": 28,
- "position": "Midfielder"
}
], - [
- {
- "name": "Loïs Diony",
- "number": 9,
- "position": "Forward"
}
]
]
}
}
Refresh interval: Once every 5 minutes
Retrieve match statistics data by specifying the matchId
as the path parameter.
Below is an example of what you can aim to achieve with the statistics endpoint:
matchId required | number Example: 979465191 Requested statistics for given match id |
x-rapidapi-host required | string football-highlights-api.p.rapidapi.com |
x-rapidapi-key required | string Rapid API Token |
[- {
- "statistics": [
- {
- "value": 0.62,
- "displayName": "Shots accuracy"
}
]
}
]
Refresh interval: Once a minute
Retrieve a list of live events for a match by specifying matchId
as the path parameter.
Currently supported live events:
Type | Description |
---|---|
Goal | A player strikes the ball into the opposing team's goal. |
Own Goal | A player strikes or deflects the ball into their own team's goal. |
Penalty | A player scores the goal from the penalty spot after a foul or hand play by the defending team inside the penalty area. |
Missed Penatly | The player taking the penalty kick failed to score, either by missing the target or the shot being saved by the goalkeeper. |
Yellow Card | A player is cautioned by the referee for unsporting behavior or foul play. |
Red Card | A player is sent off the field for serious foul play, violent conduct, or receiving a second yellow card. |
Substitution | A player is replaced by another player from the bench during a stoppage in play. |
VAR Goal Confirmed | The Video Assistant Referee (VAR) review confirms that a goal is valid and should stand. |
VAR Goal Cancelled | The VAR review determines that a goal should be disallowed due to an infringement or violation. |
VAR Penalty | The VAR review results in a penalty being awarded to a team. |
VAR Penalty Cancelled | The VAR review results in a previously awarded penalty being overturned. |
VAR Goal Cancelled - Offside | The VAR review determines that a goal should be disallowed due to an offside infringement. |
The above list may be updated with additional entries in the future.
Below is an example of what you can aim to achieve with the live events endpoint:
id required | number Example: 1022538556 Requested match id. |
x-rapidapi-host required | string football-highlights-api.p.rapidapi.com |
x-rapidapi-key required | string Rapid API Token |
[- {
- "team": {
- "id": 13394673,
- "name": "Tersana"
}, - "time": "45+1",
- "type": "Goal",
- "player": "M. Mamdouh",
- "assist": "J. Johanson",
- "substituted": "string"
}
]