Rcs-eval-api/v2.1/filterbrowse

Jump to: navigation, search

Advanced Faceted Search

This request offers insight into some of the custom capabilities available from Rovi Advanced Search. This is one of several Advanced Search requests that show how Rovi can return entertainment content customers are looking for.

Advanced Faceted Search can return content based on the following filters specified in the request:

  • Additional field-level filters
  • Priority settings such as hot, new, fresh, or all-time

Syntax

endpoint/filterbrowse?apikey=apikey&sig=sig&entitytype=entitytype [&filter=filter] [&boost=boost] [&availableclu=availableclu] [&availablestart=availablestart] [&availableend=availableend] [&include=include] [&facet=facet] [&format=format] [&country=country] [&language=language] [&offset=offset] [&size=size]

Request Example 1

Return a list of ten hot, new pop/rock albums.

Request Example 2

Find broadcasts of a hot TV series that first aired after 2010 and are showing this weekend on Time Warner cable in Beverly Hills, CA, and show up to five broadcasts of each. To try this call, change the available-end date 20111120 to next Sunday.

Request Example 3

Find hot music artists.

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.
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.

available-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 multiple broadcast times, specify the maximum number of broadcasts as serviceID,number like this: availableclu=360861,5.

Notes:

  • Requires an endpoint of video.
  • Requires an entitytype of movie or tvseries.
  • To check multiple television services, specify multiple parameters like this: availableclu=360861,5&availableclu=20494.
  • To limit the broadcast time window to less than the next two weeks, specify the availablestart or availableend parameters, or both.
  • To return only programs in the broadcast time window, add boost=availability or 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
available-end No If you specify the availableclu parameter, availableend 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.

availablestart No If you specify the availableclu parameter, availablestart 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.

boost No Sort-order priorities you can increase or decrease by a decimal value between -1 and 1. To boost the priority of new content by 50%, for example, specify boost=new:0.5. The priorities you can increase and decrease are:
  Factor  Meaning
  • hot
  • new
  • fresh
  • alltime

hot content
recent original release date
new episodes in a TV series
all-time popularity

To boost multiple factors, specify multiple parameters: boost=new:0.5&boost=alltime:0.4. Note:  The sum of the absolute values of all factors must be less than or equal to 1. That is, add all of the absolute values together and make sure the total is less than or equal to 1.

If you are using the clu parameter, you also can use the boost parameter to filter out results that are not available on the television service. Specified without a value, like this: boost=availability.

country No Country the language parameter applies to. The current release of the API supports only US.
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 movies or TV series from the sources specified by the availableclu 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)

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 *
2008
1 to 10 (amgvideo endpoint)

onetimeonly
  • length

120 (minutes, integer)

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

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

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 *
1 to 10 (amgvideo endpoint)

* Note: The availability filter is specified without a value, like this: filter=availability. Use this to filter out results that are not found in availableclu.

Additional Rovi Advanced Search Filter

Rovi Advanced Search also provides the following filter for an endpoint of video and an entitytype of movie or tvseries:

    Filter       Description
latestairing    Filters out content based on the most recent date the program was broadcast (YYYYMMDD). For example, to return only shows broadcast in 2010 or later, specify: filter=latestairing>20091231.
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:

  • 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.

size No The number of items you want to be returned. The default is 20.

Response

Response Header

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

Response for Advanced Faceted 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.

JSON Response Example

Here's the top response to a request for new movies rated for mature audiences airing today on Time Warner Cable in Beverly Hills.
Requested with http://api.rovicorp.com/snrpreview/v2.1/video/filterbrowse?apikey=apikey&sig=sig&
entitytype=movie&facet=type&filter=ratingid:15|ratingid:47&availableclu=360861&filter=availability&
availableend=20120419080000Z&boost=new:1&size=1&format=json
.
{
   "searchResponse":{
      "meta:id":"tul1cpgpsrapp15:gwy:3nd7jq",
      "controlSet":{
         "status":"ok",
         "code":200,
         "messages":null
      },
      "results":[
         {
            "type":"movie",
            "relevance":[
               {
                  "code":"Score",
                  "value":0.2977148
               }
            ],
            "availabilities":[
               {
                  "format":"sd",
                  "source":"CLU_360861",
                  "start":"20140319071500+0000",
                  "cosmosource":5234,
                  "end":"20140319092000+0000",
                  "available_as":{
                     "id":4002243,
                     "type":"CosmoIdProgram"
                  }
               },
               "In the Cut"
            ],
            "id":4002243,
            "messages":null,
            "video":{
               "ids":{
                  "amgMovieId":null,
                  "cosmoId":"4002243",
                  "iguideId":4002243,
                  "pidPaid":null,
                  "videoId":null
               },
               "seriesIds":null,
               "masterTitle":"In the Cut",
               "secondaryTitle":"",
               "episodeTitle":null,
               "category":"Movie",
               "color":"Color",
               "lastAirDate":null,
               "originalAirDate":"2011-02-05T00:00:00.00Z",
               "programType":"Movie",
               "releaseYear":2003,
               "duration":119,
               "subcategory":"mystery & suspense",
               "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=4002243",
               "cast":null,
               "castUri":"http://api.rovicorp.com/data/v1.1/video/cast?format=json&apikey=4p1k3y&cosmoid=4002243",
               "crew":null,
               "crewUri":"http://api.rovicorp.com/data/v1.1/video/crew?format=json&apikey=4p1k3y&cosmoid=4002243",
               "awards":null,
               "awardsUri":"",
               "images":null,
               "imagesUri":"http://api.rovicorp.com/data/v1.1/video/images?format=json&apikey=4p1k3y&cosmoid=4002243",
               "clip":null,
               "clipUri":"http://api.rovicorp.com/data/v1.1/video/clip?format=json&apikey=4p1k3y&cosmoid=4002243",
               "seasons":null,
               "seasonsUri":"",
               "variants":null,
               "variantsUri":"http://api.rovicorp.com/data/v1.1/video/variants?format=json&apikey=4p1k3y&cosmoid=4002243",
               "schedule":"",
               "scheduleUri":"",
               "event":null,
               "eventUri":"",
               "keywords":null,
               "keywordsUri":"http://api.rovicorp.com/data/v1.1/video/keywords?format=json&apikey=4p1k3y&cosmoid=4002243",
               "moods":null,
               "moodsUri":"http://api.rovicorp.com/data/v1.1/video/moods?format=json&apikey=4p1k3y&cosmoid=4002243",
               "related":null,
               "relatedUri":"http://api.rovicorp.com/data/v1.1/video/related?format=json&apikey=4p1k3y&cosmoid=4002243",
               "review":null,
               "reviewUri":"http://api.rovicorp.com/data/v1.1/video/review?format=json&apikey=4p1k3y&cosmoid=4002243",
               "synopsis":null,
               "synopsisUri":"http://api.rovicorp.com/data/v1.1/video/synopsis?format=json&apikey=4p1k3y&cosmoid=4002243",
               "themes":null,
               "themesUri":"http://api.rovicorp.com/data/v1.1/video/themes?format=json&apikey=4p1k3y&cosmoid=4002243",
               "tones":null,
               "tonesUri":"http://api.rovicorp.com/data/v1.1/video/tones?format=json&apikey=4p1k3y&cosmoid=4002243"
            }
         }
      ],
      "totalResultCounts":1,
      "facetCounts":[
         {
            "name":"type",
            "facetCount":[
               {
                  "name":"Movie",
                  "count":1
               }
            ]
         }
      ]
   }
}

Error Codes

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

See Also

↑ Top

Personal tools