Returns up to four hours of TV listings during the next two weeks with information that is designed for the space limitations of a grid. This request provides optional arguments to filter the list of channels returned.
When planning a TV listings grid, allow for listings that start at times other than on the hour and half-hour.
listings/gridschedule/serviceid/info?apikey=apikey&sig=sig&locale=locale [&startdate=startdate] [&duration=duration] [&sourceid=sourceid] [&sourcefilterexclude=sourcefilterexclude] [&sourcefilterinclude=sourcefilterinclude] [&includechannelimages=includechannelimages] [&imageformatid=imageformatid] [&titletype=titletype] [&format=format]
Click to re-sort
Parameter | Required | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
apikey | Yes | Access code that authorizes your request for data from Rovi. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
locale | Yes | Language and country code of the television service. This is a case-sensitive combination of the ISO 639 language code, a hyphen character, and the ISO 3166 country code, as described in RFC 1766. Valid locales include:
* Includes Wales, Scotland, and Northern Ireland. Note 1: Locale determines the language of program titles and descriptions. If content is not available in that language, a fallback language is chosen according to rules shown in the Language Fallback Sequence table. Note 2: If an invalid locale is specified, en-GB will be used. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
serviceid | Yes | Database ID of the television service. You can get the service ID for a television service from responses to Listings/Services. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
sig | Yes | A calculated, 32-hex-digit authorization code. To perform the calculation, execute the MD5 function on the concatenation of the following three strings:
Express the alpha hex digits as lower case. Perform the calculation at the time of each request to be sure it's within a five-minute window of the server time. If you're testing the call in a browser, use our online signature generator to perform the calculation. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
duration | No | Number of minutes of program schedule to return, from 1 to 240 minutes (4 hours). Default is 1.
Note: The schedule is determined by duration and startdate. The start can be anytime from the time of the request up to two weeks in the future. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
format | No | Format of the returned data: json or xml. Default is json. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
imageformatid | No | If you set includechannelimages to true, imageformatid determines the image format and maximum dimensions of the channel logos returned in the response. Choose the ID from the Format ID table.
Note: Logos may not be available in all format IDs. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
includechannelimages | No | Whether to include channel logos in the response: true or false. Default is false.
Note: Some channels do not have logos. For those channels, display call letters instead. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
sourcefilterexclude | No | If you specify sourceid to select the television sources to be returned, sourcefilterexclude specifies attributes of the channels in the source ID list that you want to eliminate from the channels returned.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
sourcefilterinclude | No | If you specify sourceid to select the television sources to be returned, sourcefilterinclude specifies attributes of the channels in the source ID list that you want to include in the channels returned.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
sourceid | No | Channel sources to include on the schedule, specified as a comma-separated list like this: sourceid=423,1219,6191,8272,8274,8276,8277,8278,8279,8753,10335. You can get source IDs of channels from responses to a ServiceDetails request. Note: a single television source may supply content to multiple channels.
You can filter the source ID list further with either sourcefilterinclude or sourcefilterexclude. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
startdate | No | Start of the time period covered by the schedule, specified in a DateTime format. The schedule can be anytime from the time of the request to two weeks in the future. Default is the time of the request.
Note: The schedule is determined by startdate and duration. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
titletype | No | Type of title to return for each program. For a grid, you may want to limit title length to 15 characters (type 1) or 8 characters (type 3). The types of titles you can choose from are shown in the Title Type table.
Note: Titles are not available for all title types. If a program does not have the title type specified, a title is not returned. |
Response | Type | Description |
---|---|---|
Build | String | Software build version of the API. |
EndTimestamp | DateTime | Time the server finished processing the request. |
Errors | Error [ ] | Processing errors or warnings. |
RequestId | String GUID | A generated value that identifies the request and response. |
Status | Status | Processing status, indicating whether the request was successfully processed. |
TimeStamp | DateTime | Time the server started processing the request. |
Response | Type | Description |
---|---|---|
Duration | Integer | Number of minutes of schedule information requested. |
GridChannels | GridChannel [ ] | The list of channels and the schedule of programs on each channel. |
Locale | String | Language and country code of the response, as specified by the locale parameter in the request. |
Name | String | Name of the television service in less than 50 characters. |
ServiceId | Integer | Database ID of the television service. |
StartDate | DateTime | Beginning of the time period covered by the returned data. |
TimeZones | TimeZoneInfoGrid [ ] | UTC offset applicable to a television service and when the offset begins and ends. Television broadcast times are returned in UTC time, and you need to apply the offset to calculate the local time. UTC offsets change with daylight savings time. |
The following shows the response for Request Example 4 above. The response has been edited to reduce the length and formatted with extra spaces and carriage returns to make it easy to read.
The following shows the same response data as the JSON example above, but adding the request parameters format=xml and titletype=3.
Code | Name | Description |
---|---|---|
1001 | Core_MandatoryFieldMissing | A mandatory parameter is not specified. |
10603 | LookupService_InvalidLocale | The locale specified in the request is invalid. |
502000 | Listings_TitleTypeOutOfRange | The titletype specified in the request is invalid. This is a warning; the default value is used instead. |