Events API

The infrastructure is cloud-based, therefore the IP address behind our hostname will change over time without prior notice. If your network rules require any sort of whitelisting then we suggest using our hostname for dynamic address resolution.

Events

GET https://api.livestreaming.imgarena.com/api/v2/streaming/events

The Events API will allow you to list all your available live video streams once they have been booked. Please note that this API will only return future events, along with events that are currently live.

Query Parameters

Name
Type
Description

operatorId

integer

Your company's identifier. This is provided to you by the Integrations team.

auth

string

The API token for this request. Please see the chapter "Authentication" for more information on how to generate the token.

timestamp

integer

The timestamp linked to the API token for this request. The timestamp value is the number of milliseconds since the Unix epoch, i.e the number of milliseconds since midnight (UTC) on January 1st, 1970.

page.size

integer

The maximum size of the result set returned by the API. Default value is 500 if not used. This parameter is used only if “restrictions” parameter was specified, ignored otherwise. The maximum value is 500 and a "400 Bad Request" response will be returned if a request is attempted with a greater value than 500.

page.page

integer

The page number of the request, used in conjunction with page.size. This parameter is used only if “restrictions” parameter was specified, ignored otherwise.

format

string

Can be "xml" or "json". Default is JSON.

live

string

If this is set to "true", this end point will only return events that are currently live on the platform.

imgDataID

string

If this is set to "true", this endpoint will return a correlating external ID from the IMG DDE, where applicable.

restrictions

string

Can be “whitelist” or “blacklist”. Will return a list of whitelisted or blacklisted country codes per event. Note, if the page.size is greater than 500, an error will be thrown.

subRestrictions

string

Can be “whitelist” or “blacklist”. Will return a list of whitelisted or blacklisted country codes per event and, if applicable, will also return a list of ISO 3166-2 country codes detailing whitelisted or blacklisted restrictions at a state level in the USA (e.g. US-NY). Note, if the page.size is greater than 500, an error will be thrown.

    {
        "id": 140027,
        "title": "[13] Peter Polansky (CAN) vs Hugo Grenier (FRA)",
        "tournament": {
            "id": 2636,
            "name": "Bangkok Open 2020",
            "property": {
                "id": 6,
                "name": "ATP Challenger Tour",
                "sport": {
                    "id": 5,
                    "name": "Tennis"
                }
            }
        },
        "updatedAt": "2020-01-22T22:40:56+0000",
        "startDate": "2020-01-23T03:00:00+0000",
        "endDate": "2020-01-24T03:00:00+0000"
    }

The Events API will never throw a 403 Forbidden response, because we never geo-restrict this endpoint - you will be able to call it from whatever location your servers are situated in.

We recommend customers call the events API with the "live" parameter set to true periodically (e.g. every 30 seconds). Customers can then use this response to work out which events are live, and therefore which events they should call the Streaming API for to get event playback URLs.

If an event shows up in the response, you should start calling the streaming API to get a playback URL for that event. If an event is removed from the response, it is no longer live and you should no longer call the streaming API for that event.

Response Model Table

Field Name

Type

Description

id

int

The id of the event

title

string

The name of the event

tournament

Object

This will include the ID and Name of the Tournament

property

Object

This will include the ID and Name of the Property

sport

Object

This will include the ID and Name of the Sport

updatedAt

datetime

This is when the event was updated (In UTC timezone)

startDate

datetime

The start date of the tournament (In UTC timezone)

endDate

datetime

This is the end of the event (In UTC timezone)

imgDataID

string

This will show the corresponding ID of the event on the DDE (where applicable)

restrictionRequest

string

either "whitelist" or "blacklist", depending on the request made

countryList

Array

An array of countries that are either white or blacklisted, depending on the request made

subDivisionList

Array

An array of US States that are either white or blacklisted, depending on the request made. States are returned as ISO 3166-2 country codes (e.g. US-NY for the State of New York).

Last updated

Was this helpful?