Skip to end of metadata
Go to start of metadata
Use case | Endpoint | Fields | Comments |
---|
I would like to see series images | /series/{series_id} | data.attributes.images | The properties of all the images associated with the series are available |
I would like to see episode images | /programs/{program_id} | (included episode).attributes.images | All episodes related to the program will be included following the JSON api specification. You'll need to loop through the `included` key until you match the episode (by checking the `type` and `id` fields) and then look in the `attributes.images` key |
I would like to see the episode number | /programs/{program_id} | (included episode).attributes.episode_number |
|
I would like to see the season number | /seasons/{season_id} | attributes.title | We don't limit seasons to having an integer number but rather allow a string format title. For series that have seasons which are numbered then the title will just be the season number |
{
"type": "Episode",
"id": "63bbc7de-d394-4252-abf9-701f35310b1e",
"attributes": {
"episode_number": 2,
"images": [
{
"id": "63bbc7de-d394-4252-abf9-701f35310b1e",
"image_type": "Thumbnail",
"alternate_access_description": "Bruce Willis shooting a big gun at some bad guys, pew pew pew",
"width_pixels": 320,
"height_pixels": 200,
"iso_639-2_lang": "fin",
"url": "https://www.demo.com/assets/img/thumbnails/movies/diehard.png"
}
],
"relationships": {
"program": {
"data": {
"id": "d0de0088-3141-439e-8455-839bdb8f6cec",
"type": "Program"
}
}
}
}
}
Use case | Endpoint | Fields | Comments |
---|
see related information of series |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Use case | Endpoint | Fields | Comments |
---|
know if a programme belong to a series or a season | /programs/{program_id} | included | This endpoint will *always* include [Series|Episode|Season] If the resource is not included it means that there is no relationship (in other words the programme does not belong to a series or to a season, depending on which resource is missing). |
{
"type": "Series",
"id": "f9df1401-9d25-48e0-b5d6-0745a86bd975",
"attributes": {
"id": "f9df1401-9d25-48e0-b5d6-0745a86bd975",
"title": "Friends",
"descriptions": {
"short": "Follows the personal and professional lives of six 20 to 30-something-year-old friends living in Manhattan.",
"long": "Rachel Green, Ross Geller, Monica Geller, Joey Tribbiani, Chandler Bing and Phoebe Buffay are six 20 something year-olds, living off of one another in the heart of New York City. Over the course of ten years, this average group of buddies goes through massive mayhem, family trouble, past and future romances, fights, laughs, tears and surprises as they learn what it really means to be a friend.",
"extended": "string"
},
"year_released": 1993,
"content_flags": [
{
"content_rating_authority": "fi",
"content_rating_flag": "13",
"is_adult_rated": 1,
"images": [
{
"id": "63bbc7de-d394-4252-abf9-701f35310b1e",
"image_type": "Thumbnail",
"alternate_access_description": "Bruce Willis shooting a big gun at some bad guys, pew pew pew",
"width_pixels": 320,
"height_pixels": 200,
"iso_639-2_lang": "fin",
"url": "https://www.demo.com/assets/img/thumbnails/movies/diehard.png"
}
]
}
],
"images": [
{
"id": "63bbc7de-d394-4252-abf9-701f35310b1e",
"image_type": "Thumbnail",
"alternate_access_description": "Bruce Willis shooting a big gun at some bad guys, pew pew pew",
"width_pixels": 320,
"height_pixels": 200,
"iso_639-2_lang": "fin",
"url": "https://www.demo.com/assets/img/thumbnails/movies/diehard.png"
}
]
}
}
{
"type": "Season",
"id": "e00adc12-6fcb-4176-832f-45a0b84aa908",
"attributes": {
"id": "feaf803a-3ca9-4d2e-b86b-9d217183efc5",
"title": "Season 1 (1994)",
"descriptions": {
"short": "string",
"long": "string",
"extended": "string"
},
"images": [
{
"id": "63bbc7de-d394-4252-abf9-701f35310b1e",
"image_type": "Thumbnail",
"alternate_access_description": "Bruce Willis shooting a big gun at some bad guys, pew pew pew",
"width_pixels": 320,
"height_pixels": 200,
"iso_639-2_lang": "fin",
"url": "https://www.demo.com/assets/img/thumbnails/movies/diehard.png"
}
]
}
}
VOD is not currently supported as part of this metadata system.