Search-api/v2.1/search

Jump to: navigation, search

Search

Searches titles or names in Rovi Cloud Services and returns results in order of popularity and similarity to the search query.

This request returns a large amount of data, especially if you use the include parameter to return additional data. To speed data transmission, do the following:

  • Request only data that you need to immediately display.
  • Request a compressed response by including Accept-Encoding: gzip,deflate in the HTTP header.

Syntax

endpoint/search?apikey=apikey&sig=sig&query=query&entitytype=entitytype [&filter=filter] [&include=include] [&facet=facet] [&format=format] [&clu=clu] [&start=start] [&end=end] [&rep=rep] [&country=country] [&language=language] [&offset=offset] [&size=size]

Request Example 1

Get the IDs for Eric Clapton and the groups he has been a member of.

Request Example 2

Get the IDs for the TV series The Office along with keywords and URLs to information about the seasons and episodes.

Request Example 3

Get ten pop/rock songs released in the year 2009 with the word love in the title and show the number of those songs in all genres.

Request Example 4

Get the films and albums Ice-T has performed in, along with URLs to images of him.

Request Example 5

Get the times that either of the NCIS television series are appearing on Time-Warner Cable in Beverly Hills during the New Year's weekend and show up to five broadcast times for each result.

Request Example 6

Get a movie bio of the actor Mark Harmon.

Request Parameters

  Music-related requests      Movie-related requests    ⊑⊒  TV-related requests

ParameterRequiredDescription
apikey Yes Access code that authorizes your request for data from Rovi.
endpoint Yes Database to search.
To search in . . .Specify this endpoint.
musicmusic 
movies and TV series (our DVD database)amgvideo 
television (our international TV schedule database)video ⊑⊒
entitytype Yes Type of content to search for.
In this endpoint . . .   To search in this area . . .   Specify this entitytype.
music songssong
albumsalbum
compositionscomposition
people working in musicartist
amgvideo moviesmovie
TV seriestvseries
people working in TV or moviescredit
video ⊑⊒moviesmovie
TV seriestvseries
episode titlesepisode
TV programsonetimeonly
people working in TV or moviescredit
To return data from multiple entity types within an endpoint, specify multiple entitytype parameters like this: entitytype=tvseries&entitytype=movie. Note:  The top results may come from just one of the entity types. Order of results is determined by relevance and is not deliberately balanced across the searched entity types.
query Yes The search string. Replace spaces with plus (+) or percent20 (%20) symbols. Character case does not affect the results (search is not case-sensitive).
sig Yes A calculated, 32-hex-digit authorization code. To perform the calculation, execute the MD5 function on the concatenation of the following three ASCII strings:
  • Your API key.
  • The secret key you received with your API key.
  • The Unix time. Unix time is a timestamp supported in most development environments, and is generally defined as the number of seconds since January 1, 1970 00:00:00 GMT.

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.

clu No Service ID of a television service that has upcoming movies or TV series you want to match against. Service IDs for television services are available with calls to Services.

Broadcast times of programs are returned in availabilities objects. To return more than one broadcast time, specify the rep parameter.

Notes:

  • Requires an endpoint of video.
  • Requires an entitytype of movie or tvseries.
  • To check multiple television services, specify multiple parameters like this: clu=360861&clu=20494.
  • To limit the broadcast time window to less than the next two weeks, specify the start or end parameters, or both.
  • To return only programs in the broadcast time window, add filter=availability to the request.
  • Here are some Service IDs you can use for evaluation tests:
    • 20419 — Chicago Area Broadcast TV
    • 890504 — CanalSat in Paris, France
    • 68809 — Shaw Cable in Moose Jaw, Saskatchewan
    • 60795 — Time Warner Cable in Southern Manhattan
    • 360861 — Time Warner Cable in Beverly Hills, California
country No Country the language parameter applies to. 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:
  • UTC time: YYYYmmDDhhMMssZ. For example: 20120315140000Z for 2012-03-15 14:00:00 GMT.
  • Local time with a UTC offset: YYYYmmDDhhMMss + or - hhMM (positive or negative offset). For example, for the same time specified as US Pacific time: 201203150600000800.

If not specified, the end time is two weeks after the time of the request.

facet No Count of items available to be returned.
To return the item count available . . .  Specify this facet.
for the entity typetype
by genre or subgenregenre
To return both, specify two facet parameters: facet=type&facet=genre.
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.

Examples:

  • Specify filter=decade:1990s to limit the results to artists active in the 1990s.
  • Specify filter=length<120 to return only movies less than 120 minutes long.
  • Specify filter=genreid:MA0000002467 to limit the results to the blues genre.
  • Specify filter=releasedate>19991231 for releases in the year 2000 or later.
  • Specify filter=moodid:XA0000000952 to return music results with a bright mood.
  • Specify filter=mpaa:G|mpaa:PG|mpaa:PG13 to return movies rated G, PG, or PG13.
  • Specify filter=editorialrating>7 to return albums or movies with a rating greater than 7.
  • Specify filter=themeid:MA0000006310 to return music results with a Sunday afternoon theme.
  • Specify filter=toneid:D++2067&filter=toneid:D++1292 for movies with both gruesome and cerebral tones.
  • Specify filter=subgenreid:D+++509|subgenreid:D+++510 to return action thriller or martial arts movies.
  • Specify filter=availability to return only upcoming movies or TV series on the television service specified by the clu parameter.

The selection operators include:

Operator    Meaning
:Is equal to.
!:Is not equal to.
<Is less than.
<:Is less than or equal to.
>Is greater than.
>:Is greater than or equal to.
|Or.

For the And operation, specify another filter parameter like this: filter=releasedate>:20070101&filter=releasedate<20080101. A request can contain up to 20 filter parameters.

The following shows which fields you can select for each entity type. If you specify a filter that does not apply to an entity type, no data will be returned for that entity type.

For this entity type. . .You can filter on . . .Example or Format
album
  • moodid
  • themeid
  • genreid
  • subgenreid
  • performerid
  • releasedate
  • editorialrating
  • recordingtype

XA0000000952 (table)
MA0000005079 (table)
MA0000002467 (look up)
MA0000002517 (look up)
MN0000994823
YYYYMMDD
1 to 10
single (live, remix, clean, single, mainalbum, soundtrack, variousartists)

song
  • moodid
  • themeid
  • genreid
  • subgenreid
  • performerid
  • releasedate

XA0000000952 (table)
MA0000005079 (table)
MA0000002467 (look up)
MA0000002517 (look up)
MN0000994823
YYYYMMDD

artist
  • decade
  • moodid
  • themeid
  • genreid
  • subgenreid

2000s
XA0000000952 (table)
MA0000005079 (table)
MA0000002467 (look up)
MA0000002517 (look up)

movie
  • mpaa
  • adult
  • length
  • toneid
  • moodid
  • themeid
  • genreid
  • subgenreid
  • availability
  • releaseyear
  • editorialrating

PG13
true (amgvideo endpoint)
120 (minutes)
D++1304 (table) (amgvideo endpoint)
D++2030 (table) (amgvideo endpoint)
D++1431 (table) (amgvideo endpoint)
D+++649 (look up) (amgvideo endpoint)
D++1376 (look up) (amgvideo endpoint)
availability (video endpoint) *
2008
1 to 10 (amgvideo endpoint)

onetimeonly
  • length

120 (minutes, integer)

tvseries
  • mpaa
  • adult
  • length
  • toneid
  • moodid
  • themeid
  • genreid
  • subgenreid
  • availability
  • editorialrating

PG13
true (amgvideo endpoint)
120 (minutes)
D++1304 (table) (amgvideo endpoint)
D++2030 (table) (amgvideo endpoint)
D++1431 (table) (amgvideo endpoint)
D+++649 (look up) (amgvideo endpoint)
D++1376 (look up) (amgvideo endpoint)
availability (video endpoint) *
1 to 10 (amgvideo endpoint)

* Note: The availability filter is specified without a value, like this: filter=availability. Use this to filter out movies or TV series that are not airing on the television service specified by the clu parameter.

format No Format of the returned data: json or xml. The default is JSON.

Alternatively you can specify the response format in an HTTP Accept header with either of these Accept field content types:

  • application/xml
  • application/json

If you specify both, the format parameter overrides the Accept header.

include No Additional data to include in each result returned. To include cast members in movie results, for example, specify include=cast. For multiple includes, separate the values with commas like this: include=moods,crew. To include all data, specify include=all.
For endpointEntitytypeYou can include these results . . .
music album
  • All
  • ClassicalReview
  • Credits
  • Images
  • Moods
  • PrimaryReview
  • Releases
  • Similar
  • Styles
  • Themes
  • Tracks
music song
  • All
  • Appearances
  • Review
  • Sample
music artist
  • All
  • Aliases
  • AssociatedWith
  • ClassicalBio
  • CollaboratorWith
  • Compositions
  • Contemporaries
  • Credits
  • Discography
  • Factsheets
  • Filmography
  • Followers
  • GroupMembers
  • Images
  • Influencers
  • MemberOf
  • Moods
  • MovieBio
  • MovieStyles
  • MusicBio
  • MusicCredits
  • MusicStyles
  • Similars
  • Songs
  • Themes
  • Videos
  • Web
amgvideo movie
  • All
  • Cast
  • Crew
  • Images
  • Keywords
  • Moods
  • Related
  • Releases
  • Review
  • Similar
  • Synopsis
  • Themes
  • Tones
  • Types
  • Videos
amgvideo tvseries
  • All
  • Cast
  • Crew
  • Images
  • Keywords
  • Moods
  • Related
  • Releases
  • Review
  • Similar
  • Synopsis
  • Themes
  • Tones
  • Types
  • Videos
video ⊑⊒movie
  • All
  • Awards
  • Cast
  • Crew
  • Event
  • Images
  • Keywords
  • Review
  • Synopsis
  • Themes
  • Tones
video ⊑⊒tvseries
  • All
  • Awards
  • Cast
  • Crew
  • Images
  • Keywords
  • Review
  • Seasons
  • Synopsis
  • Themes
  • Tones
video ⊑⊒onetimeonly
  • All
  • Awards
  • Cast
  • Crew
  • Event
  • Images
  • Keywords
  • Review
  • Synopsis
  • Themes
  • Tones
language No Language of the response data. This request supports only en (English).
offset No Counting from zero as the first item in the returned list, the number of the first item you want. The default is zero. The maximum is 3000.

Use the offset and size parameters to paginate the available results.

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:
  • UTC time: YYYYmmDDhhMMssZ. For example: 20120315140000Z for 2012-03-15 14:00:00 GMT.
  • Local time with a UTC offset: YYYYmmDDhhMMss + or - hhMM (positive or negative offset). For example, for the same time specified as US Pacific time: 201203150600000800.

If not specified, the start time is the time of the request.

Response

Response Header

ResponseTypeDescription
controlSet ControlSet The HTTP response status.
id string Server transaction ID for the response.

Response for Search

ResponseTypeDescription
facetCounts facetCounts [ ] Number of results available to be returned in each genre or entity type, as requested by the facet parameter.
results result [ ] The search results listed in order of popularity and similarity and the filters specified in the request.
totalResultCounts integer Total number of results found.

Response Example 1

Response to the search for up to two broadcasts of either of the two NCIS series on Time-Warner Cable in Beverly Hills during a specified time. To try this call, change the start and end dates to a five day period during the next two weeks.
Requested with http://api.rovicorp.com/search/v2.1/video/search?apikey=apikey&sig=sig&query=ncis&
entitytype=tvseries&clu=360861&filter=availability&start=20140320050000Z&end=20140325220000Z&rep=2
.
{
   "searchResponse":{
      "meta:id":"tul1cpgpsrapp18:gwy:3mjskp",
      "controlSet":{
         "status":"ok",
         "code":200,
         "messages":null
      },
      "results":[
         {
            "type":"tvseries",
            "relevance":[
               {
                  "code":"Score",
                  "value":2.3400931
               }
            ],
            "availabilities":[
               {
                  "cosmosource":16846,
                  "source":"CLU_360861",
                  "end":"20140325220000+0000",
                  "format":"sd",
                  "start":"20140325210000+0000",
                  "available_as":{
                     "id":9616616,
                     "type":"CosmoIdProgram"
                  }
               },
               {
                  "cosmosource":16846,
                  "source":"CLU_360861",
                  "end":"20140325210000+0000",
                  "format":"sd",
                  "start":"20140325200000+0000",
                  "available_as":{
                     "id":9279828,
                     "type":"CosmoIdProgram"
                  }
               }
            ],
            "id":3899298,
            "messages":null,
            "video":{
               "ids":{
                  "amgMovieId":null,
                  "cosmoId":"3899298",
                  "iguideId":3899298,
                  "pidPaid":null,
                  "videoId":null
               },
               "seriesIds":null,
               "masterTitle":"NCIS",
               "secondaryTitle":"",
               "episodeTitle":null,
               "category":"Other",
               "color":"Color",
               "lastAirDate":null,
               "originalAirDate":"2003-09-23T00:00:00.00Z",
               "programType":"Series",
               "releaseYear":2003,
               "duration":60,
               "subcategory":"crime drama",
               "syndicated":false,
               "programLanguage":"English",
               "partNumber":null,
               "partTotal":null,
               "parentalRatings":null,
               "parentalRatingsUri":"http://api.rovicorp.com/data/v1.1/video/parentalRatings?format=json&apikey=4p1k3y&cosmoid=3899298",
               "cast":null,
               "castUri":"http://api.rovicorp.com/data/v1.1/video/cast?format=json&apikey=4p1k3y&cosmoid=3899298",
               "crew":null,
               "crewUri":"http://api.rovicorp.com/data/v1.1/video/crew?format=json&apikey=4p1k3y&cosmoid=3899298",
               "awards":null,
               "awardsUri":"http://api.rovicorp.com/data/v1.1/video/awards?format=json&apikey=4p1k3y&cosmoid=3899298",
               "images":null,
               "imagesUri":"http://api.rovicorp.com/data/v1.1/video/images?format=json&apikey=4p1k3y&cosmoid=3899298",
               "clip":null,
               "clipUri":"http://api.rovicorp.com/data/v1.1/video/clip?format=json&apikey=4p1k3y&cosmoid=3899298",
               "seasons":null,
               "seasonsUri":"http://api.rovicorp.com/data/v1.1/video/seasons?format=json&apikey=4p1k3y&cosmoid=3899298",
               "variants":null,
               "variantsUri":"http://api.rovicorp.com/data/v1.1/video/variants?format=json&apikey=4p1k3y&cosmoid=3899298",
               "schedule":"",
               "scheduleUri":null,
               "event":null,
               "eventUri":null,
               "keywords":null,
               "keywordsUri":"http://api.rovicorp.com/data/v1.1/video/keywords?format=json&apikey=4p1k3y&cosmoid=3899298",
               "moods":null,
               "moodsUri":null,
               "related":null,
               "relatedUri":"http://api.rovicorp.com/data/v1.1/video/related?format=json&apikey=4p1k3y&cosmoid=3899298",
               "review":null,
               "reviewUri":null,
               "synopsis":null,
               "synopsisUri":"http://api.rovicorp.com/data/v1.1/video/synopsis?format=json&apikey=4p1k3y&cosmoid=3899298",
               "themes":null,
               "themesUri":"http://api.rovicorp.com/data/v1.1/video/themes?format=json&apikey=4p1k3y&cosmoid=3899298",
               "tones":null,
               "tonesUri":"http://api.rovicorp.com/data/v1.1/video/tones?format=json&apikey=4p1k3y&cosmoid=3899298"
            }
         },
         {
            "type":"tvseries",
            "relevance":[
               {
                  "code":"Score",
                  "value":1.7900455
               }
            ],
            "availabilities":[
               {
                  "cosmosource":2534,
                  "source":"CLU_360861",
                  "end":"20140325103000+0000",
                  "format":"sd",
                  "start":"20140325093400+0000",
                  "available_as":{
                     "id":15057686,
                     "type":"CosmoIdProgram"
                  }
               },
               {
                  "cosmosource":2534,
                  "source":"CLU_360861",
                  "end":"20140325093400+0000",
                  "format":"sd",
                  "start":"20140325083600+0000",
                  "available_as":{
                     "id":14775922,
                     "type":"CosmoIdProgram"
                  }
               }
            ],
            "id":11384745,
            "messages":null,
            "video":{
               "ids":{
                  "amgMovieId":null,
                  "cosmoId":"11384745",
                  "iguideId":11384745,
                  "pidPaid":null,
                  "videoId":null
               },
               "seriesIds":null,
               "masterTitle":"NCIS: Los Angeles",
               "secondaryTitle":"",
               "episodeTitle":null,
               "category":"Other",
               "color":"Color",
               "lastAirDate":null,
               "originalAirDate":"2009-09-22T00:00:00.00Z",
               "programType":"Series",
               "releaseYear":2009,
               "duration":60,
               "subcategory":"crime drama",
               "syndicated":false,
               "programLanguage":"English",
               "partNumber":null,
               "partTotal":null,
               "parentalRatings":null,
               "parentalRatingsUri":"http://api.rovicorp.com/data/v1.1/video/parentalRatings?format=json&apikey=4p1k3y&cosmoid=11384745",
               "cast":null,
               "castUri":"http://api.rovicorp.com/data/v1.1/video/cast?format=json&apikey=4p1k3y&cosmoid=11384745",
               "crew":null,
               "crewUri":"http://api.rovicorp.com/data/v1.1/video/crew?format=json&apikey=4p1k3y&cosmoid=11384745",
               "awards":null,
               "awardsUri":null,
               "images":null,
               "imagesUri":"http://api.rovicorp.com/data/v1.1/video/images?format=json&apikey=4p1k3y&cosmoid=11384745",
               "clip":null,
               "clipUri":null,
               "seasons":null,
               "seasonsUri":"http://api.rovicorp.com/data/v1.1/video/seasons?format=json&apikey=4p1k3y&cosmoid=11384745",
               "variants":null,
               "variantsUri":"http://api.rovicorp.com/data/v1.1/video/variants?format=json&apikey=4p1k3y&cosmoid=11384745",
               "schedule":"",
               "scheduleUri":null,
               "event":null,
               "eventUri":null,
               "keywords":null,
               "keywordsUri":"http://api.rovicorp.com/data/v1.1/video/keywords?format=json&apikey=4p1k3y&cosmoid=11384745",
               "moods":null,
               "moodsUri":null,
               "related":null,
               "relatedUri":"http://api.rovicorp.com/data/v1.1/video/related?format=json&apikey=4p1k3y&cosmoid=11384745",
               "review":null,
               "reviewUri":null,
               "synopsis":null,
               "synopsisUri":"http://api.rovicorp.com/data/v1.1/video/synopsis?format=json&apikey=4p1k3y&cosmoid=11384745",
               "themes":null,
               "themesUri":"http://api.rovicorp.com/data/v1.1/video/themes?format=json&apikey=4p1k3y&cosmoid=11384745",
               "tones":null,
               "tonesUri":null
            }
         }
      ],
      "totalResultCounts":2
   }
}

Response Example 2

XML response to a search for Will Smith. Requested with http://api.rovicorp.com/search/v2.1/music/search?
apikey=apikey&sig=sig&query=will+smith&entitytype=artist&size=1&format=xml
.
<searchResponse xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="com.rovicorp.metadataservice" xmlns:meta="com.rovicorp.metadataservice" meta:id="tul1cpgpsrapp16:gwy:3820pf">
  <controlSet>
    <status>ok</status>
    <code>200</code>
    <messages i:nil="true" />
  </controlSet>
  <results>
    <result>
      <type>artist</type>
      <relevance>
        <code>Score</code>
        <value>2.4287589</value>
      </relevance>
      <availabilties xmlns="com.rovicorp.snrservice" />
      <id>MN0000963005</id>
      <messages i:nil="true" />
      <name>
        <ids>
          <amgClassicalId>Q 253387</amgClassicalId>
          <amgMovieId>P 66596</amgMovieId>
          <amgPopId>P 278403</amgPopId>
          <cosmoId>100947</cosmoId>
          <nameId>MN0000963005</nameId>
        </ids>
        <name>Will Smith</name>
        <isGroup>false</isGroup>
        <primaryMedia>Movies</primaryMedia>
        <musicGenres>
          <Genre>
            <id>MA0000002816</id>
            <name>Rap</name>
            <weight>10</weight>
          </Genre>
          <Genre>
            <id>MA0000002809</id>
            <name>R&B</name>
            <weight>9</weight>
          </Genre>
          <Genre>
            <id>MA0000002613</id>
            <name>Pop/Rock</name>
            <weight>7</weight>
          </Genre>
        </musicGenres>
        <movieGenres>
          <Genre>
            <id>D 648</id>
            <name>Comedy</name>
            <weight>99</weight>
          </Genre>
          <Genre>
            <id>D 649</id>
            <name>Drama</name>
            <weight>61</weight>
          </Genre>
          <Genre>
            <id>D 652</id>
            <name>Science Fiction</name>
            <weight>28</weight>
          </Genre>
        </movieGenres>
        <active>
          <a:string>1980s</a:string>
          <a:string>1990s</a:string>
          <a:string>2000s</a:string>
          <a:string>2010s</a:string>
        </active>
        <birth>
          <date>1968-09-25</date>
          <place>Philadelphia, PA</place>
        </birth>
        <death>
          <date />
          <place />
        </death>
        <country>United States</country>
        <gender>M</gender>
        <period>1986-2015</period>
        <headlineBio>Fresh Prince half of classic old school pop rappers became one of the top actors in the US, hitmaking MC.</headlineBio>
        <classicalBio i:nil="true" />
        <classicalBioUri i:nil="true" />
        <discography i:nil="true" />
        <discographyUri>http://api.rovicorp.com/data/v1.1/name/discography?format=xml&apikey=4p1k3y&amgmovieid=P+66596</discographyUri>
        <filmography i:nil="true" />
        <filmographyUri>http://api.rovicorp.com/data/v1.1/name/filmography?format=xml&apikey=4p1k3y&amgmovieid=P+66596</filmographyUri>
        <followers i:nil="true" />
        <followersUri>http://api.rovicorp.com/data/v1.1/name/followers?format=xml&apikey=4p1k3y&amgmovieid=P+66596</followersUri>
        <groupMembers i:nil="true" />
        <groupMembersUri i:nil="true" />
        <memberOf i:nil="true" />
        <memberOfUri>http://api.rovicorp.com/data/v1.1/name/memberOf?format=xml&apikey=4p1k3y&amgmovieid=P+66596</memberOfUri>
        <images i:nil="true" />
        <imagesUri>http://api.rovicorp.com/data/v1.1/name/images?format=xml&apikey=4p1k3y&amgmovieid=P+66596</imagesUri>
        <influencers i:nil="true" />
        <influencersUri>http://api.rovicorp.com/data/v1.1/name/influencers?format=xml&apikey=4p1k3y&amgmovieid=P+66596</influencersUri>
        <similars i:nil="true" />
        <similarsUri>http://api.rovicorp.com/data/v1.1/name/similars?format=xml&apikey=4p1k3y&amgmovieid=P+66596</similarsUri>
        <moods i:nil="true" />
        <moodsUri>http://api.rovicorp.com/data/v1.1/name/moods?format=xml&apikey=4p1k3y&amgmovieid=P+66596</moodsUri>
        <movieBio i:nil="true" />
        <movieBioUri>http://api.rovicorp.com/data/v1.1/name/movieBio?format=xml&apikey=4p1k3y&amgmovieid=P+66596</movieBioUri>
        <musicBio i:nil="true" />
        <musicBioUri>http://api.rovicorp.com/data/v1.1/name/musicBio?format=xml&apikey=4p1k3y&amgmovieid=P+66596</musicBioUri>
        <musicCredits i:nil="true" />
        <musicCreditsUri>http://api.rovicorp.com/data/v1.1/name/musicCredits?format=xml&apikey=4p1k3y&amgmovieid=P+66596</musicCreditsUri>
        <songs i:nil="true" />
        <songsUri>http://api.rovicorp.com/data/v1.1/name/songs?format=xml&apikey=4p1k3y&amgmovieid=P+66596</songsUri>
        <musicStyles i:nil="true" />
        <musicStylesUri>http://api.rovicorp.com/data/v1.1/name/musicStyles?format=xml&apikey=4p1k3y&amgmovieid=P+66596</musicStylesUri>
        <themes i:nil="true" />
        <themesUri i:nil="true" />
        <videos i:nil="true" />
        <videosUri>http://api.rovicorp.com/data/v1.1/name/videos?format=xml&apikey=4p1k3y&amgmovieid=P+66596</videosUri>
        <movieStyles i:nil="true" />
        <movieStylesUri>http://api.rovicorp.com/data/v1.1/name/movieStyles?format=xml&apikey=4p1k3y&amgmovieid=P+66596</movieStylesUri>
        <contemporaries i:nil="true" />
        <contemporariesUri>http://api.rovicorp.com/data/v1.1/name/contemporaries?format=xml&apikey=4p1k3y&amgmovieid=P+66596</contemporariesUri>
        <associatedWith i:nil="true" />
        <associatedWithUri i:nil="true" />
        <collaboratorWith i:nil="true" />
        <collaboratorWithUri i:nil="true" />
        <compositions i:nil="true" />
        <compositionsUri>http://api.rovicorp.com/data/v1.1/name/compositions?format=xml&apikey=4p1k3y&amgmovieid=P+66596</compositionsUri>
        <aliases i:nil="true" />
        <aliasesUri>http://api.rovicorp.com/data/v1.1/name/aliases?format=xml&apikey=4p1k3y&amgmovieid=P+66596</aliasesUri>
        <awards i:nil="true" />
        <awardsUri>http://api.rovicorp.com/data/v1.1/name/awards?format=xml&apikey=4p1k3y&amgmovieid=P+66596</awardsUri>
        <web i:nil="true" />
        <webUri>http://api.rovicorp.com/data/v1.1/name/web?format=xml&apikey=4p1k3y&amgmovieid=P+66596</webUri>
        <factsheets i:nil="true" />
        <factsheetsUri>http://api.rovicorp.com/data/v1.1/name/factsheets?format=xml&apikey=4p1k3y&amgmovieid=P+66596</factsheetsUri>
        <schedule i:nil="true" />
        <scheduleUri i:nil="true" />
        <credits i:nil="true" />
        <creditsUri>http://api.rovicorp.com/data/v1.1/name/credits?format=xml&apikey=4p1k3y&amgmovieid=P+66596</creditsUri>
        <linear i:nil="true" />
      </name>
    </result>
  </results>
  <totalResultCounts>12780</totalResultCounts>
</searchResponse>

Response Example 3

Response to the search for the movie Avatar and the request for a list of DVD releases. Requested with http://api.rovicorp.com/search/v2.1/amgvideo/search?apikey=apikey&sig=sig&query=avatar&entitytype=movie&
facet=type&include=releases&size=1
.
{
   "searchResponse":{
      "meta:id":"tul1cpgpsrapp12:gwy:3ka5ti",
      "controlSet":{
         "status":"ok",
         "code":200,
         "messages":null
      },
      "results":[
         {
            "type":"movie",
            "relevance":[
               {
                  "code":"Score",
                  "value":1.7446358
               }
            ],
            "id":"V 352199",
            "messages":null,
            "movie":{
               "ids":{
                  "cosmoId":"8904814",
                  "movieId":"V 352199"
               },
               "title":"Avatar",
               "releaseYear":2009,
               "rating":6,
               "duration":160,
               "directors":[
                  {
                     "id":"P 10397",
                     "name":"James Cameron"
                  }
               ],
               "countries":[
                  "USA"
               ],
               "mpaa":"PG13",
               "flags":[
                  "Profanity",
                  "Sexual Situations",
                  "Smoking",
                  "War Violence"
               ],
               "genres":[
                  {
                     "id":"D 652",
                     "name":"Science Fiction",
                     "weight":5
                  }
               ],
               "attributes":[
                  "High Budget",
                  "High Production Values"
               ],
               "cast":null,
               "castUri":"http://api.rovicorp.com/data/v1.1/movie/cast?format=json&apikey=4p1k3y&movieid=V+++352199",
               "crew":null,
               "crewUri":"http://api.rovicorp.com/data/v1.1/movie/crew?format=json&apikey=4p1k3y&movieid=V+++352199",
               "images":null,
               "imagesUri":"http://api.rovicorp.com/data/v1.1/movie/images?format=json&apikey=4p1k3y&movieid=V+++352199",
               "moods":null,
               "moodsUri":"http://api.rovicorp.com/data/v1.1/movie/moods?format=json&apikey=4p1k3y&movieid=V+++352199",
               "keywords":null,
               "keywordsUri":"http://api.rovicorp.com/data/v1.1/movie/keywords?format=json&apikey=4p1k3y&movieid=V+++352199",
               "related":null,
               "relatedUri":"http://api.rovicorp.com/data/v1.1/movie/related?format=json&apikey=4p1k3y&movieid=V+++352199",
               "releases":[
                  {
                     "ids":{
                        "movieReleaseId":null,
                        "releaseId":"E241860",
                        "upcId":"5039036044073"
                     },
                     "title":"Avatar [Blu-ray]",
                     "studio":"20th Century Fox Home Entertainment",
                     "rating":6,
                     "formats":[
                        "Blu-ray"
                     ],
                     "year":"",
                     "hasCommentary":true,
                     "isPurchasable":false
                  },
                  {
                     "ids":{
                        "movieReleaseId":null,
                        "releaseId":"E237815",
                        "upcId":"024543656067"
                     },
                     "title":"Avatar",
                     "studio":"20th Century Fox",
                     "rating":6,
                     "formats":[
                        "DVD"
                     ],
                     "year":"2010 04 22",
                     "hasCommentary":true,
                     "isPurchasable":true
                  },
                  {
                     "ids":{
                        "movieReleaseId":null,
                        "releaseId":"E237927",
                        "upcId":"024543656142"
                     },
                     "title":"Avatar [2 Discs] [Bilingual] [Blu-ray/DVD]",
                     "studio":"20th Century Fox (Canadian)",
                     "rating":6,
                     "formats":[
                        "Blu-ray",
                        "DVD"
                     ],
                     "year":"2010 04 22",
                     "hasCommentary":false,
                     "isPurchasable":false
                  },
                  {
                     "ids":{
                        "movieReleaseId":null,
                        "releaseId":"E237816",
                        "upcId":"024543656135"
                     },
                     "title":"Avatar [2 Discs] [Blu-ray/DVD]",
                     "studio":"20th Century Fox",
                     "rating":6,
                     "formats":[
                        "Blu-ray",
                        "DVD"
                     ],
                     "year":"2010 04 22",
                     "hasCommentary":true,
                     "isPurchasable":true
                  },
                  {
                     "ids":{
                        "movieReleaseId":null,
                        "releaseId":"E237928",
                        "upcId":"024543656074"
                     },
                     "title":"Avatar [Bilingual]",
                     "studio":"20th Century Fox (Canadian)",
                     "rating":6,
                     "formats":[
                        "DVD"
                     ],
                     "year":"2010 04 22",
                     "hasCommentary":false,
                     "isPurchasable":false
                  },
                  {
                     "ids":{
                        "movieReleaseId":null,
                        "releaseId":"E252852",
                        "upcId":"5039036045544"
                     },
                     "title":"Avatar [Extended Collector's Edition] [Blu-ray] [3 Discs]",
                     "studio":"20th Century Fox Home Entertainment (UK)",
                     "rating":6,
                     "formats":[
                        "Blu-ray"
                     ],
                     "year":"2010 11 15",
                     "hasCommentary":false,
                     "isPurchasable":false
                  },
                  {
                     "ids":{
                        "movieReleaseId":null,
                        "releaseId":"E247882",
                        "upcId":"024543713678"
                     },
                     "title":"Avatar [Extended Collector's Edition] [3 Discs]",
                     "studio":"20th Century Fox",
                     "rating":6,
                     "formats":[
                        "DVD"
                     ],
                     "year":"2010 11 16",
                     "hasCommentary":true,
                     "isPurchasable":true
                  },
                  {
                     "ids":{
                        "movieReleaseId":null,
                        "releaseId":"E248894",
                        "upcId":"024543713685"
                     },
                     "title":"Avatar [Extended Collector's Edition] [3 Discs]",
                     "studio":"20th Century Fox (Canadian)",
                     "rating":6,
                     "formats":[
                        "DVD"
                     ],
                     "year":"2010 11 16",
                     "hasCommentary":false,
                     "isPurchasable":false
                  },
                  {
                     "ids":{
                        "movieReleaseId":null,
                        "releaseId":"E247888",
                        "upcId":"024543713692"
                     },
                     "title":"Avatar [Extended Collector's Edition] [3 Discs] [Blu-ray]",
                     "studio":"20th Century Fox",
                     "rating":6,
                     "formats":[
                        "Blu-ray"
                     ],
                     "year":"2010 11 16",
                     "hasCommentary":true,
                     "isPurchasable":true
                  },
                  {
                     "ids":{
                        "movieReleaseId":null,
                        "releaseId":"E248895",
                        "upcId":"024543713708"
                     },
                     "title":"Avatar [Extended Collector's Edition] [3 Discs] [Blu-ray]",
                     "studio":"20th Century Fox (Canadian)",
                     "rating":6,
                     "formats":[
                        "Blu-ray"
                     ],
                     "year":"2010 11 16",
                     "hasCommentary":false,
                     "isPurchasable":false
                  },
                  {
                     "ids":{
                        "movieReleaseId":null,
                        "releaseId":"E291041",
                        "upcId":"024543823018"
                     },
                     "title":"Avatar [Limited Edition] [2 Discs] [2D/3D] [Blu-ray/DVD]",
                     "studio":"20th Century Fox",
                     "rating":6,
                     "formats":[
                        "Blu-ray",
                        "DVD"
                     ],
                     "year":"2012 10 16",
                     "hasCommentary":true,
                     "isPurchasable":true
                  },
                  {
                     "ids":{
                        "movieReleaseId":null,
                        "releaseId":"E292978",
                        "upcId":"024543823025"
                     },
                     "title":"Avatar [Limited Edition] [3D] [Blu-ray/DVD]",
                     "studio":"20th Century Fox (Canadian)",
                     "rating":6,
                     "formats":[
                        "Blu-ray",
                        "DVD"
                     ],
                     "year":"2012 10 16",
                     "hasCommentary":false,
                     "isPurchasable":false
                  },
                  {
                     "ids":{
                        "movieReleaseId":null,
                        "releaseId":"E329889",
                        "upcId":"4717415183339"
                     },
                     "title":"Avatar [Blu-ray]",
                     "studio":"Import Vendor",
                     "rating":6,
                     "formats":[
                        "Blu-ray"
                     ],
                     "year":"2013 12 10",
                     "hasCommentary":false,
                     "isPurchasable":true
                  }
               ],
               "releasesUri":"http://api.rovicorp.com/data/v1.1/movie/releases?format=json&apikey=4p1k3y&movieid=V+++352199",
               "review":null,
               "reviewUri":"http://api.rovicorp.com/data/v1.1/movie/review?format=json&apikey=4p1k3y&movieid=V+++352199",
               "similar":null,
               "similarUri":"http://api.rovicorp.com/data/v1.1/movie/similar?format=json&apikey=4p1k3y&movieid=V+++352199",
               "synopsis":null,
               "synopsisUri":"http://api.rovicorp.com/data/v1.1/movie/synopsis?format=json&apikey=4p1k3y&movieid=V+++352199",
               "themes":null,
               "themesUri":"http://api.rovicorp.com/data/v1.1/movie/themes?format=json&apikey=4p1k3y&movieid=V+++352199",
               "tones":null,
               "tonesUri":"http://api.rovicorp.com/data/v1.1/movie/tones?format=json&apikey=4p1k3y&movieid=V+++352199",
               "types":null,
               "typesUri":"http://api.rovicorp.com/data/v1.1/movie/types?format=json&apikey=4p1k3y&movieid=V+++352199",
               "videos":null,
               "videosUri":"http://api.rovicorp.com/data/v1.1/movie/videos?format=json&apikey=4p1k3y&movieid=V+++352199",
               "studio":"",
               "producedBy":[
                  "Dune Entertainment",
                  "Ingenious Film Partners"
               ],
               "releasedBy":[
                  "20th Century Fox"
               ],
               "distributor":null
            }
         }
      ],
      "totalResultCounts":56,
      "facetCounts":[
         {
            "name":"type",
            "facetCount":[
               {
                  "name":"Movie",
                  "count":56
               }
            ]
         }
      ]
   }
}

Response Example 4

The first pop/rock song out of 2697 that are titled My Way. Requested with
http://api.rovicorp.com/search/v2.1/music/search?apikey=apikey&sig=sig&query=my+way&entitytype=song&
facet=type&facet=genre&filter=genreid:MA0000002613&size=1
.
{
   "searchResponse":{
      "meta:id":"tul1cpgpsrapp17:gwy:3os79b",
      "controlSet":{
         "status":"ok",
         "code":200,
         "messages":null
      },
      "results":[
         {
            "type":"song",
            "relevance":[
               {
                  "code":"Score",
                  "value":2.2854998
               }
            ],
            "id":"MT0008621117",
            "messages":null,
            "song":{
               "ids":{
                  "amgClassicalTrackId":null,
                  "amgPopTrackId":"T 3347603",
                  "isrcId":"USRC17307026",
                  "muzeId":"3060414",
                  "trackId":"MT0008621117"
               },
               "title":"My Way",
               "primaryArtists":[
                  {
                     "id":"MN0000180228",
                     "name":"Elvis Presley"
                  }
               ],
               "isPick":true,
               "genres":[
                  {
                     "id":"MA0000002613",
                     "name":"Pop\/Rock",
                     "weight":9
                  },
                  {
                     "id":"MA0000011877",
                     "name":"Vocal",
                     "weight":9
                  }
               ],
               "appearances":null,
               "appearancesUri":"http:\/\/api.rovicorp.com\/data\/v1.1\/song\/appearances?format=json&apikey=4p1k3y&trackId=MT0008621117",
               "moods":null,
               "moodsUri":"http:\/\/api.rovicorp.com\/data\/v1.1\/song\/moods?format=json&apikey=4p1k3y&trackId=MT0008621117",
               "review":null,
               "reviewUri":null,
               "styles":null,
               "stylesUri":"http:\/\/api.rovicorp.com\/data\/v1.1\/song\/styles?format=json&apikey=4p1k3y&trackId=MT0008621117",
               "themes":null,
               "themesUri":"http:\/\/api.rovicorp.com\/data\/v1.1\/song\/themes?format=json&apikey=4p1k3y&trackId=MT0008621117"
            }
         }
      ],
      "totalResultCounts":2697,
      "facetCounts":[
         {
            "name":"type",
            "facetCount":[
               {
                  "name":"Track",
                  "count":2697
               }
            ]
         },
         {
            "name":"genre",
            "facetCount":[
               {
                  "id":"MA0000002572",
                  "name":"Electronic",
                  "count":135
               },
               {
                  "id":"MA0000004431",
                  "name":"Religious",
                  "count":66
               },
               {
                  "id":"MA0000012075",
                  "name":"Holiday",
                  "count":3
               },
               {
                  "id":"MA0000004432",
                  "name":"Stage & Screen",
                  "count":12
               },
               {
                  "id":"MA0000002809",
                  "name":"R&B",
                  "count":199
               },
               {
                  "id":"MA0000002467",
                  "name":"Blues",
                  "count":131
               },
               {
                  "id":"MA0000004433",
                  "name":"Comedy\/Spoken",
                  "count":5
               },
               {
                  "id":"MA0000002692",
                  "name":"Latin",
                  "count":16
               },
               {
                  "id":"MA0000002532",
                  "name":"Country",
                  "count":215
               },
               {
                  "id":"MA0000002944",
                  "name":"Children's",
                  "count":30
               },
               {
                  "id":"MA0000002820",
                  "name":"Reggae",
                  "count":11
               },
               {
                  "id":"MA0000011877",
                  "name":"Vocal",
                  "count":63
               },
               {
                  "id":"MA0000002567",
                  "name":"Easy Listening",
                  "count":53
               },
               {
                  "id":"MA0000002674",
                  "name":"Jazz",
                  "count":113
               },
               {
                  "id":"MA0000002592",
                  "name":"Folk",
                  "count":119
               },
               {
                  "id":"MA0000002521",
                  "name":"Classical",
                  "count":2
               },
               {
                  "id":"MA0000002660",
                  "name":"International",
                  "count":108
               },
               {
                  "id":"MA0000012170",
                  "name":"Avant-Garde",
                  "count":4
               },
               {
                  "id":"MA0000002816",
                  "name":"Rap",
                  "count":37
               },
               {
                  "id":"MA0000002745",
                  "name":"New Age",
                  "count":18
               },
               {
                  "id":"MA0000002613",
                  "name":"Pop\/Rock",
                  "count":2697
               }
            ]
         }
      ]
   }
}

Error Codes

CodeDescription
400 Incorrect or invalid request. The reason is shown in the Message object in ControlSet.

See Also

↑ Top

Personal tools