V1.Metadata.MusicService.Album:Releases

Jump to: navigation, search

Album/Releases

Returns information about the releases of an album, including media type and whether it can be purchased.

This request may return a large amount of data. To speed data transmission, do the following:

  • Request one page of data at a time, requesting only what you want to immediately display.
  • Request a compressed response by including Accept-Encoding: gzip,deflate in the HTTP header.

Syntax

album/releases? album=album
albumid=albumid
amgpopid=amgpopid
amgclassicalid=amgclassicalid
&apikey=apikey&sig=sig [&format=format] [&offset=offset] [&count=count] [&country=country] [&language=language]

Request Example 1

Request the list of releases of Birth of the Cool.

Request Example 2

Request just the first two releases.

Request Example 3

Request the next two releases.

Request Parameters

Sort none.gif  Click to re-sort

Parameter Required Description
apikey Yes Access code that authorizes your request for data from Rovi.
sig Yes A calculated authorization code. To perform the calculation, execute the MD5 function on the concatenation of the following three 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.

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.

album Conditional Keywords from the album title. This searches for the most popular title with that combination of words. Replace spaces with plus (+) or percent20 (%20) symbols.

Condition: The request must contain just one of these parameters:

  • album
  • albumid
  • amgpopid
  • amgclassicalid
albumid Conditional Rovi Music ID for an album, consisting of the prefix MW followed by a ten-digit number. For example: MW0000056882. You can grab album IDs from responses to the following requests:

Condition: The request must contain just one of these parameters:

  • album
  • albumid
  • amgpopid
  • amgclassicalid
amgclassicalid Conditional All Media Guide (AMG) ID for a classical music album, consisting of a ten-character string that starts with W and is followed by nine digits with leading spaces. For example: W   180317. When using an AMG Classical ID in a request, replace any spaces in the ID with plus (+) or percent20 (%20) symbols, like this: W+++180317. AMG is a legacy database of entertainment information.

Condition: The request must contain just one of these parameters:

  • album
  • albumid
  • amgpopid
  • amgclassicalid
amgpopid Conditional All Media Guide (AMG) ID for a popular music album, consisting of a ten-character string that starts with R and is followed by nine digits with leading spaces. For example: R  1805889. When using an AMG Pop ID in a request, replace any spaces in the ID with plus (+) or percent20 (%20) symbols, like this: R++1805889.

Condition: The request must contain just one of these parameters:

  • album
  • albumid
  • amgpopid
  • amgclassicalid
count No Number of items to be returned. The default is zero, which returns all items after the offset.

Use count and offset to paginate the response.

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).
offset No Number of items at the start of the returned list to skip. The default is zero.

Use count and offset to paginate the response.

Response

Response Header

ResponseTypeDescription
buildStringThe software release level of the API.
codeIntegerHTTP status code. See the status field for the text part of the code.
durationIntegerServer processing time in milliseconds. The difference between startTime and endTime.
endTimeStringWhen the server sent the response (UTC time).
messagesMessage [ ]Elements of a multiple HTTP response status message.
parametersparametersList of the parameters included in the request.
parentIdsparentIdsAll of the IDs for the requested object that are recognized by the API.
serverNameStringName of the server that processed the request.
startTimeStringWhen the server received the request (UTC time).
statusStringText part of the HTTP status code that is shown in the code field.
viewviewSummary of items returned in a list of items.

Response for Album/Releases

ResponseTypeDescription
releases AlbumRelease [ ] Information about releases of the album specified in the request.

JSON Response Example

Here's the response to Request Example 2. It is formatted with extra spaces and carriage returns to make it easy to read.
{
  "status":"ok",
  "code":200,
  "messages":null,
  "build":"1.5.1.9",
  "parameters":{
    "apiKey":"apikey",
    "id":"MW0000111184",
    "offset":0,
    "count":2
  },
  "view":{
    "offset":0,
    "count":2,
    "total":14
  },
  "serverName":"tul1cssw4",
  "startTime":"2011-04-27T22:01:40.5201213Z",
  "endTime":"2011-04-27T22:01:40.5201213Z",
  "duration":0,
  "parentIds":{
    "albumId":"MW0000111184",
    "amgPopId":"R  104727"
  },
  "releases":[
    {
      "ids":{
        "albumId":"MW0000111184",
        "amgClassicalId":null,
        "amgPopId":null,
        "eanId":null,
        "releaseId":"MR0001940589",
        "upcId":"4988006843196"
      },
      "title":"Birth of the Cool",
      "label":"Toshiba EMI",
      "format":"CD",
      "releaseDate":"",
      "isMain":false,
      "isPurchasable":false
    },
    {
      "ids":{
        "albumId":"MW0000111184",
        "amgClassicalId":null,
        "amgPopId":"R  2031502",
        "eanId":null,
        "releaseId":"MR0003195545",
        "upcId":"3661585132691"
      },
      "title":"Birth of the Cool",
      "label":"Makin Friends",
      "format":"CD",
      "releaseDate":"1963-??-??",
      "isMain":false,
      "isPurchasable":false
    }
  ]
}

XML Response Example

Here's an XML response to Request Example 2.
<AlbumReleases xmlns="com.rovicorp.metadataservice" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <status>ok</status>
  <code>200</code>
  <messages i:nil="true"/>
  <build>1.5.1.9</build>
  <parameters>
    <apiKey>apikey</apiKey>
    <id>MW0000111184</id>
    <offset>0</offset>
    <count>2</count>
    <format>xml</format>
  </parameters>
  <view>
    <offset>0</offset>
    <count>2</count>
    <total>14</total>
  </view>
  <serverName>tul1cssw2</serverName>
  <startTime>2011-04-27T22:01:51.5300808Z</startTime>
  <endTime>2011-04-27T22:01:51.5300808Z</endTime>
  <duration>0</duration>
  <parentIds>
    <albumId>MW0000111184</albumId>
    <amgPopId>R 104727</amgPopId>
  </parentIds>
  <releases>
    <AlbumRelease>
      <ids>
        <albumId>MW0000111184</albumId>
        <amgClassicalId i:nil="true"/>
        <amgPopId i:nil="true"/>
        <eanId i:nil="true"/>
        <releaseId>MR0001940589</releaseId>
        <upcId>4988006843196</upcId>
      </ids>
      <title>Birth of the Cool</title>
      <label>Toshiba EMI</label>
      <format>CD</format>
      <releaseDate/>
      <isMain>false</isMain>
      <isPurchasable>false</isPurchasable>
    </AlbumRelease>
    <AlbumRelease>
      <ids>
        <albumId>MW0000111184</albumId>
        <amgClassicalId i:nil="true"/>
        <amgPopId>R 2031502</amgPopId>
        <eanId i:nil="true"/>
        <releaseId>MR0003195545</releaseId>
        <upcId>3661585132691</upcId>
      </ids>
      <title>Birth of the Cool</title>
      <label>Makin Friends</label>
      <format>CD</format>
      <releaseDate>1963-??-??</releaseDate>
      <isMain>false</isMain>
      <isPurchasable>false</isPurchasable>
    </AlbumRelease>
  </releases>
</AlbumReleases>


See Also

Rovi Music

↑ Top

Personal tools