Skip to main content
Skip table of contents

Get contexts

Request

To get all the available contexts, send a GET request to:

http://<host>:<port>/contentdiscovery/v2/contexts

Headers

  • Content-Type: application/json
  • Authorization – the token obtained from IAS at signon

Response

A successful request returns an HTTP 200 status.

A bad request returns an HTTP 400 status.

An unauthorised request returns an HTTP 401 status.

Example

A successful request returns a payload that looks like this:

CODE
{
  "contexts": [
        "because-you-watched",
        "latest-arrivals",
        "next-episodes",
        "popular-movies-7-days",
        "popular-tv-shows-7-days",
        "trending-1-day",
        "trending-1-week",
        "trending-4-hours"
  ]
}

See also

For full details of this API, see Content Discovery Gateway (CDG) API documentation.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.