AudiusProject / audius-protocol

The Audius Protocol - Freedom to share, monetize, and listen to any audio content.
https://docs.audius.org
Other
545 stars 106 forks source link

API: /playlists/search endpoint dose not return albums #8842

Open Funasitien opened 1 month ago

Funasitien commented 1 month ago

https://discoveryprovider.audius.co/v1/playlists/search?query=Funasitien only return albums, wheras https://discoveryprovider.audius.co/v1/full/search/full?query=Funasitien did return an album

But Funasitien, this is not the album endpoint, this is the playlist one!

The issue is there is no album endpoint existing. I belive that albums are also playslit, but are wrongly indexed (the is_album value exist in the playlist shema, sooo)

sliptype commented 1 month ago

Thanks for the report! You are correct that albums and playlists are both using the same schema. We refer to them as "collections" internally but haven't updated the api to reflect that.

I would recommend using the full search endpoint and using the albums field in the response. I'll create a ticket to fix the playlists/search endpoint!