Reputation: 838
How does the Soundcloud search api work? I searched some songs and I get some results but, I just searched the word DJ SNAKE and I get no result. Why is that?
The link I used:
https://api.soundcloud.com/tracks?client_id={myID}&q=DJ%20SNAKE
Then I searched the word dj snake from the SoundCloud search bar, I get a lot of result. Why?
Upvotes: 1
Views: 374
Reputation: 4185
(Posted as answer only for formatting)
This is interesting and looks like a bug to me.
First try it with linked_partitioning:
http://api.soundcloud.com/tracks.json?client_id={myID}&q=dj+snake&linked_partitioning=1
SoundCloud returns
{"collection":[],"next_href":"https://api.soundcloud.com/tracks.json?linked_partitioning=1&client_id={myID}&offset=10&q=dj%20snake&limit=10"}
If you follow the next_href you find a DJ Snake track result, with another next_href to the next one.
For some reason, first page is empty, and each linked partition has only 1 result. That's not right....
When I try another search, I get a full page of results, as expected.
http://api.soundcloud.com/tracks.json?client_id={myID}&q=black+crowes&linked_partitioning=1
Upvotes: 1