---
title: "AudioVisual API"
canonical_url: "https://docs.sportradar.com/resources/audiovisual/docs/readme/live-channel-online-live-channel-retail-flex/audiovisual-api"
markdown_url: "https://docs.sportradar.com/resources/audiovisual/docs/readme/live-channel-online-live-channel-retail-flex/audiovisual-api.md"
last_updated: "2026-11-25T06:59:21Z"
---

# AudioVisual API

## Introduction {#audiovisualapi-introduction}

The **Sportradar AudioVisual API** is an API used to integrate video streams from events covered by the AudioVisual unit of Sportradar into a web application or a mobile app.\
This document describes how to integrate the API and is intended for developers.

## Access {#audiovisualapi-access}

The API is available via the HTTP protocol and must be called from the server(s) of the client and not from a frontend application.\
Access to the API is restricted by IP. In order to access the API, Sportradar needs to whitelist the IP(s) of the client server(s) from which the API will be called.

> **Warning**
>
> **Please note:**
>
> In case you need to whitelist Sportradar's servers on your firewall, the following hostname must be used in the firewall rules: [av-api.betradar.com](http://av-api.betradar.com)\
> If your firewall does not support whitelisting of hostnames or if there are any further questions please contact the [integration team](mailto:av-integration@sportradar.com) of Sportradar's Audiovisual unit.

## URL {#audiovisualapi-url}

The API is hosted on **<https://av-api.betradar.com/>**.\
The URLs of the endpoints follow the following pattern: **<https://av-api.betradar.com/><version>/\<endpoint\_path>?\<query\_parameters>**\
Example of URL: **<https://av-api.betradar.com/v1/events>**\
Setting the version in the URL is optional. If it is omitted, the latest version of the API will be used.\
The latest version of the API is “v1”.

## Response formats {#audiovisualapi-responseformats}

The API supports only **JSON** as response format.\
Send “application/json” in the “Accept” HTTP header.

## Authentication {#audiovisualapi-authentication}

Authentication is required for all of the endpoints of the API. The authentication scheme used by the API is **Bearer authentication** (also called token authentication). To authenticate, an API key (bearer token) must be sent in the “Authorization” HTTP header when making requests to the API. The string “Bearer ” must be included before the API key, as follows:\
Authorization: Bearer <api-key>

The API key is provided by Sportradar as part of an AudioVisual product. If you already have an API key with the Live Channel Online API, it is not possible to re-use it with the AudioVisual API. Please contact us if you need a new API key.

> **Warning**
>
> **Please note:**
>
> The API key should never be shared with a third-party and should never be exposed publicly. It is the responsibility of the client to keep it secret.

## ID scheme {#audiovisualapi-idscheme}

Like most of other APIs provided by Sportradar, the values for representing IDs are using URN-style IDs with the following format: “XXX:YYY:###”.

- “XXX” is some kind of context and can be “sr” or “av”. “sr” refers to an entity which is part of the Sportradar world and which is globally used for other products in the Sportradar catalogue. “av” refers to an entity which is specific to the Sportradar AudioVisual products.
- “YYY” is the name of the entity within the context. It is generally a string.
- “###” is typically a raw identifier for that entity. It is generally an integer.

## Expected workflow {#audiovisualapi-expectedworkflow}

The following workflow is recommended for integrating the AudioVisual Client API:

1. The client server requests the GET /events endpoint to get the list of events and to have an overview of the different streams available for them.
2. When an end user wants to play the video stream of a content (e.g. via the client’s web site), a request is made from the client server to the GET /streams endpoint to get the stream URL. The IP of the end user must be passed to the API via the “X-Real-IP” HTTP header.
3. The stream URL returned in the response of the API should be passed on to the end user’s video player, which will then connect to a streaming server.
4. The streaming server will validate the stream URL (by doing an IP validation among others) and play the stream back to the end user.

> **Warning**
>
> **Please note:**
>
> In case IP mismatches on stream playback are occuring regularly (HTTP error codes 401 or 403), please use the [GET /streams/\<stream\_id>/\<stream\_type>/ip-detection-url](https://docs.betradar.com/display/BD/AudioVisual+API#AudioVisualAPI-GET/streams/%3Cstream_id%3E/%3Cstream_type%3E/ip-detection-url) endpoint to get an IP detection URL to improve IP detection. Please note that **this endpoint shall only be called once per stream id and stream type and not** for each individual end user.\
> We recommend the query parameter "force\_dual\_stack" shall be used (i.e set to =1) when requesting the stream URL (via GET /streams). See in the query parameters list in section 'GET /streams/\<stream\_id>/\<stream\_type>'.

## Stream playback {#audiovisualapi-specialrequirementsforstreamingintheusa-canadaandmexico}

Please make sure to stop your video player on all platforms (Windows, Android, iOS...) after the encoding of a live stream ended. Therefore you need to implement listening to the **MEDIA\_ENDED** event to stop the video player!\
Examples:

> **Info**
>
> hls.js:\
> hls.on(Hls.Events.MEDIA\_ENDED, () => { // stop player })
>
> When using the [Sportradar AudioVisual Video Player](https://docs.sportradar.com/resources/audiovisual/docs/readme/live-channel-online-live-channel-retail-flex/audiovisual-video-player.md):\
> video.addEventListener("ended", () => { // stop player})

Please make also sure that the playback request for streams does not contain any cookies or credentials.\
The easiest way to see this is from your website or app. To check whether the <mark style="color:red;">Cookie Request</mark> header is present (in the <mark style="color:red;">Request Headers</mark> in Chrome/Firefox devtools).

The method to avoid this safely is to set credentials: <mark style="color:red;">"omit"</mark> in requests from your website/app.

## Special requirements for streaming in the USA, Canada and Mexico {#audiovisualapi-specialrequirementsforstreamingintheusa-canadaandmexico}

When the end-user is located in one of these countries:

1. Client is only permitted to send requests to the API endpoints which return stream URLs if the end-user is located in a territory which is defined as a whitelisted area according to the agreement with Sportradar.
2. Additionally, two more HTTP headers must be sent in the request:
   - “Geo-Position”: comma-separated string containing the latitude and longitude values specifying the location of the end-user, in WGS84 format. For example: 40.714224,-73.961452.
   - “Geo-Position-Timestamp”: Unix timestamp (in seconds) of the latitude/longitude coordinates retrieval.

Based on this information, the API will perform a check to verify that the end-user is located in a territory which is allowed, and will make sure that the timestamp is not older than 1 minute ago. If this check fails, the stream URL will not be returned. Instead, an error will be returned in the response.

> **Warning**
>
> **Please note:**
>
> This check is activated as soon as the respective content for clients is made available in these countries and clients have confirmed the implementation of these two additional HTTP headers on their side. Clients need to implement these two new HTTP headers in order to be able to use the API endpoints which would then return the stream URLs properly.

## 4Sight streaming variant {#audiovisualapi-augmentedstreaming-4sightstreaming-support-livechannelonlineaugmentedstreaming}

In order to use the 4Sight streaming content for the Live Channel Online product, please ensure that your API integration also supports the use of event contents which are **not marked as main** content ("is\_main" property in the response of the GET /events and GET /events/\<event\_id> endpoints) and **avoid filtering for main contents** only (i.e. **avoid query parameter "is\_main\_content=1"** when requesting the GET /events endpoint).

If you want to use both the standard content and the 4Sight streaming content, make sure you are checking the content variant for each content (i.e. "content\_variant" property in the response of the GET /events and GET /events/\<event\_id> endpoints).

**You just need to check for 2 stream variants in the streaming API:**

- Variant 1: Standard Stream
- Variant 2: 4Sight Stream<br>

**Each Variant has it‘s stream ID**

e.g. Match A:

- Variant 1: stream ID 7436859
- Variant 2: stream ID 7436943

## API endpoints {#audiovisualapi-apiendpoints}

### GET /events {#audiovisualapi-get-events}

**HTTP method:** GET\
**Path:** /events

This endpoint returns the lists of booked events (booked manually via the Live Booking Calendar in [betradar.com](http://betradar.com/) or booked automatically via a client package).

> **Warning**
>
> **Please note:**
>
> In order to always have the latest event meta data incl. start times and statuses, we strongly recommend to request the /events endpoint in one minute intervals.\
> Clients should check the stream status before making content available to their users on their website or (mobile) application - meaning they should check that the stream status is "av:stream\_status:2" ("On Air Broadcast"). Otherwise, no streams will be available.

An event is defined by various properties described below and contains one or multiple **“contents”**. A content is a video in relation to the event. For instance, an event such as a football match will contain a video of the full duration of the match but can also contain videos for goal clips, highlights, interviews, etc.\
A content itself contains one or multiple **“streams”**. Streams are distincted by AudioVisual product (Live Channel Online, Live Channel Retail Flex, Live Channel Trading, etc) and distribution (Live or VOD).

By using this endpoint, you will be able to retrieve events maximum in the time frame between now – 1 day and now + 14 days. Events out of this time frame are not available, whatever are the filtering parameters used.

> **Warning**
>
> **Please note:**
>
> To request any events which start during a time frame outside of the default range (but within the maximum range as described above), parameters ‘from’ and ‘to’ can be passed.\
> Example: *<https://av-api.betradar.com/v1/events?from=2021-11-14T00:00:00%2B01:00&to=2021-11-29T00:00:00%2B01:00>*\
> Please make sure that the request is URL encoded.

Events are sorted by event start time.

**Parameters as query parameters in the URL**\
The following parameters can be passed as query parameters in the URL. They are all optional. If none of these parameters are passed, the API will return by default the events which have a start time between now – 6 hours and now + 3 days as well as events with a start time outside of this time range which have at least one stream with distribution type **“Live”** and broadcast status **“On Air Broadcast”**.

| Name                       | Type    | Optional? | Description                                                                                                                                                                                                                                                                                                                                                                                                                  |
| -------------------------- | ------- | --------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| “from”                     | String  | Yes       | Lower bound of the event time frame in ISO-8601 format.<br>Has to be used in combination with “to” parameter.                                                                                                                                                                                                                                                                                                                |
| “to”                       | String  | Yes       | Upper bound of the event time frame in ISO-8601 format.<br>Has to be used in combination with “from” parameter.                                                                                                                                                                                                                                                                                                              |
| “event”                    | String  | Yes       | Event ID.<br>Support both single value (event=) and multi-values (event\[\]=).<br>The ID scheme “av:event:\<integer>” must be used.<br>Filter the list of events for the given event(s).                                                                                                                                                                                                                                     |
| “client\_event”            | String  | Yes       | Client event ID.<br>This parameter works only if a mapping exists between the Sportradar sport event ID and the client event ID.<br>Support both single value (client_event=) and multi-values (client_event\[\]=).<br>Does not use any ID scheme.<br>Filter the list of events for the given client event(s).                                                                                                               |
| “sport\_event”             | String  | Yes       | Sportradar sport event ID.<br>Support both single value (sport_event=) and multi-values (sport_event\[\]=).<br>For now, the ID scheme “sr:match:\<integer>” must be used. Some other ID schemes may be available in the future.<br>Filter the list of events for the given Sportradar sport event(s).                                                                                                                        |
| “event\_status”            | String  | Yes       | Event status ID.<br>Support both single value (event_status=) and multi-values (event_status\[\]=).<br>The ID scheme “av:event\_status:\<integer>” must be used.<br>Filter the events for the given event status(es).<br>Use GET /event-statuses endpoint to get the list of possible options.<br>See the section "Description of statuses" at the end of this document for more information.                                |
| “content”                  | String  | Yes       | Content ID.<br>Support both single value (content=) and multi-values (content\[\]=).<br>The ID scheme “av:content:\<integer>” must be used.<br>Filter the list of events/contents for the given content(s).                                                                                                                                                                                                                  |
| “content\_type”            | String  | Yes       | Content type ID.<br>Support both single value (content_type=) and multi-values (content_type\[\]=).<br>The ID scheme “av:content\_type:\<integer>” must be used.<br>Filter the list of events/contents for the given content type(s).<br>Use GET /content-types endpoint to get the list of possible options.                                                                                                                |
| “content\_variant”         | String  | Yes       | Content variant ID.<br>Support both single value (content_variant=) and multi-values (content_variant\[\]=).<br>The ID scheme: "av:content\_variant:\<integer>" must be used.<br>Filter the list of events/contents for the given content variant(s).<br>Use GET /content-variants endpoint to get the list of possible options.                                                                                             |
| “stream”                   | String  | Yes       | Stream ID.<br>Support both single value (stream=) and multi-values (stream\[\]=).<br>The ID scheme “av:stream:\<integer>” must be used.<br>Filter the list of events/contents/streams for the given stream(s).                                                                                                                                                                                                               |
| “product”                  | String  | Yes       | AudioVisual product ID.<br>Support both single value (product=) and multi-values (product\[\]=).<br>The ID scheme “av:product:\<integer>” must be used.<br>Filter the list of events/contents/streams for the given product(s).<br>Use GET /products endpoint to get the list of possible options.                                                                                                                           |
| “distribution”             | String  | Yes       | Distribution ID.<br>Support both single value (distribution=) and multi-values (distribution\[\]=).<br>The ID scheme “av:distribution:\<integer>” must be used.<br>Filter the list of events/contents/streams for the given distribution(s).<br>Use GET /distributions endpoint to get the list of possible options.                                                                                                         |
| “stream\_status”           | String  | Yes       | Stream status ID.<br>Support both single value (stream_status=) and multi-values (stream_status\[\]=).<br>The ID scheme “av:stream\_status:\<integer>” must be used.<br>Filter the list of events/contents/streams for the given stream status(es).<br>Use GET /stream-statuses endpoint to get the list of possible options.<br>See the section "Description of statuses" at the end of this document for more information. |
| "include\_event\_bookings" | Boolean | Yes       | Should event bookings be included in the content objects of the API response?<br>Possible values: 0, 1.<br>This parameter will take effect for Live Channel Promotion Premium product and its content only.                                                                                                                                                                                                                  |
| “include\_match\_events”   | Boolean | Yes       | Should the "match\_events" property be included in the content objects of the API response?<br>Possible values: 0, 1.<br>This parameter will take effect for Live Channel Promotion Premium product and its content only.                                                                                                                                                                                                    |

****Response example in JSON:****

```json
[
	{
		"id": "av:event:507960",
        "client_event_id": "30401-3101",
		"sport_event_id": "sr:match:23031865",
		"start_time": "2020-10-04T16:00:00+00:00",
		"end_time": null,
		"event_status": {
			"id": "av:event_status:2",
			"name": "Confirmed"
		},
		"first_level_category": {
			"id": "sr:sport:1",
			"name": "Soccer"
		},
		"second_level_category": {
			"id": "sr:category:30",
			"name": "Germany"
		},
		"third_level_category": {
			"id": "sr:tournament:35",
			"name": "Bundesliga"
		},
		"competitors": [
			{
				"id": "sr:competitor:2672",
				"name": "BAYERN MUNICH",
				"qualifier": "home"
			},
			{
				"id": "sr:competitor:2528",
				"name": "HERTHA BSC",
				"qualifier": "away"
			}
		],
		"venue": {
			"id": "sr:venue:574",
			"name": "Allianz Arena"
		},
        "event_bookings": [
            {
                "id": "av:event_booking:474856",
                "product": {
                    "id": "av:product:8",
                    "name": "Live Channel Promotion Premium"
                },
                "content_types": [
                    {
                        "id": "av:content_type:11",
                        "name": "Clip",
                        "match_event_types": [
                            {
                                "id": "sr:match_event_type:30",
                                "name": "Score change"
                            },
                            {
                                "id": "sr:match_event_type:50",
                                "name": "Red card"
                            }
                        ]
                    }
                ],
 				"geo_restrictions": [
					{
						"device_category": {
							"id": "av:device_category:1",
							"name": "Desktop"
						},
						"country_iso_alpha2_codes": "FR,IT,MX,US",
                        "country_subdivision_iso_codes": {
                            "MX": "MX-CMX,MX-AGU",
							"US": "US-CA,US-FL"
                        }
					},
					{
						"device_category": {
							"id": "av:device_category:2",
							"name": "Mobile"
						},
                        "country_iso_alpha2_codes": "CA,ES,NO,US",
                        "country_subdivision_iso_codes": {
							"CA": "CA-BC,CA-ON",
							"US": "US-KY,US-LA"
                        }
					}
				]
            }
        ],
		"contents": [
			{
				"id": "av:content:629526",
				"content_type": {
					"id": "av:content_type:6",
					"name": "Full match"
				},
                "content_variant": {
                    "id": "av:content_variant:1",
                    "name": "Standard feed"
                },
				"name": null,
				"is_main": true,
				"streams": [
					{
						"id": "av:stream:1650264",
						"product": {
							"id": "av:product:2",
							"name": "Live Channel Online"
						},
						"distribution": {
							"id": "av:distribution:1",
							"name": "Live"
						},
						"start_time": "2020-10-04T16:00:00+00:00",
						"end_time": null,
                        "stream_status": {
							"id": "av:stream_status:2",
							"name": "On Air Broadcast"
						},
                        "has_low_latency": true,
						"languages": [
							{
								"id": "sr:language:2",
								"name": "English"
							}
						],
						"geo_restrictions": [
							{
								"device_category": {
									"id": "av:device_category:1",
									"name": "Desktop"
								},
								"country_iso_alpha2_codes": "FR,IT,MX,US",
                                "country_subdivision_iso_codes": {
                                    "MX": "MX-CMX,MX-AGU",
									"US": "US-CA,US-FL"
                                },
                                "blackout_zones": [
                                    {
                                        "id": "av:blackout_zone:1",
                                        "name": "Anaheim"
                                    },
                                    {
                                        "id": "av:blackout_zone:2",
                                        "name": "Los Angeles"
                                    }
                                ]
							},
							{
								"device_category": {
									"id": "av:device_category:2",
									"name": "Mobile"
								},
                                "country_iso_alpha2_codes": "CA,ES,NO,US",
                                "country_subdivision_iso_codes": {
									"CA": "CA-BC,CA-ON",
									"US": "US-KY,US-LA"
                                },
                                "blackout_zones": [
                                    {
                                        "id": "av:blackout_zone:1",
                                        "name": "Anaheim"
                                    },
                                    {
                                        "id": "av:blackout_zone:2",
                                        "name": "Los Angeles"
                                    }
                                ]
                            }
						]
					}
				]
			},
			{
				"id": "av:content:629527",
    			"content_type": {
        			"id": "av:content_type:11",
        			"name": "Clip"
    			},
                "content_variant": {
                    "id": "av:content_variant:1",
                    "name": "Standard feed"
                },
				"name": "Goal by Robert Lewandowski",
				"video_duration": 8717,
				"is_main": false,
    			"match_events": [
        			{
            			"id": "sr:match_event:758556415",
						"live_data_id": "ld:match_event:2856723849",
            			"match_event_type": {
                			"id": "sr:match_event_type:30",
                			"name": "Score change"
            			},
            			"time": "2020-10-04T17:44:32+00:00",
            			"match_clock": "84:58",
            			"competitor_qualifier": "home",
            			"players": [
                			{
                    			"id": "sr:player:41789",
                    			"name": "Lewandowski, Robert",
                    			"type": "scorer"
                			}
            			],
            			"home_score": 3,
            			"away_score": 2,
                        "score": "3-2",
            			"method": "header"
        			}
    			],
    			"streams": [
        			{
            			"id": "av:stream:1650265",
            			"product": {
                			"id": "av:product:8",
                			"name": "Live Channel Promotion Premium"
            			},
            			"distribution": {
                			"id": "av:distribution:3",
                			"name": "VOD"
            			},
            			"start_time": "2020-10-04T17:44:32+00:00",
            			"end_time": null,
					    "expiration_time": "2020-10-04T21:44:32+00:00",
            			"stream_status": {
                			"id": "av:stream_status:2",
                			"name": "On Air Broadcast"
            			},
                        "has_low_latency": false,
            			"languages": [],
						"geo_restrictions": [
							{
								"device_category": {
									"id": "av:device_category:1",
									"name": "Desktop"
								},
								"country_iso_alpha2_codes": "FR,IT,MX,US",
                                "country_subdivision_iso_codes": {
                                    "MX": "MX-CMX,MX-AGU",
									"US": "US-CA,US-FL"
                                }
							},
							{
								"device_category": {
									"id": "av:device_category:2",
									"name": "Mobile"
								},
                                "country_iso_alpha2_codes": "CA,ES,NO,US",
                                "country_subdivision_iso_codes": {
									"CA": "CA-BC,CA-ON",
									"US": "US-KY,US-LA"
                                }
							}
						],
            			"usage_types": [
                			{
                    			"id": "av:usage_type:1",
                    			"name": "On betting platform with login"
                			},
                			{
                    			"id": "av:usage_type:2",
                    			"name": "On betting platform without login"
                			}
            			]
        			}
    			]
			}
		]
	}
]
```

**Description of the properties**

| Property                  | Sub I                              | Sub II               | Type       | Can be null / empty? | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| ------------------------- | ---------------------------------- | -------------------- | ---------- | -------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| “id”                      |                                    |                      | String     | No                   | Event ID.<br>ID scheme is always “av:event:\<integer>”.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| “client\_event\_id”       |                                    |                      | String     | Yes                  | Client event ID.<br>This property is present only if a mapping exists between the Sportradar match ID and the client event ID.<br>Does not use any ID scheme. The client event ID is returned as it is.                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| “sport\_event\_id”        |                                    |                      | String     | Yes                  | Sportradar sport event ID.<br>For now, ID scheme is always “sr:match:\<integer>”. Some other ID schemes may be available in the future.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| “start\_time”             |                                    |                      | String     | No                   | Start time of the event in ISO-8601 format. Uses the UTC offset by default.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| “end\_time”               |                                    |                      | String     | Yes                  | End time of the event in ISO-8601 format. Uses the UTC offset by default.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| “event\_status”           |                                    |                      | Object     | No                   | Status of the event.<br>See the section "Description of statuses" at the end of this document for more information.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| <br>                      | “id”                               |                      | String     | No                   | Event status ID.<br>ID scheme is always “av:event\_status:\<integer>”.<br>Use GET /event-statuses endpoint to get the list of possible values.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
|                           | “name”                             |                      | String     | No                   | Name of the event status.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| “first\_level\_category”  |                                    |                      | Object     | No                   | First level category of the event.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| <br>                      | “id”                               |                      | String     | No                   | First level category ID.<br>Two ID schemes are possible:<ul><li>“sr:sport:\<integer>”: the property will contain the Sportradar sport ID.</li><li>“av:category:\<integer>”: the property will contain the ID of the first level category (for Sportradar AudioVisual-only events).</li></ul>                                                                                                                                                                                                                                                                                                                                                          |
|                           | “name”                             |                      | String     | No                   | Name of the first level category.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| “second\_level\_category” |                                    |                      | Object     | No                   | Second level category of the event.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| <br>                      | “id”                               |                      | String     | No                   | Second level category ID.<br>Three ID schemes are possible:<ul><li>“sr:category:\<integer>”: the property will contain the Sportradar category ID.</li><li>“av:category:\<integer>”: the property will contain the ID of the second level category (for Sportradar AudioVisual-only events).</li><li>“sr:stage\_unique:“: the property will contain the ID of the Sportradar Stage (for Sportradar stage events only).</li></ul>                                                                                                                                                                                                                      |
|                           | “name”                             |                      | String     | No                   | Name of the second level category.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| “third\_level\_category”  |                                    |                      | Object     | No                   | Third level category of the event.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| <br>                      | “id”                               |                      | String     | No                   | Third level category ID.<br>Three ID schemes are possible:<ul><li>“sr:tournament:\<integer>”: the property will contain the Sportradar tournament ID.</li><li>“av:category:\<integer>”: the property will contain the ID of the third level category (for Sportradar AudioVisual-only events)</li><li>“sr:stage\_unique:“: the property will contain the ID of the Sportradar Stage (for Sportradar stage events only).</li></ul>                                                                                                                                                                                                                     |
|                           | “name”                             |                      | String     | No                   | Name of the third level category.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| “competitors”             |                                    |                      | Array      | Yes                  | Array of “competitor” objects.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| <br>                      | “id”                               |                      | String     | No                   | Competitor ID.<br>Two ID schemes are possible:<ul><li>“sr:competitor:\<integer>”: the property will contain the Sportradar competitor ID.</li><li>“av:competitor:\<integer>”: the property will contain the ID of the competitor (for Sportradar AudioVisual-only events).</li></ul>                                                                                                                                                                                                                                                                                                                                                                  |
|                           | “name”                             |                      | String     | No                   | Name of the competitor.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
|                           | “qualifier”                        |                      | String     | No                   | Defines is the competitor is “home” or “away”.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| “venue”                   |                                    |                      | Object     | Yes                  | Venue of the event.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| <br>                      | “id”                               |                      | String     | No                   | Venue ID.<br>Two ID schemes are possible:<ul><li>“sr:venue:\<integer>”: the property will contain the Sportradar venue ID.</li><li>“av:venue:\<integer>”: the property will contain the ID of the venue (for Sportradar AudioVisual-only events).</li></ul>                                                                                                                                                                                                                                                                                                                                                                                           |
|                           | “name”                             |                      | String     | No                   | Name of the venue.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| “contents”                |                                    |                      | Array      | No                   | Array of “content” objects.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
|                           | “id”                               |                      | String     | No                   | Content ID.<br>ID scheme is always “av:content:\<integer>”.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
|                           | “content\_type”                    |                      | Object     | No                   | Type of the content.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| <br>                      |                                    | “id”                 | String     | No                   | Content type ID.<br>ID scheme is always “av:content\_type:\<integer>”.<br>Use GET /content-types endpoint to get the list of possible values.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
|                           |                                    | “name”               | String     | No                   | Name of the content type.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
|                           | “content\_variant”                 |                      | Object     | No                   | Variant of the content.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| <br>                      |                                    | “id”                 | String     | No                   | Content variant ID.<br>ID scheme is always "av:content\_variant:\<integer>".<br><br>Use GET /content-variants endpoint to get the list of possible values.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| <br>                      |                                    | “name”               | String     | No                   | Name of the content variant.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
|                           | “name”                             |                      | String     | Yes                  | Name of the content.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
|                           | "video\_duration"                  |                      | Integer    | Yes                  | Video duration in milliseconds.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
|                           | “is\_main”                         |                      | Boolean    | No                   | True if the content is the main content of the event.<br>For example, for a football match, the main content would be the video of the full duration of the match.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
|                           | “match\_events”                    |                      | Array      | Yes                  | Array of “match\_event” objects.<br>This property is included only if the GET parameter "include\_match\_events=1" is passed and if there is at least one match event.<br>This property is used for Live Channel Promotion Premium product and its content only.                                                                                                                                                                                                                                                                                                                                                                                      |
| <br>                      |                                    | “id”                 | String     | No                   | Sportradar match event ID.<br>ID scheme is always "sr:match\_event:\<integer>".                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| <br>                      |                                    | “live\_data\_id”     | String     | Yes                  | Live data match event ID.<br>ID scheme is always "ld:match\_event:\<integer>".                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| <br>                      |                                    | "match\_event\_type" | Object     | No                   | Type of the Sportradar match event.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| <br>                      |                                    | “id”                 | String<br> | No                   | Sportradar match event type ID.<br>ID scheme is always "sr:match\_event\_type:\<integer>".                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| <br>                      |                                    | “name”               | String     | No                   | Name of the match event type.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| <br>                      | "time"                             |                      | String     | No                   | Time of the match event in ISO-8601 format. Uses the UTC offset by default.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| <br>                      | "match\_clock"                     |                      | String     | Yes                  | Time of the match event based on the match clock. Used format is: "\<minutes>:\<seconds>".                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| <br>                      | "competitor\_qualifier"            |                      | String     | Yes                  | Defines if Sportradar match event is associated to the "home" competitor or to the "away" competitor.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| <br>                      | "players"                          |                      | Array      | Yes                  | Array of players involved in the Sportradar match event.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| <br>                      |                                    | "id"                 | <br>String | No                   | Sportradar player ID.<br>ID scheme is always "sr:player:\<integer>".                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| <br>                      |                                    | "name"               | String<br> | No                   | Player name in format "\<lastName>, \<firstName>"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| <br>                      |                                    | "type"               | <br>String | No                   | Type of the player in relation to the Sportradar match event.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| <br>                      | "home\_score"                      |                      | Integer    | Yes                  | Score of the home competitor after the Sportradar match event occurred.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| <br>                      | "away\_score"                      |                      | Integer    | Yes                  | Score of the away competitor after the Sportradar match event occurred.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| <br>                      | "method"                           |                      | String     | Yes                  | Method used to score the goal in case the match event type is covering a goal.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| “streams”                 |                                    |                      | Array      | No                   | Array of “stream” objects.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| <br>                      | “id”                               |                      | String     | No                   | Stream ID.<br>ID scheme is always “av:stream:\<integer>”.<br>This is the ID to be sent when using the GET /streams/\<stream\_id>/\<stream\_type> endpoint.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
|                           | “product”                          |                      | Object     | No                   | AudioVisual product of the stream.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| <br>                      |                                    | “id”                 | String     | No                   | Product ID.<br>ID scheme is always “av:product:\<integer>”.<br>Use GET /products endpoint to get the list of possible values.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
|                           |                                    | “name”               | String     | No                   | Name of the product.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
|                           | “distribution”                     |                      | Object     | No                   | Distribution of the stream.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| <br>                      |                                    | “id”                 | String     | No                   | Distribution ID.<br>ID scheme is always “av:distribution:\<integer>”.<br>Use GET /distributions endpoint to get the list of possible values.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
|                           |                                    | “name”               | String     | No                   | Name of the distribution.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
|                           | "has\_low\_latency"                |                      | Boolean    | No                   | Indicates if stream has low latency                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
|                           | “start\_time”                      |                      | String     | No                   | Start time of the stream in ISO-8601 format. Uses the UTC offset by default.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
|                           | “end\_time”                        |                      | String     | Yes                  | End time of the stream in ISO-8601 format. Uses the UTC offset by default.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
|                           | “stream\_status”                   |                      | Object     | No                   | Status of the stream.<br>See the section "Description of statuses" at the end of this document for more information.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| <br>                      |                                    | “id”                 | String     | No                   | Stream status ID.<br>ID scheme is always “av:stream\_status:\<integer>”.<br>Use GET /stream-statuses endpoint to get the list of possible values.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
|                           | “languages”                        |                      | Array      | Yes                  | Array of “language” objects.<br>Languages available as audio for the stream.<br>If this array is empty, it means that only one default language will be available as audio for the stream.                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| <br>                      |                                    | “id”                 | String     | No                   | Sportradar language ID.<br>ID scheme is always “sr:language:\<integer>”.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
|                           |                                    | “name”               | String     | No                   | Name of the language.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
|                           | “geo\_restrictions”                |                      | Array      | No                   | Array of “geo restriction” objects.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| <br>                      |                                    | “device\_categories” | Object     | No                   | Device category for which the geo restriction applies.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| <br>                      |                                    | “id”                 | String     | No                   | Device category ID.<br>ID scheme is always “av:device\_category:\<integer>”.<br>Use GET /device-categories endpoint to get the list of possible values.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
|                           |                                    | “name”               | String     | No                   | Name of the device category.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
|                           | “country\_iso\_alpha2\_codes”      |                      | String     | No                   | String of comma-separated country ISO alpha-2 codes.<br>Countries allowed for the given stream and device category.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
|                           | “country\_subdivision\_iso\_codes” |                      | Object     | Yes                  | Lists of comma-separated country subdivision ISO codes, grouped by country (where the key is the country ISO alpha-2 code).<br>Country subdivisions allowed for the given stream and device category.<br>If an allowed country has no subdivisions listed, it means that geo-restrictions are not handled on subdivision level for that country. Therefore all the subdivisions of that country are allowed. Please contact us to know which countries have their geo-restrictions handled on subdivision level.<br>If none of the allowed countries have their geo-restrictions handled on subdivision level, this property will be omitted.<br><br> |
| “usage\_types”            |                                    |                      | Array      | Yes                  | Array of usage types of the given event and product.<br>This property is used for Live Channel Promotion Premium product and its content only.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| <br>                      | “id”                               |                      | String     | No                   | Usage type ID.<br>ID scheme is always "av:usage\_type:\<integer>".<br>Use GET /usage-types endpoint to get the list of possible values.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| <br>                      | “name”                             |                      | String     | No                   | Name of the usage type.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |

### GET /events/\<event\_id> {#audiovisualapi-get-events-less-than-event\_id-greater-than}

**HTTP method:** GET\
**Path:** /events/\<event\_id>

This endpoint returns the same response as the GET /events endpoint, but just for one event. The structure is the same except that the root element is an object instead of an array. Please see the documentation of GET /events endpoint for more information (note that the GET parameters from the GET /events endpoint do not apply to this endpoint).

**Parameters in the path of the URL**

| Name        | Type   | Optional? | Description                                                    |
| ----------- | ------ | --------- | -------------------------------------------------------------- |
| “event\_id” | String | No        | Event ID.<br>The ID scheme “av:event:\<integer>” must be used. |

**Parameters as query parameters in the URL**

| Name                       | Type    | Optional? | Description                                                                                                                                                                                                               |
| -------------------------- | ------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| "include\_event\_bookings" | Boolean | Yes       | Should event bookings be included in the content objects of the API response?<br>Possible values: 0, 1.<br>This parameter will take effect for Live Channel Promotion Premium product and its content only.               |
| "include\_match\_events"   | Boolean | Yes       | Should the "match\_events" property be included in the content objects of the API response?<br>Possible values: 0, 1.<br>This parameter will take effect for Live Channel Promotion Premium product and its content only. |

### GET /events/by-sport-event-id/\<sport\_event\_id> {#audiovisualapi-get-events-by-sport-event-id-less-than-sport\_event\_id-greater-than}

**HTTP method:** GET\
**Path:** /events/by-sport-event-id/\<sport\_event\_id>

This endpoint returns the same response as the GET /events endpoint but just for one event assigned to the requested sport event ID.\
The structure is the same except that the root element is an object instead of an array. Please see the documentation of GET /events endpoint for more information (note that the GET parameters from the GET /events endpoint do not apply to this endpoint).

**Parameters in the path of the URL**

| Name             | Type   | Optional? | Description                                                           |
| ---------------- | ------ | --------- | --------------------------------------------------------------------- |
| sport\_event\_id | String | No        | Sport event ID.<br>The ID scheme: "sr:match:\<integer>" must be used. |

**Parameters as query parameters in the URL**

| Name                       | Type    | Optional? | Description                                                                                                                                                                                                               |
| -------------------------- | ------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| "include\_event\_bookings" | Boolean | Yes       | Should event bookings be included in the content objects of the API response?<br>Possible values: 0, 1.<br>This parameter will take effect for Live Channel Promotion Premium product and its content only.               |
| "include\_match\_events"   | Boolean | Yes       | Should the "match\_events" property be included in the content objects of the API response?<br>Possible values: 0, 1.<br>This parameter will take effect for Live Channel Promotion Premium product and its content only. |

### GET /contents/\<content\_id> {#audiovisualapi-get-contents-less-than-content\_id-greater-than}

**HTTP method:** GET\
**Path:** /contents/\<content\_id>

This endpoint returns one specific content object.

**Parameters in the path of the URL**

| Name          | Type   | Optional? | Description                                                              |
| ------------- | ------ | --------- | ------------------------------------------------------------------------ |
| “content\_id” | String | No        | Event content ID.<br>The ID scheme “av:content:\<integer>” must be used. |

**Parameters as query parameters in the URL**

| Name                     | Type    | Optional? | Description                                                                                                                                                                                                                       |
| ------------------------ | ------- | --------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| “include\_match\_events” | Boolean | Yes       | Should the "match\_events" property be included in the content objects of the API response?<br><br>Possible values: 0, 1.<br><br>This parameter will take effect for Live Channel Promotion Premium product and its content only. |

### GET /streams/\<stream\_id>/\<stream\_type> {#audiovisualapi-get-streams-less-than-stream\_id-greater-than-less-than-stream\_type-greater-than}

**HTTP method:** GET\
**Path:** /streams/\<stream\_id>/\<stream\_type>

This endpoint returns the URL of a stream by stream ID for a given stream type.

**Parameters in the path of the URL**

| Name           | Type   | Optional? | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| -------------- | ------ | --------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| “stream\_id”   | String | No        | Stream ID as provided in the GET /events endpoint.<br>The ID scheme “av:stream:\<integer>” must be used.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| “stream\_type” | String | No        | Type of stream.<br>Possible values:<ul><li>“dash-manifest”: to get the DASH manifest URL. Available only for the products Live Channel Retail Flex, Live Channel Online and Third Party and only for a booking on the device category “Desktop” or “Mobile”.</li><li>“cmaf-manifest”: to get the CMAF manifest URL. Available only for the products Live Channel Retail Flex, Live Channel Online and Third Party and only for a booking on the device category “Desktop” or “Mobile”.</li><li>“hls”: to get the HLS stream URL. Available only for the products Live Channel Online and Third Party and only for a booking on the device category “Desktop” or “Mobile”.</li><li>“hls-manifest”: to get the HLS manifest URL. Available only for the products Live Channel Online and Third Party and only for a booking on the device category “Desktop” or “Mobile”.</li><li>"ll-hls-manifest": to get the low latency HLS manifest URL. Available only for the product Live Channel Online and only for a booking on the device category “Desktop” or “Mobile”.<br><strong>NOTE: To be able to use this streaming type, it must be activated for the corresponding content and client account</strong></li></ul> |

**Parameters as query parameters in the URL**

| Name                 | Type    | Optional? | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| -------------------- | ------- | --------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| “device\_category”   | String  | Yes       | ID of the device category of the end-user who is going to play the stream.<br>The ID scheme “av:device\_category:\<integer>” must be used.<br>Use GET /device-categories endpoint to get the list of possible options.<br>Since the geo restrictions on a stream can be different by device category, it is important to pass this parameter so that the API can perform a correct geo location check based on the end-user IP passed in the “X-Real-IP” HTTP header.<br>If this parameter is not passed, a default value will be used, depending on the requested stream type:<ul><li>“dash-manifest”: “Desktop”.</li><li>“cmaf-manifest”: “Desktop”.</li><li>“hls-manifest” / “hls”: “Mobile”.</li></ul> |
| “language”           | String  | Yes       | Sportradar language ID as provided in the GET /events endpoint.<br>The ID scheme “sr:language:\<integer>” must be used.<br>Will return the stream URL, if there is one, for the given language.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| “max\_bitrate”       | Integer | Yes       | Maximum bitrate of the stream in bps.<br>If the given value is lower than the lowest available bitrate, the URL of the stream with the lowest bitrate will be returned.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| “label”              | String  | Yes       | Unique label identifier used to divide traffic from the main account.<br>This parameter will be forwarded and included (as a “label” query parameter) in the returned stream URL.<br>Allowed values are restricted. Please contact us if you want to add support for a new value for your account.                                                                                                                                                                                                                                                                                                                                                                                                         |
| "csid"               | String  | No        | Client side ID.<br>Unique and consistent ID for the end user. For example a hash of a user name. The string passed should be anonymized, and should be consistent with end user IDs provided to other Sportradar systems.<br>This parameter will be forwarded and included (as a “csid” query parameter) in the returned stream URL.                                                                                                                                                                                                                                                                                                                                                                       |
| "force\_dual\_stack" | Boolean | Yes       | Should the generated stream URL have dual-stack support (even if the IP address forwarded in the X-Real-IP header is an IPv4 address)?<br>If the value is 1, the generated stream URL will have dual-stack support.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |

**Parameters as HTTP headers**

| Name                     | Type    | Optional? | Description                                                                                                                                                                                                                                                                                                          |
| ------------------------ | ------- | --------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| “X-Real-IP”              | String  | No        | IP of the end user which is intended to play the stream.                                                                                                                                                                                                                                                             |
| “Geo-Position”           | String  | Yes       | Comma-separated string containing the latitude and longitude values specifying the location of the end-user, in WGS84 format. For example: 40.714224,-73.961452.<br>Required only for streaming in the USA, Canada and Mexico, see section “Special requirements for streaming in the USA, Canada and Mexico” above. |
| “Geo-Position-Timestamp” | Integer | Yes       | Unix timestamp (in seconds) of the latitude/longitude coordinates retrieval.<br>Required only for streaming in the USA, Canada and Mexico, see section “Special requirements for streaming in the USA, Canada and Mexico” above.                                                                                     |

**Example of response in JSON:**

```json
{
   "url": "https://sportradar-lco.akamaized.net/24770/121364/dash/desktop/tennis_itf_men_itf_portugal_f2_men_singles_17517635.mpd?cid=24770&mid=17517635&ecid=121364&pid=2&dtid=1&sid=538435715117&hdnts=ip=92.62.38.2~exp=1551450105~acl=%2F24770%2F121364%2Fdash%2Fdesktop%2F%2A~hmac=03185324934d24d5c581af8f6ed1d7775eb92ac7467d2563915c708283f99ae6"
}
```

### GET /streams/\<stream\_id>/\<stream\_type>/ip-detection-url {#audiovisualapi-get-streams-less-than-stream\_id-greater-than-less-than-stream\_type-greater-than-ip-de}

**HTTP method:** GET\
**Path:** /streams/\<stream\_id>/\<stream\_type>/ip-detection-url

This endpoint returns an IP detection URL by stream ID and stream type.

The IP detection URL is retrieved based on the CDN configured for the requested stream. The IP detection URL can be used to get the same end-user IP as the one detected by the CDN configured for the stream URL returned in the response of the GET /streams/\<stream\_id>/\<stream\_type> endpoint and requested with the same parameters.

Please note that this endpoint shall only be called once per stream id and stream type **and not** for each individual end user.

This endpoint returns an IP detection URL object.

**Parameters in the path of the URL**\
Same as for GET /streams/\<stream\_id>/\<stream\_type> endpoint.

**Parameters as query parameters in the URL**\
Same as for GET /streams/\<stream\_id>/\<stream\_type> endpoint.

**Parameters as HTTP headers**

None

**Example of response in JSON:**

```json
{
    "url": "https://lc-live-http.akamaized.net/serverip"
}
```

### GET /contents/\<content\_id>/product/\<product\_id>/distribution/\<distribution\_id>/stream/\<stream\_type> {#audiovisualapi-get-contents-less-than-content\_id-greater-than-product-less-than-product\_id-greater-t}

**HTTP method:** GET\
**Path:** /contents/\<content\_id>/product/\<product\_id>/distribution/\<distribution\_id>/stream/\<stream\_type>

This endpoint returns the URL of a stream by content ID, product ID and distribution ID for a given stream type.

**Parameters in the path of the URL**

| Name               | Type   | Optional? | Description                                                                                                                                          |
| ------------------ | ------ | --------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
| “content\_id”      | String | No        | Content ID as provided in the GET /events endpoint.<br>The ID scheme “av:content:\<integer>” must be used.                                           |
| “product\_id”      | String | No        | Product ID.<br>The ID scheme “av:product:\<integer>” must be used.<br>Use GET /products endpoint to get the list of possible options.                |
| “distribution\_id” | String | No        | Distribution ID.<br>The ID scheme “av:distribution:\<integer>” must be used.<br>Use GET /distributions endpoint to get the list of possible options. |
| “stream\_type”     | String | No        | Same as for GET /streams/\<stream\_id>/\<stream\_type> endpoint.                                                                                     |

**Parameters as query parameters in the URL**

Same as for GET /streams/\<stream\_id>/\<stream\_type> endpoint.

**Parameters as HTTP headers**

Same as for GET /streams/\<stream\_id>/\<stream\_type> endpoint.

**Response**

Same as for GET /streams/\<stream\_id>/\<stream\_type> endpoint.

### GET /contents/\<content\_id>/product/\<product\_id>/distribution/\<distribution\_id>/stream/\<stream\_type>/ip-detection-url {#audiovisualapi-get-contents-less-than-content\_id-greater-than-product-less-than-product\_id-greater-t}

**HTTP method:** GET

**Path:** /contents/\<content\_id>/product/\<product\_id>/distribution/\<distribution\_id>/stream/\<stream\_type>/ip-detection-url

This endpoint returns an IP detection URL by content ID, product ID and distribution ID for a given stream type.

The IP detection URL is retrieved based on the CDN configured for the requested stream. The IP detection URL can be used to get the same end-user IP as the one detected by the CDN configured for the stream URL returned in the response of the GET /contents/\<content\_id>/product/\<product\_id>/distribution/\<distribution\_id>/stream/\<stream\_type>/ endpoint and requested with the same parameters.

Please note that this endpoint shall only be called once per content ID, product ID, distribution ID and stream type and not for each individual end user.

This endpoint returns an IP detection URL object.

**Parameters in the path of the URL**\
Same as for GET /contents/\<content\_id>/product/\<product\_id>/distribution/\<distribution\_id>/stream/\<stream\_type>/ endpoint.

**Parameters as query parameters in the URL**\
Same as for GET /contents/\<content\_id>/product/\<product\_id>/distribution/\<distribution\_id>/stream/\<stream\_type>/ endpoint.

**Parameters as HTTP headers**

None

**Example of response in JSON:**

```
{
"url": "https://lc-live-http.akamaized.net/serverip"
}
```

### GET /event-statuses {#audiovisualapi-get-event-statuses}

**HTTP method:** GET\
**Path:** /event-statuses

This endpoint returns an array with the list of possible event statuses.\
See the section "Description of statuses" at the end of this document for more information.

### GET /content-types {#audiovisualapi-get-content-types}

**HTTP method:** GET\
**Path:** /content-types

This endpoint returns an array with the list of possible content types.

### GET /content-variants {#audiovisualapi-get-content-variants}

**HTTP method:** GET\
**Path:** /content-variants

This endpoint returns an array with the list of possible content variants.

### GET /products {#audiovisualapi-get-products}

**HTTP method:** GET\
**Path:** /products

This endpoint returns an array with the list of possible products.

### GET /distributions {#audiovisualapi-get-distributions}

**HTTP method:** GET\
**Path:** /distributions

This endpoint returns an array with the list of possible distributions.

### GET /stream-statuses {#audiovisualapi-get-stream-statuses}

**HTTP method:** GET\
**Path:** /stream-statuses

This endpoint returns an array with the list of possible stream statuses.\
See the section "Description of statuses" at the end of this document for more information.

### GET /device-categories {#audiovisualapi-get-device-categories}

**HTTP method:** GET\
**Path:** /device-categories

This endpoint returns an array with the list of possible device categories.

### GET /usage-types {#audiovisualapi-get-usage-types}

**HTTP method:** GET\
**Path:** /usage-types

This endpoint returns an array with the list of possible usage types.

## Description of statuses {#audiovisualapi-descriptionofstatuses}

### Event statuses {#audiovisualapi-eventstatuses}

| Name      | Description                                                                                                                                                                  |
| --------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Confirmed | The coverage of the event has been confirmed. Please check the status and the expected start time of the required stream to find out when Sportradar will make it available. |
| Cancelled | The event has been cancelled. Therefore, it will not be available for streaming.                                                                                             |
| Unknown   | There is currently no public information on the event status. It has neither been planned nor cancelled.                                                                     |

### Stream statuses {#audiovisualapi-streamstatuses}

Please note that the stream status can change several times even during a live event. Streams might be available again shortly after an error has occurred.

| Name             | Description                                                                                                                                                                                        |
| ---------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Approved         | The distribution of the stream has been confirmed. Live streams will be made available by Sportradar prior to the expected start time.                                                             |
| On Air Ready     | The distribution of the stream has been prepared in Sportradar internal systems and will be publicly accessible in a short time. The playback URL of the stream cannot be retrieved at the moment. |
| On Air Broadcast | The distribution of the stream is available and publicly accessible. The playback URL of the stream can be retrieved.                                                                              |
| Error            | Due to an error, the distribution of the stream is currently interrupted.                                                                                                                          |
| Delivered        | The distribution of the stream has ended and is not available any more.                                                                                                                            |

## Error responses {#audiovisualapi-errorresponses}

In case of errors, a response with the right HTTP code (4xx or 5xx) will be returned by the API and the body will contain an internal error code as well as a message with the description of the error.

| Code | HTTP status | Message                                                                                                                                           | Endpoints                       | Description                                                                                                                                                                             |
| ---- | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 1000 | 404         | The requested resource could not be found.                                                                                                        | –                               | When there is no route matching the request.                                                                                                                                            |
| 1001 | 405         | The requested method is not allowed. Allowed methods are: \<allowedMethods>.                                                                      | All                             | When the HTTP method is not allowed.                                                                                                                                                    |
| 1002 | 500         | The request failed due to an unexpected error.                                                                                                    | All                             | When an unexpected error occurred.                                                                                                                                                      |
| 2000 | 401         | ‘Authorization’ HTTP header is required.                                                                                                          | All                             | When no “Authorization” HTTP header is passed.                                                                                                                                          |
| 2001 | 401         | Invalid ‘Authorization’ HTTP header format (expected: Bearer \<token>).                                                                           | All                             | When the “Authorization” HTTP header format is not correct.                                                                                                                             |
| 2002 | 401         | Invalid token.                                                                                                                                    | All                             | When the token is not valid.                                                                                                                                                            |
| 2003 | 401         | Invalid client.                                                                                                                                   | All                             | When the client is not valid.                                                                                                                                                           |
| 3000 | 400         | Error with GET parameters. ‘from’ and ‘to’ parameters must be provided together or not provided at all.                                           | GET /events                     | When “from” GET parameter is passed without “to” or vice-versa.                                                                                                                         |
| 3001 | 400         | Error with GET parameters. Bad format for ‘from’ or ‘to’ parameter. Expected ISO-8601 format (e.g. \<nowInUTC>). Got: \<sentParameter>.           | GET /events                     | When at least one of “from” or “to” GET parameters does not have the ISO-8601 format.                                                                                                   |
| 3002 | 400         | Error with GET parameters. The ‘to’ date/time must be greater than the ‘from’ date/time.                                                          | GET /events                     | When the date/time of the “to” GET parameter is not greater than the date/time of the “from” GET parameter.                                                                             |
| 3003 | 400         | Error with GET parameters. Bad format for ‘\<parameterName>’. Expected: \<rightFormat>. Got: \<sentParameter>.                                    | All                             | When a GET parameter which is supposed to be passed with a certain format does not have that format.                                                                                    |
| 3004 | 400         | Error with parameters in the path. Bad format for ‘\<parameterName>’. Expected: \<rightFormat>. Got: \<sentParameter>.                            | All                             | When a parameter in the path which is supposed to be passed with a certain format does not have that format.                                                                            |
| 3005 | 400         | Error with parameters in the path. Invalid stream type.                                                                                           | Endpoints to get stream URL     | When the stream type passed in the path is not one of the possible values.                                                                                                              |
| 3006 | 404         | Stream not available.                                                                                                                             | Endpoints to get stream URL     | When there is no stream available for the requested stream ID, the requested stream type and the given GET parameters.                                                                  |
| 3007 | 404         | The requested stream type is not available for the requested stream.                                                                              | Endpoints to get stream URL     | When the stream type is not supported for the requested stream ID.                                                                                                                      |
| 3008 | 403         | Device category not booked.                                                                                                                       | Endpoints to get stream URL     | When the stream was booked but not for the requested device category.                                                                                                                   |
| 3009 | 400         | Error with HTTP headers. IP must be sent in the ‘X-Real-IP’ HTTP header.                                                                          | Endpoints to get stream URL     | When the “X-Real-IP” HTTP header was not sent.                                                                                                                                          |
| 3010 | 400         | Error with HTTP headers. The value passed in the ‘X-Real-IP’ HTTP header is not a valid IP.                                                       | Endpoints to get stream URL     | When the IP sent in the “X-Real-IP” HTTP header is not a valid IPv4 or IPv6 IP.                                                                                                         |
| 3011 | 403         | The country \<countryCode> associated to the IP \<ip> is not authorized for the requested stream.                                                 | Endpoints to get stream URL     | When the country associated to the IP passed in the “X-Real-IP” HTTP header is not authorized for the requested stream and stream type.                                                 |
| 3012 | 404         | Event not available.                                                                                                                              | /events/\<event\_id>            | When there is no event available for the requested event ID.                                                                                                                            |
| 3014 | 400         | Error with GET parameters. The device category passed in the “device\_category” parameter is not supported for the requested stream type.         | Endpoints to get stream URL     | When the device category passed in the “device\_category” GET parameter is not supported for the requested stream type.                                                                 |
| 3015 | 403         | The IP \<ip> is not authorized for the requested stream.                                                                                          | Endpoints to get stream URL     | When the IP sent in the "X-Real-IP" HTTP header is not authorized.                                                                                                                      |
| 3016 | 400         | Error with HTTP headers. Latitude/longitude coordinates must be sent in the 'Geo-Position' HTTP header.                                           | All endpoints to get stream URL | When the "Geo-Position" HTTP header parameter is required but was not sent.                                                                                                             |
| 3017 | 400         | Error with HTTP headers. Unix timestamp of the latitude/longitude coordinates retrieval must be sent in the 'Geo-Position-Timestamp' HTTP header. | All endpoints to get stream URL | When the "Geo-Position-Timestamp" HTTP header parameter is required but was not sent.                                                                                                   |
| 3018 | 400         | Error with HTTP headers. The value passed in the 'Geo-Position' HTTP header is not in the correct WGS84 format.                                   | All endpoints to get stream URL | When the value sent in the "Geo-Position" HTTP header parameter is not in the correct WGS84 format.                                                                                     |
| 3019 | 400         | Error with HTTP headers. The value passed in the 'Geo-Position-Timestamp' HTTP header is not a valid Unix timestamp.                              | All endpoints to get stream URL | When the value sent in the "Geo-Position-Timestamp" HTTP header parameter is not a valid Unix timestamp                                                                                 |
| 3020 | 400         | The Unix timestamp of the latitude/longitude coordinates retrieval is either too old or in the future                                             | All endpoints to get stream URL | When the Unix timestamp (in seconds) passed in the "Geo-Position-Timestamp" HTTP header parameter is either older than now - 1 minute or greater than now.                              |
| 3021 | 403         | The subdivision associated to the latitude/longitude coordinates is not authorized for the requested stream.                                      | All endpoints to get stream URL | When the subdivision associated to the latitude/longitude coordinates passed in the "Geo-Position" HTTP header parameter is not authorized for the requested stream and device category |
| 3022 | 404         | Content not available.                                                                                                                            |                                 | When there is no content available for the given content ID passed as path parameter.                                                                                                   |
| 3023 | 403         | Stream URL generation not allowed.                                                                                                                | Endpoints to get stream URL     | When the stream is not allowed.                                                                                                                                                         |
| 3027 | 403         | The location associated to the IP is not authorized for the requested stream                                                                      | Endpoints to get stream URL     | When the IP passed in the X-Real-IP header parameter is not located in an allowed territory                                                                                             |
| 3033 | 400         | Error with GET parameters. 'csid' parameter must be provided.                                                                                     | All endpoints to get stream URL | When the "csid" query string parameter is required but is not passed or is empty.                                                                                                       |
| 3035 | 403         | The subdivision associated to the IP is not authorized for the requested stream.                                                                  | All endpoints to get stream URL | When the subdivision associated to the IP passed in the "X-Real-IP" HTTP header parameter is not authorized for the requested stream and device category.                               |
| 3038 | 403         | The requested stream has expired.                                                                                                                 | All endpoints to get stream URL | When the requested stream has expired (applies only to LCP-P distributions).                                                                                                            |

[Back to top](#audiovisualapi-introduction)
