Get geo restrictions for highlight
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.
Request
- Base URLhttps://sports.highlightly.net
- Authnone declared. Required headers: x-rapidapi-host, x-rapidapi-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Requested highlight id.
Headers
sport-highlights-api.p.rapidapi.com
Rapid API Token
Response
Example response
{
"state": "Allowed countries restriction",
"allowedCountries": [
"IT"
],
"blockedCountries": [],
"embeddable": true
}Changes
No recorded changes to this operation across all 1 revision of this API.