Get most listened tracks ordered by 2 tags

54 views
Skip to first unread message

vadim kulibaba

unread,
Dec 5, 2012, 11:37:59 AM12/5/12
to jamen...@googlegroups.com
Hi all.

I want develop some radio by genres for android based on jamendo.

For this purpose i need tracks ordered by tag ebm AND darkwave for example

Website may do it cute well, some example: http://www.jamendo.com/en/search#qs=q=darkwave%20AND%20tags_idstr:%22ebm%22
all tracks have tag ebm AND darkwave and well ordered (by popularity)

May i have same or very similar result with API?

I try do it with this way:
http://api.jamendo.com/ru/?m=get2&m_params=track_listened+id3genre+track_genre+artist_genre+album_genre+id+name+stream+artist_id+artist_name%2Ftrack%2Fjsonpretty%2Ftrack_album+album_artist%2F&n=50&order=listened&tag_idstr=ebm+darkwave

and result is not similar to website(

- only 1 tag work
- sort order wrong
- no way to see track_listened
Help, pls

Claudio Ortelli

unread,
Dec 11, 2012, 4:46:35 AM12/11/12
to jamen...@googlegroups.com, vadim.k...@gmail.com
Hi Vadim,

sorry, I was almost missing to answer you...

Search by multiple tags... good question!

First of all, take into account that we are developing a brand new api, and one of the big enhancements is exactly on the search by tags: there will be full support for multiple tags boolean and fuzzy search, some synonymity and hierarchy, nested tags entity, highlighting, etc... If you can wait few months you'll get all of this!

However, search by multiple tags is somehow supported also by the old get2 api. You just missed the "tagmatchingweight_desc" order value in your query. Look to this one, it should be what you need.

http://api.jamendo.com/get2/artist_genre+album_genre+id+name+stream+artist_id+artist_name+tag_idstr+stats/track/jsonpretty/track_album+album_artist?n=50&order=tagmatchingweight_desc+listened_desc&tag_idstr=ebm+darkwave

As you can see there's also the "stats" select part to give you back the listens and downloads count.

Note that even if possible to put "tag_isdtr" in the select part of the query, it will return just one tag. That's a limitation due to the underneath implementation (nb, it won't be like that in new api), but as you can see, the (at the moment) first returned track has actually the 2 tags you were querying for:

http://api.jamendo.com/get2/track_name+track_id+tag_idstr/track/jsonpretty/track_tag+track_album+album_artist?id=248928


Have a good programming!

Claudio

Asad zoobiapps

unread,
Oct 22, 2020, 5:26:34 AM10/22/20
to jamendo-dev
Hii I want to know how to get homepage of jamendo ? we can get tracks albums artists etc but want to know how can i make 1 request for home screen then all the data for albums and playlists and artists
Reply all
Reply to author
Forward
0 new messages