Descriptor/SignificantArtists
Returns the current top artists in a musical genre, subgenre, or style. The list changes over time and, by design, is limited to a maximum of 100 results per genre, subgenre, or style.
Syntax
descriptor/significantartists?apikey=apikey&sig=sig&genreids=genreids [&format=format] [&offset=offset] [&count=count] [&country=country] [&language=language]
Request Example 1
- Request the top artists in the Children's and Stage & Screen genres.
Request Example 2
- Request the top artist in the Children's genre.
Request Example 3
- Request the number two artist in the Children's genre in an XML response.
Request Parameters
Click to re-sort
Parameter | Required | Description |
apikey | Yes | Access code that authorizes your request for data from Rovi. |
genreids | Yes | ID of the genre, subgenre, or style. You can get a complete list of IDs from Descriptor/MusicGenres. And you can pick up IDs from responses to the following calls:
To specify multiple IDs, use a comma-separated list, like this: genreids=MA0000002467,MA0000002944. |
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. |
count | No | Number of items to be returned. The default is zero, which returns all items after the offset. |
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. |
language | No | Language of the response data. This request supports only en (English). |
offset | No | Number of items at the start of the available data to skip. The default is zero.
Use count and offset to paginate the data that is available to be returned. |
Response
Response | Type | Description |
build | string | The software release level of the API. |
code | integer | HTTP status code. See the status field for the text part of the code. |
duration | integer | Server processing time in milliseconds. The difference between startTime and endTime. |
endTime | string | When the server sent the response (UTC time). |
messages | Message [ ] | Elements of a multiple HTTP response status message. |
parameters | parameters | The parameters that were included in the request. |
serverName | string | Name of the server that processed the request. |
startTime | string | When the server received the request (UTC time). |
status | string | Text part of the HTTP status code, which is shown in the code field. |
view | view | Summary of items returned in a list of items. |
Response for Descriptor/SignificantArtists
Response | Type | Description |
artists | SignificantArtist [ ] | Top artists in the genres, subgenres, or styles specified in the request. |
JSON Response Example
- Here's the response to Request Example 2, which asks for the top artist in the Children's genre. 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/descriptor/significantartists?apikey=apikey&sig=sig&
genreids=MA0000002944&count=1.
{
"status":"ok",
"code":200,
"messages":null,
"build":"1.5.1.9",
"parameters":{
"apiKey":"apikey",
"id":"MA0000004432"
"offset":0,
"count":1
},
"view":{
"offset":0,
"count":1,
"total":50
},
"serverName":"tul1cssw1",
"startTime":"2011-04-29T00:32:23.0279723Z",
"endTime":"2011-04-29T00:32:23.1060978Z",
"duration":78,
"artists":[
{
"genre":{
"id":"MA0000002944",
"name":"Children's"
},
"rank":124,
"id":"MN0000798086",
"name":"Ella Jenkins",
"active":[
"1950s",
"1960s",
"1970s",
"1980s",
"1990s"
],
"thumbnail":""
}
]
}
XML Response Example
- Here's the response to Request Example 3, which asks for the number two artist in the Children's genre. The response has been edited to reduce the length.
- Requested with http://api.rovicorp.com/data/v1.1/descriptor/significantartists?apikey=apikey&sig=sig&
genreids=MA0000002944&count=1&offset=1&format=xml.
<SignificantArtists 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>MA0000002944</id>
<offset>1</offset>
<count>1</count>
<format>xml</format>
</parameters>
<view>
<offset>1</offset>
<count>1</count>
<total>83</total>
</view>
<serverName>tul1cssw2</serverName>
<startTime>2011-04-29T00:32:04.5910907Z</startTime>
<endTime>2011-04-29T00:32:04.6692162Z</endTime>
<duration>78</duration>
<artists>
<SignificantArtist>
<genre>
<id>MA0000002944</id>
<name>Children's</name>
</genre>
<rank>124</rank>
<id>MN0000327331</id>
<name>Raffi</name>
<active xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<a:string>1970s</a:string>
<a:string>1980s</a:string>
<a:string>1990s</a:string>
<a:string>2000s</a:string>
</active>
<thumbnail>http://actual-url-concealed.jpg</thumbnail>
</SignificantArtist>
</artists>
</SignificantArtists>
See Also
-
↑ Top
-