This simple API allows you to fetch any data related to the music on jamendo. It is read-only.
Things you can query with this API : albums, artists, tracks, users, tags, playlists, reviews, ...
http://www.jamendo.com/get/album/name/artist/page/plain/both/
http://www.jamendo.com/get/album/id/album/title/plain/116/
http://www.jamendo.com/get/album/id/track/page/plain/2000/
http://www.jamendo.com/get/track/id/album/audio/plain/33/
http://www.jamendo.com/get/track/id/album/audio/play/33/
http://www.jamendo.com/get/track/id/track/audio/xspf/2000+2001/
http://www.jamendo.com/get/album/name/tag/page/plain/rock+pop/?n=47&o=release_date_desc
http://www.jamendo.com/get/album/id/album/data/json/116+33/?ali=info_common
http://www.jamendo.com/get/album/list/album/id/plain/?n=all&o=id_asc
http://www.jamendo.com/get/album/list/album/page/rss2/?o=release_date_desc&cani=c
http://www.jamendo.com/get/album/id/album/artworkurl/redirect/116/?artwork_size=400
http://www.jamendo.com/get/album/name/tag/page/plain/rock/?n=all
http://www.jamendo.com/get/tag/id/album/name/plain/33/?item_o=weight_desc
todo, more examples.
TARGETUNIT is the type of the items you will get back. Valid values are :
For instance, when loading a playlist, TARGETUNIT will be "track". But if you want to find all the artists that meet some criteria, it will be "artist".
LOADMETHOD is the method we'll use to load the data. Valid values are :
For instance, with "id" you'll have to give a list of IDs you want to load, with "search" you'll have to give a search term, and with "recom" you'll get the music recommendations for the current user. More on this in the "Details" section.
PARAMUNIT is the unit of the parameters you use. Valid values :
PARAMUNIT is different from TARGETUNIT. It's the unit of the parameters you use. For instance, you can get the albums of an artist with TARGETUNIT=album and PARAMUNIT=artist (provided you give the artist name). Or you can see which album a track is from with PARAMUNIT=track and ITEMUNIT=album.
TARGET can be any of :
Target is the content you are looking for. For a list of IDs use TARGET=id. For a playlist use TARGET=audio.
FORMAT is the format of the data you want. Valid values are :
That's a big list of formats and we're looking forward to get your ideas on new ones.
There are 3 different types of IDs on jamendo :
Examples of id / name / dispname :
Primary params are parameters present in the path of the request. PARAMUNIT, LOADTYPE, etc... are primary params. Other primary params can be necessary with some options. We'll detail them below.
Secondary params are present in the query. They have no specific order and are a key/value pair. For instance, "order=release_date_desc" and "tag=ambient" are secondary params. They will be used in a request like this one :
http://www.jamendo.com/get/album/list/album/page/plain/?order=release_date_desc&tag=ambient
Any application implementing this API should be ready to follow HTTP redirections.
The valid values for the secondary params "aue" and "are" are :
Please note that currently you can only use the lowfi for streaming and the hifi in the P2P archives.
There are a few dead ends in the API. For instance, you can't use TARGETUNIT=artist and TARGET=p2p, because we don't have per-artist archives. With TARGET=p2p currently you must use TARGET=album.
Same thing for TARGET=audio.. TARGETUNIT must be "track".
You can query the Music API with XMLRPC at this address : http://www.jamendo.com/xmlrpc/
There is only one method : '''array jamendo.get(string primaryparams, struct secondaryparams)'''
Please set TARGET to "xmlrpc". you can test queries in your brower with this format, too.
For instance, a query to : http://www.jamendo.com/get/track/id/album/audio/xmlrpc/33+45/?audio_encoding=ogg2
translates to this XMLRPC request : '''jamendo.get("track/id/album/audio/xmlrpc/33+45/",{"audio_encoding":"ogg2"})'''
In this section we'll highlight several interesting options that require some additional parameters.
Use this option to get data associated to IDs you already know. Several IDs can be fetched in a new primary param, separated by "+" (equivalent to spaces in the urls)
For instance, if you want to get the albums of the groups with ids "both" and "triface" :
http://www.jamendo.com/get/album/id/artist/page/plain/both+triface/
This one is the most complicated. Use it to get a list of data with some optional secondary params :
Use this to get the music recommendations for the user currently logged. You'll need to use the jamendo cookie authentification. It adds a "n=xx" secondary parameter where xx is the number of recommendations you want to fetch.
This is an alias for LOADTYPE=list with a secondary param tag=xxx.
For instance,
http://www.jamendo.com/get/album/tag/album/page/plain/electronica
is the same as
http://www.jamendo.com/get/album/list/album/page/plain/?tag=electronica
This will target to our http audio files. It adds the secondary param "aue=xxx" where xxx is the name of the audio encoding (see above).
This will target our P2P archives. It will point to to a torrent file or to an ed2k link. It adds the secondary params "p2pnet" and "are".
"p2pnet" can be "torrent" (default) or "ed2k".
"are" is the archive audio encoding. (see formats above)
This will target the cover of an album/track. TODO artist images. It adds the secondary params "artwork_size" and "artwork_id".
"artwork_size" is an integer (the covers are available for 70,100,130,200,300,400, etc.... if you want a custom one mail us.)
todo
This one is an alias for the default playlist format of the currently logged user. It defaults to "m3u". It is widely used on the jamendo.com website.
One to One : ------ One to Many : -----* Many to Many : ----
Concert ----- Artist ----- User
Review ---- Album ------ Tag ------- User
| * |
User | |
</pre>