- Previous: Method: Book Search
- Up: Introduction
- Next: Method: Label Search
Method: Label Info
Request URL
The object is label and the action is info. The base request URL is:
http://api.emusic.com/label/info?apiKey=myKey&labelId=245110
Request ParametersFollowing is a list of required and optional query string parameters for the Label Info method. For more information about individual request parameters, see request parameters.
| Name | Required | Default | Description |
| apiKey | YES | none | The developer API key. This is required for all methods. |
| labelId | depends | none | The label ID. Either labelId or labelName must be included. |
| labelName | depends | none | The URL-encoded label name. Either labelId or labelName must be included. |
| exact | no | none | Used with artistName. When exact is set to "true", a method will only return label info if the label name exactly matches the labelName value. |
| format | no | XML | The format of the response (XML, JSON, JSONP). |
| callback | depends | none | The name of the JavaScript callback method for the JSONP format. (Required for JSONP responses only.) |
| fref | no | none | The eMusic partner tag. If provided, the FREF value is automatically added to all appropriate eMusic links. |
// Returns label info for label ID 245110.
http://api.emusic.com/label/info?apiKey=myKey&labelId=245110
// Returns label info for The Orchard.
http://api.emusic.com/label/info?apiKey=myKey&labelName=The+Orchard
Following is a list of returned elements for the Label Info method. For more information about individual response elements, see Response Elements.
| Name | Type | Returned | Description |
| status | status | always | Contains a result code. |
| messages | list | on error | Contains one or more messages. |
| options | options | on ok | Contains a list of method options. |
| label | label | on ok | Contains a <label> element with label info. See the example response below for typical label elements. |
(Only five elements are displayed in each list...)
<?xml version="1.0" encoding="UTF-8"?>
<response xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<status code="200">ok</status>
<options format="xml"/>
<label id="245110" name="Classical.com Music / The Orchard" url="http://www.emusic.com/label/Classical-com-Music-The-Orchard-MP3-Download/245110.html"/>
</response>
- Previous: Method: Book Search
- Up: Introduction
- Next: Method: Label Search
Docs Navigation
- Introduction
- Request Format
- Response Elements
- Result Codes
- Response Format
- Code Samples
- Branding Guidelines
- Method Index
- Request Parameters
- Method: Album Charts
- Method: Album Editorial
- Method: Album Info
- Method: Album Picks
- Method: Album Ratings
- Method: Album Reviews
- Method: Album Search
- Method: Artist Charts
- Method: Artist Editorial
- Method: Artist Info
- Method: Artist Picks
- Method: Artist Ratings
- Method: Artist Related
- Method: Artist Search
- Method: Book Charts
- Method: Book Editorial
- Method: Book Info
- Method: Book Ratings
- Method: Book Reviews
- Method: Book Search
- Method: Label Info
- Method: Label Search
- Method: Track Charts
- Method: Track Search
0 Comments
Please sign in to post a comment.