An album, song, performance, composition, or artist.
Music and artists around the following:
A music genre such as jazz, pop/rock, or classical.
A music subgenre or style such as piano blues, slide-guitar blues, or contemporary blues.
A music mood that suits the times or audience such as erotic, celebratory, or mystical.
A music theme that suits the times or audience such as winter, Monday morning, or at the office.
Include regions on your page for eras, staff picks, editors' choices, most visited, new releases, featured new releases, etc.
From selections made from your home page, build out your pages by using IDs in responses to offer links to other pages as shown in the next section.
Roadmap to Rovi Music IDs
In the data returned by most API responses will be IDs for names, albums, tracks, etc.—IDs you can use in API requests for additional or related information. Here's a roadmap to building additional pages by using the Rovi IDs returned in responses to offer links to pages that feature a song, artist, album, release, composition, or performance:
Many API responses will also include IDs for moods, genres, subgenres, and styles that you can use to ask for further information in a Rovi Search or Recommendations request.
The Top-Level Requests: The Info Requests
The Music Service and Name Service provide six top-level requests:
Name/Info
Song/Info
Album/Info
Release/Info
Composition/Info
Performance/Info
These Info requests return core information plus preformatted requests for available subsidiary information. And these Info requests can also return subsidiary information in the response. Here are some design considerations when using the Info requests:
An Info response tells you what subsidiary data is available: if a review or biography is not available, for example, the response will not include the preformatted request for the review or biography. This feature allows your application the following program control options when parsing an Info response:
Grab an available request and offer the data as a link.
Grab an available request, execute it, and present the data.
If a request is unavailable, execute an alternative request.
You don't have to make separate requests for subsidiary information. An Info response can include subsidiary information in the response. You can, for example, include a review in an Info response by specifying that as part of the Info request. Use this feature in the following cases:
To build a page around data and subsidiary data you already know is available.
To present whatever data is available using appropriate program controls. Note: some subsidiary requests return huge amounts of data. For these requests, it's better to make a separate call so you can specify parameters that paginate the response data.
A Sample Info Response
Here's a response to a composition/info request. Note the three subsidiary requests returned at the end of the response.
A Sample Info Response That Includes Information From a Subsidiary Request
Here's the response to the same composition/info request as above, but one which includes the information from the partsUri subsidiary composition request. With the Music API, you have the flexibility to get a group of related information with an Info request or to get just the subsidiary information in a subsidiary request.
Some requests return enormous amounts of information. Name/Discography, a subsidiary request, returns over 400 albums for the Beatles.
To control the amount of data you receive in a response, subsidiary requests offer the parameters offset and count if the requests return lists of data. These parameters set the starting point and number of items to return. Use these parameters in combination with page forward and page reverse controls.
Presenting Featured Content
Let's start with that vision of yours. Here are some ideas for creating compelling content on any page, including a home page:
Feature an Album
Grab the ID from a response that returns album IDs:
Call Name/Info with the include parameter values that return the data you want to present. Note: these values may return large amounts of data. To control the amount of data returned, make separate requests instead and use the offset and count parameters to paginate the response.
filter=genreid for each genre. For example: filter=genreid:MA0000002613|genreid:MA0000002572. Note: You can filter on a style or subgenre instead with filter=subgenreid.
include=discography to return the list of albums. Consider including other requests for the data you want to present about each artist, such as include=images to get URLs to images of the artists.
From the response, grab and use the data you want:
Consider using data about artists, such as headlines from the headlineBio element.
With artist name IDs, add a Name/Info link to each artist that will drive your customer to a page about the artist.
Grab the data you want about the first three albums in the discography element.
With the album IDs in the discography element, call Album/Images to return images about each album.
Use the IDs in responses to build your pages out, adding links to other pages as shown above in Roadmap to Rovi Music IDs.
Feature Recent Albums in a Musical Style, Genre, or Subgenre
Get the ID of the style, genre, or subgenre you want to feature.
Grab a genre ID from an Info response or an ID from a Styles response.
From the response, grab and use the data you want:
Grab the link to the album cover image you want.
With the artist name ID, add a Name/Info link that will drive your customer to a page about the artist.
With the album ID, add a Album/Info link that will drive your customer to a page about the album.
With the song ID, add a Song/Info link that will drive your customer to a page about the song and a song sample. Or make the call and add the data to this page.
Use the IDs in responses to build your pages out, adding links to other pages as shown above in Roadmap to Rovi Music IDs.
Feature Top Compositions in a Classical Music Genre or Subgenre
From the response, grab and use the data you want. For example, with the composition ID, add a Composition/Info link that will drive your customer to a page about the composition.
Use the IDs in responses to build your pages out, adding links to other pages as shown above in Roadmap to Rovi Music IDs.
Feature Top Albums in a Musical Style, Genre, or Subgenre
Get the ID of the style, genre, or subgenre you want to feature.
Grab a genre ID from an Info response or an ID from a Styles response.