audius-protocol icon indicating copy to clipboard operation
audius-protocol copied to clipboard

API: /playlists/search endpoint dose not return albums

Open Funasitien opened this issue 1 year ago • 1 comments

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)

Funasitien avatar Jun 14 '24 13:06 Funasitien

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!

sliptype avatar Jun 14 '24 15:06 sliptype