Program details
/programs/
Returns detailed metadata about a specified program. Response metadata will differ based on program type (movie, show, episode, sport).
Request Parameters
| Parameter | Mandatory? | Description |
|---|---|---|
| tmsId or rootid | Yes | TMS ID, unique program identifier, obtained from APIs returning airings or program information rootID, this numeric ID is used to identify all related program records with different title, description language, and version. See below for additional information. |
| imageSize | No | Valid values are: Sm, Md, Lg, Ms. See Image Sizing for details. If not specified, defaults to Md If requested image size is not available, generic image will be returned. |
| imageAspectTV | No | Requested aspect ratio (horizontal by vertical) for TV show images Valid values are: 2x3, 3x4, 4x3, 16x9 If not specified, defaults to 2x3 If requested aspect ratio is not available, generic image will be returned. |
| imageText | No | Boolean indicating preference for image types with text (banners) or without text (iconics). If requested preference is not available, image selection will continue to next type (banner/iconic), before finally returning generic if no image found. Defaults to true for text preference. |
| api_key | Yes | 24-character key obtained during application registration |
Response Body
| Response | Type | Description |
|---|---|---|
| Program details | Program | Detailed metadata for specified program. |
Using 'rootId' as parameter
The service will always return the program with the lowest TMSID. If you are looking for specific language results the "TitleLang" and "descriptionLang" parameter can be used.
Use Case : TMS Root ID (default - language unspecified)
Example: http://data.tmsapi.com/v1.1/programs/185044
Behavior: Returns the program with lowest tmsid (English) title and descriptions.
Use Case: TMS RootID with titleLang and descriptionLang
Example: http://data.tmsapi.com/v1.1/programs/185044?titleLang=es&descriptionLang=es
Behavior: TMS Root ID to TMS ID is a 1
Use Case: TMS Root ID has more than 1 language record associated.
Example: http://data.tmsapi.com/v1.1/programs/9991634?api_key=
Behavior: The program with the lowest TMSID is returned. This will mainly happen with movies, the movies has multiple versions as per our versions endpoint http://data.tmsapi.com/v1.1/movies/9991634/versions?api_key=
Example : http://data.tmsapi.com/v1.1/programs/SH006883590000
Behavior : TMS ID to program is a 1:1 relationship so this returns the program in its assigned title and description language.
Sample Request
Sample Response
Code