Returns similar items in order of similarity and popularity.
endpoint/similar? | nameid=nameid albumid=albumid amgvideoid=amgvideoid cosmoprogramid=cosmoprogramid |
&apikey=apikey&sig=sig& entitytype=entitytype [&format=format] [&country=country] [&language=language] [&size=size] |
♫ Music-related requests 日 Movie-related requests ⊑⊒ TV-related requests
Parameter | Required | Description | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
apikey | Yes | Access code that authorizes your request for data from Rovi. | ||||||||||||||||||||||||||||
endpoint | Yes | Database to search.
| ||||||||||||||||||||||||||||
entitytype | Yes | Type of content.
| ||||||||||||||||||||||||||||
sig | Yes | A calculated authorization code. To perform the calculation, execute the MD5 function on the concatenation of the following three strings:
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. | ||||||||||||||||||||||||||||
albumid | Conditional | Rovi Music ID for an album, consisting of the prefix MW followed by a ten-digit number. For a request with an album ID, specify an endpoint of music and an entitytype of album like this: music/similar?entitytype=album&albumid=MW0000056882. You can grab album IDs from responses to the following requests:
Condition: The request must contain just one of these parameters:
| ||||||||||||||||||||||||||||
amgvideoid | Conditional | All Media Guide (AMG) database ID for a movie or TV series, consisting of a ten-character string that starts with V and is followed by 9 digits with leading spaces. For a request with an amgvideo ID, specify an endpoint of amgvideo and an entitytype of movie or tvseries, like this: amgvideo/similar?entitytype=tvseries&amgvideoid=V+++295550. Your application can grab amgvideo IDs from responses to the following requests:
Condition: The request must contain just one of these parameters:
| ||||||||||||||||||||||||||||
cosmoprogramid | Conditional | Cosmo database ID for a movie or television series. For a request with a Cosmo ID, specify an endpoint of video and an entitytype of movie or tvseries, like this: video/similar?entitytype=tvseries&cosmoprogramid=3899277. You can get Cosmo IDs with Search requests on a video endpoint. Cosmo is a database of television information.
Condition: The request must contain just one of these parameters:
| ||||||||||||||||||||||||||||
nameid | Conditional | Rovi Music ID for a person or group, consisting of the prefix MN followed by a ten-digit number. For a request with a name ID, specify an endpoint of music and an entitytype of artist, like this: music/similar?entitytype=artist&nameid=MN0000114342. Your application can grab name IDs from responses to Search and from Info, Credits, Tracks, and Recommendations requests. For a complete list of requests that return name IDs, click here.
Condition: The request must contain just one of these parameters:
| ||||||||||||||||||||||||||||
country | No | Country of the language of the response. The current release of the API supports only US. | ||||||||||||||||||||||||||||
format | No | Format of the returned data: json or xml. The default is JSON. | ||||||||||||||||||||||||||||
language | No | Language of the response data. This request supports only en (English). | ||||||||||||||||||||||||||||
size | No | The number of items you want to be returned. The default is 20. |
Response | Type | Description |
---|---|---|
controlSet | ControlSet | The HTTP response status. |
id | String | Server transaction ID for the response. |
Response | Type | Description |
---|---|---|
results | result [ ] | Information about items that are similar to the items specified in the request, listed in order of similarity and popularity. |
Error Codes
Code | Description |
---|---|
400 | Incorrect or invalid request. The reason is shown in the Message object in ControlSet. |
502 | No results found. The Message object in ControlSet returns the following:
{ "code": "Empty Result", "name": "No results available for this request" } |