Returns similar items in order of similarity.
endpoint/similar? | nameid=nameid trackid=trackid albumid=albumid amgvideoid=amgvideoid cosmoprogramid=cosmoprogramid |
&apikey=apikey&sig=sig& entitytype=entitytype [&clu=clu] [&start=start] [&end=end] [&rep=rep] [&filter=filter] [&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 to look for.
| ||||||||||||||||||||||||||||||||||
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.
Cosmo is a database of television information. You can get Cosmo IDs from responses to the following requests:
Condition: The request must contain just one of these parameters:
| ||||||||||||||||||||||||||||||||||
nameid | Conditional | Rovi Name 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:
| ||||||||||||||||||||||||||||||||||
trackid | Conditional | Rovi Music ID for a song, consisting of the prefix MT followed by a ten-digit number. For a request with a track ID, specify an endpoint of music and an entitytype of song, like this: music/similar?entitytype=song&trackid=MT0009472348.
Your application can grab track IDs from responses to the following requests: Condition: The request must contain just one of these parameters:
| ||||||||||||||||||||||||||||||||||
clu | No | Service ID of a television service to match against. Service IDs for television services are available with calls to Services.
The broadcast time of each returned program is shown in an availabilities object. To return more than one broadcast time, specify the rep parameter. Notes:
| ||||||||||||||||||||||||||||||||||
country | No | Country of the language of the response. The current release of the API supports only US. | ||||||||||||||||||||||||||||||||||
end | No | If you specify the clu parameter, end specifies the end of the broadcast time window in one of the following formats:
If not specified, the end time is two weeks after the time of the request. | ||||||||||||||||||||||||||||||||||
filter | No | Field content that determines which results are returned. Like a WHERE clause in an SQL statement, this parameter selects only results with fields that meet your criteria.
This parameter requires an endpoint of video. Examples:
The selection operators include:
For the And operation, specify another filter parameter like this: filter=releaseyear>:2004&filter=releaseyear<2009. The following shows which fields you can select for each video entity type. If you specify a filter that does not apply to an entity type, no data will be returned for that entity type.
| ||||||||||||||||||||||||||||||||||
format | No | Format of the returned data: json or xml. The default is XML.
Alternatively you can specify the response format in an HTTP Accept header with either of these Accept field content types:
If you specify both, the format parameter overrides the Accept header. | ||||||||||||||||||||||||||||||||||
language | No | Language of the response data. This request supports only en (English). | ||||||||||||||||||||||||||||||||||
rep | No | If you specify the clu parameter, rep specifies the maximum number of broadcasts to be reported in the availabilities object. For example, to return up to five broadcasts during the time specified, specify rep=5. Default is 1. | ||||||||||||||||||||||||||||||||||
size | No | The number of items you want to be returned. The default is 20. | ||||||||||||||||||||||||||||||||||
start | No | If you specify the clu parameter, start specifies the start of the broadcast time window in one of the following formats:
If not specified, the start time is the time of the request. |
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. |
Code | Description |
---|---|
400 | Incorrect or invalid request. The reason is shown in the Message object in ControlSet. |