Skip to main content

Song Browse

Song Browse

This page lists the filters and sorts the song browse accepts. Refer to the main Api Browse methods page for how to send them.

API methods using this browse

album_disk_songs, album_songs, artist_songs, browse, genre_songs, license_songs, songs

Available browse filters

Send filters in the cond parameter as filter,value pairs, separated by ;

e.g. cond=starts_with,a;catalog,2

FilterValueDescription
add_gtUNIX timestampOnly songs added to the catalog at or after this time.
add_ltUNIX timestampOnly songs added to the catalog at or before this time.
albumalbum idOnly songs from this album.
album_diskalbum disk idOnly songs on this album disk.
alpha_matchstringAlias of like.
artistartist idOnly songs this artist is credited on, through artist_map.
catalogcatalog idOnly songs in this catalog. 0 is ignored rather than matching catalog zero, so it means every catalog.
catalog_enablednoneOnly songs in an enabled catalog. Needs no value.
diskintegerOnly songs on this disk number of their album.
enabled0 or 1Send 1 for enabled songs, 0 for songs disabled by a catalog clean.
equalstringThe song title is exactly this value. Matching is case insensitive.
exact_matchstringAlias of equal.
genregenre idOnly songs tagged with this genre.
idarrayOnly these song ids. It takes a list, which cond cannot send, so cond=id,1 builds an empty list and the browse returns nothing.
licenselicense idOnly songs released under this license.
likestringThe song title contains this value.
no_genrenoneOnly songs with no genre at all. Needs no value, and clears any genre filter.
no_tagnoneAlias of no_genre.
not_likestringThe song title does not contain this value.
not_starts_withstringThe song title does not start with this value.
regex_matchregexThe song title matches this MySQL regular expression. Setting it clears any regex_not_match filter.
regex_not_matchregexThe song title does not match this MySQL regular expression. Setting it clears any regex_match filter.
starts_withstringThe song title starts with this value.
taggenre idAlias of genre.
top50artist idOnly songs credited to this artist, joined to their play counts so a object_count sort can build a top 50.
unplayed1Only songs that have never been played. The value must be 1; anything else, including an empty value, is ignored.
update_gtUNIX timestampOnly songs whose tags were last updated at or after this time.
update_ltUNIX timestampOnly songs whose tags were last updated at or before this time.
user_catalognoneOnly songs in a catalog the current user is allowed to see. Needs no value.
user_flag0 or 1Send 1 for songs the current user has favourited, 0 for the ones they have not.
user_rating0 to 5Only songs the current user rated this value. Send 0 for songs they have not rated at all.

Available browse sorts

Send a single sort in the sort parameter as name,order, where order is ASC or DESC.

e.g. sort=name,DESC

SortDescription
addition_timeWhen it was added to the catalog.
albumAlbum name, then the song's own disk and track number.
album_diskAlbum name, then the album disk's number and the track number.
artistArtist name. This is the song artist, not the album artist.
catalogThe catalog id it belongs to.
composerComposer tag.
idThe song id, which is the order they were created in.
nameSong title.
object_countHow many times the songs have been played, counted per song.
randRandom order, applied per request. Paging through it repeats and skips songs, so ask for everything in one call.
ratingYour own rating, then when you set it. Songs you have not rated group together.
timeSong length in seconds.
titleAlias of name.
total_countHow many times it has been played.
total_skipHow many times it has been skipped.
trackTrack number.
update_timeWhen its tags were last updated.
user_flagWhen you added it to your favourites. This is a date, not a flag, so everything you have not favourited groups together.
user_flag_ratingWhen you added it to your favourites, then your rating.
userflagAlias of user_flag.
yearRelease year on the song tag.