Genres and types filters not working in Soundcloud API?

你说的曾经没有我的故事 提交于 2019-12-03 22:17:32

i just found a solution, add q='*' in your query. it will return correct results for the genre.

but i'm not sure about created_at[from/to] and duration[from/to]

They haven't blogged about this change, but given that they're responding with 400 Client Error and the message "'q' parameter is required", it looks like you MUST supply a query now. (This is a new error that wasn't there a few days ago AFAIK).

I just tried passing an empty q parameter with a genre filter and it seemed to return appropriately filtered results.

Your sample code shows that you're passing a genre parameter instead of the plural genres parameter. Make sure your actual code uses the plural — Soundcloud's API silently ignores the singular, as I learned the hard way last week.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!