fr
 

Differences from Musiclist2ApiUsefulQueries:10 (red) to Musiclist2ApiUsefulQueries:11 (green)

You can rollbackto Musiclist2ApiUsefulQueries:10
**jamendo.get2** : [[Musiclist2Api|Home]] | [[Musiclist2ApiTutorial|Crash course]] | [[Musiclist2ApiUsefulQueries|Useful queries]] | [[Musiclist2ApiFormats|Formats]] | [[Musiclist2ApiParameters|Parameters]] | [[Musiclist2ApiFields|Fields]] | [[Musiclist2ApiOrders|Orders]] | [[Musiclist2ApiJoins|Joins]]

== Useful queries ==

These examples mostly use the **jsonpretty** return format, please note that it should be used for debugging purposes only. The **json** return format is equivalent but much more efficient. See [[Musiclist2ApiFormats]]

=== Get the 50 most popular albums in the "rock" tag ===

* http://api.jamendo.com/get2/id+name+url+image+artist_name/album/jsonpretty/?tag_idstr=rock&n=50&order=rating_desc

=== Get the cover of the album 116, in 200x200 ===

* http://api.jamendo.com/get2/image/album/redirect/?id=116&imagesize=200

=== Get the list of the starred albums of the user "sylvinus" ===

* http://api.jamendo.com/get2/id+name+url+image+artist_name/album/jsonpretty/album_user_starred/?user_idstr=sylvinus&n=all

=== Get the list of the friends of the user "sylvinus" ===

* http://api.jamendo.com/get2/id+idstr+image/user/jsonpretty/user_user2_friend/?user2_idstr=sylvinus&n=all

=== Get the streaming files for the track 241 ===

* http://api.jamendo.com/get2/stream/track/redirect/?id=241&streamencoding=mp31 (mp3 128k)
* http://api.jamendo.com/get2/stream/track/redirect/?id=241&streamencoding=ogg2 (ogg vorbis q4)