get_video
Get a list of video documents found on the web related to an artist.
Input Parameters
| Name | Required | Multiple | Data Type | Description |
|---|---|---|---|---|
| version | yes | no | String | The API version you are calling: '3' |
| context | optional | no | Context | A free-form identifier for the request |
| api_key | yes | no | API Key | Your Echo Nest API Key |
| id | yes | no | Identifier | An Echo Nest Identifier |
| start | optional | no | Integer | The row number to begin with |
| rows | optional | no | Integer <= 15 | Defaults to 15. The number of results to return |
Note: This method requires an HTTP GET request.
Example Response
<?xml version="1.0" encoding="UTF-8"?>
<response version="3">
<status>
<code>0</code>
<message>Success</message>
</status>
<query>
<parameter name="api_key">5ZAOMB3BUR8QUN4PE</parameter>
<parameter name="name">music://id.echonest.com/~/AR/ARH6W4X1187B99274F</parameter>
<parameter name="start">0</parameter>
<parameter name="rows">2</parameter>
</query>
<artist>
<name>Radiohead</name>
<id>music://id.echonest.com/~/AR/ARH6W4X1187B99274F</id>
</artist>
<results found="88" shown="2" start="0">
<doc id="1bbd537e754abd3b82210b70eb2767ca" type="video">
<site>youtube</site>
<title>Radiohead- Tell Me Why- Live Hollywood Bowl Neil Young 8-25</title>
<url>http://youtube.com/watch?v=kHIJcx9EB94</url>
<date_found>2008-11-02 16:32:27.001000</date_found>
</doc>
<doc id="63f31317e85bec3809a82bfc969c3337" type="video">
<site>myspace</site>
<title>Karma Police - Radiohead</title>
<url>http://vids.myspace.com/index.cfm?fuseaction=vids.individual&videoid=4938205</url>
<date_found>2008-11-02 16:32:27.001000</date_found>
<image_url>http://b2.ac-images.myspacecdn.com/01657/29/07/1657067092_thumb1.jpg</image_url>
</doc>
</results>
</response>
Other Formats
- Also available as a feed in rss, atom formats
- e.g. http://developer.echonest.com/artist/Modest+Mouse/video.rss
- e.g. http://developer.echonest.com/artist/Modest+Mouse/video.atom
Response Codes
| -1 | Unknown error |
| 0 | Success |
| 1 | Missing/Invalid API key |
| 2 | This API key is not allowed to call this method |
| 3 | Rate limit exceeded |
| 4 | Missing parameter |
| 5 | Invalid parmameter |

