Data/music-api/v1.1/release/images

Jump to: navigation, search

Release/Images

Returns URLs to pictures of the album release along with associated image information. Note: Access to images is governed by your subscription level and geographical location.

IMPORTANT: Photography credits must be displayed with images.

Syntax

release/images? eanid=eanid
upcid=upcid
amgpopid=amgpopid
releaseid=releaseid
amgclassicalid=amgclassicalid
&apikey=apikey&sig=sig [&format=format] [&country=country] [&language=language] [&formatid=formatid] [&imagecount=imagecount] [&imageoffset=imageoffset] [&imagesize=imagesize] [&imagesort=imagesort]

Request Example 1

Request images of a release of the album Thriller.

Request Example 2

Request only images that are in the range of 60 to 80 pixels in both dimensions.

Request Example 3

Request images in an XML response.

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

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:

  • eanid
  • upcid
  • releaseid   
  • 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:

  • eanid
  • upcid
  • releaseid   
  • amgpopid
  • amgclassicalid
eanid Conditional The numbers from the EAN barcode that identifies the release.

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

  • eanid
  • upcid
  • releaseid   
  • amgpopid
  • amgclassicalid
releaseid Conditional Rovi Music ID for the release, consisting of the prefix MR followed by a ten-digit number. Your application can grab release IDs from responses to the following requests:

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

  • eanid
  • upcid
  • releaseid   
  • amgpopid
  • amgclassicalid
upcid Conditional The numbers from the barcode that identifies a music release:
  • 14 digits for music downloads
  • Fewer than 14 digits for CDs, DVDs, and other physical products

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

  • eanid
  • upcid
  • releaseid   
  • amgpopid
  • amgclassicalid
country No Country the language parameter applies to. The current release of the API supports only US.
format No Format of the returned data: json or xml. The default is JSON.
formatid No Size and file format of returned images. Select the format IDs you want from the Format IDs table.

Specify multiple format IDs in a comma-separated list, like this: formatid=36,44,51.

If you also specify imagesize, returned images meet a combination of one formatid and one imagesize filter.

imagecount No Number of images to be returned. If fewer images are available, the available images are returned without error. The default is 25.

Use imagecount and imageoffset to paginate the response.

imageoffset No Number of images at the start of the response to skip. The default is zero.

Use imagecount and imageoffset to paginate the response. These parameters execute last, after any filtering and sorting parameters.

imagesize No Image sizes to be returned. Images are not dynamically resized to fit, so only available sizes are returned.
  • Specify an exact size in width x height format, like this: imagesize=332x419.
  • Specify a size range in width x height format, like this: imagesize=60-80x80-100.
  • Specify multiple sizes in a comma-separated list, like this: imagesize=332x419,60-80x80-100.

If you also specify formatid, returned images meet a combination of one formatid and one imagesize filter.

imagesort No Sort order of returned images. Images can be sorted in ascending or descending order by the following properties:
  • width
Image width.
  • height
Image height.
  • formatid
Image format ID, as shown in the Format IDs table.
  • author
Person or company that took the photo.
  • copyrightowner  
Company that owns the image copyright.
  • url
URL to the image (ASCII sort).

Specify a descending sort order with a minus (-) sign, like this: imagesort=-width.
Specify a multilevel sort in highest-to-lowest order in a comma-separated list, like this: imagesort=formatid,-height,width.

Note: A request cannot include both the multi and imagesort parameters.

language No Language of the response data. This request supports only en (English).

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.
parametersparametersThe parameters that were 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, which is shown in the code field.

Response for Release/Images

ResponseTypeDescription
images images URLs to cover images of the release specified in the request.

JSON Response Example

Here's the response to Request Example 1, which asks for images of a release of the album Thriller. The response is formatted with extra spaces and carriage returns to make it easy to read.
Requested with http://api.rovicorp.com/data/v1.1/release/images?apikey=apikey&sig=sig&
releaseid=MR0000500873
.
{
  "status":"ok",
  "code":200,
  "messages":null,
  "build":"1.5.1.9",
  "parameters":{
    "apiKey":"apikey",
    "id":"MR0000500873"
  },
  "serverName":"tul1cssw2",
  "startTime":"2011-04-28T01:19:42.3873038Z",
  "endTime":"2011-04-28T01:19:42.4029289Z",
  "duration":15,
  "parentIds":{
    "albumId":"MW0000056882",
    "amgPopId":"R   10089",
    "releaseId":"MR0000500873",
    "upcId":"074643811224"
  },
  "images":{
    "front":[
      {
        "height":73,
        "width":75,
        "formatid":71,
        "url":"http://actual-url-concealed.jpg",
        "author":null,
        "copyrightOwner":null
      },
      {
        "height":167,
        "width":170,
        "formatid":63,
        "url":"http://actual-url-concealed.jpg",
        "author":null,
        "copyrightOwner":null
      },
      {
        "height":246,
        "width":250,
        "formatid":44,
        "url":"http://actual-url-concealed.jpg",
        "author":null,
        "copyrightOwner":null
      },
      {
        "height":393,
        "width":400,
        "formatid":64,
        "url":"http://actual-url-concealed.jpg",
        "author":null,
        "copyrightOwner":null
      },
      {
        "height":492,
        "width":500,
        "formatid":16,
        "url":"http://actual-url-concealed.jpg",
        "author":null,
        "copyrightOwner":null
      },
      {
        "height":1063,
        "width":1080,
        "formatid":62,
        "url":"http://actual-url-concealed.jpg",
        "author":null,
        "copyrightOwner":null
      }
    ],
    "back":[ ]
  }
}

XML Response Example

Here's the response to Request Example 3, which asks for images of a release of the album Thriller in an XML response.
Requested with http://api.rovicorp.com/data/v1.1/release/images?apikey=apikey&sig=sig&
releaseid=MR0000500873&format=xml
.
<ReleaseImages 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>MR0000500873</id>
    <format>xml</format>
  </parameters>
  <serverName>tul1cssw1</serverName>
  <startTime>2011-04-28T01:19:54.2489987Z</startTime>
  <endTime>2011-04-28T01:19:54.2489987Z</endTime>
  <duration>0</duration>
  <parentIds>
    <albumId>MW0000056882</albumId>
    <amgPopId>R 10089</amgPopId>
    <releaseId>MR0000500873</releaseId>
    <upcId>074643811224</upcId>
  </parentIds>
  <images>
    <front>
      <Image>
        <height>73</height>
        <width>75</width>
        <formatid>71</formatid>
        <url>http://actual-url-concealed.jpg</url>
        <author i:nil="true"/>
        <copyrightOwner i:nil="true"/>
      </Image>
      <Image>
        <height>167</height>
        <width>170</width>
        <formatid>63</formatid>
        <url>http://actual-url-concealed.jpg</url>
        <author i:nil="true"/>
        <copyrightOwner i:nil="true"/>
      </Image>
      <Image>
        <height>246</height>
        <width>250</width>
        <formatid>44</formatid>
        <url>http://actual-url-concealed.jpg</url>
        <author i:nil="true"/>
        <copyrightOwner i:nil="true"/>
      </Image>
      <Image>
        <height>393</height>
        <width>400</width>
        <formatid>64</formatid>
        <url>http://actual-url-concealed.jpg</url>
        <author i:nil="true"/>
        <copyrightOwner i:nil="true"/>
      </Image>
      <Image>
        <height>492</height>
        <width>500</width>
        <formatid>16</formatid>
        <url>http://actual-url-concealed.jpg</url>
        <author i:nil="true"/>
        <copyrightOwner i:nil="true"/>
      </Image>
      <Image>
        <height>1063</height>
        <width>1080</width>
        <formatid>62</formatid>
        <url>http://actual-url-concealed.jpg</url>
        <author i:nil="true"/>
        <copyrightOwner i:nil="true"/>
      </Image>
    </front>
    <back/>
  </images>
</ReleaseImages>


See Also

↑ Top

Personal tools