You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Attempting to query the search endpoint https://api.soundcloud.com/tracks?ids=1,2,3.
I would like to be able to fetch multiple songs (which do not share a common query string) by their IDs in a single request rather than iteratively calling the /tracks/{trackId} endpoint for each track. This would make the process much easier without spamming the API with repeated calls.
Current Behavior: querying /tracks?ids=1,2,3 returns an empty collection. Desired Behavior: returns all tracks with specified ID in one collection.
The text was updated successfully, but these errors were encountered:
I actually investigated this on a previous issue: #286 (comment)
Would love for it to be solved at some point, but the issue was closed sadly after a user offered up an irrelevant solution and the tracker was closed for it.
The TL;DR:
It works (ish), but you have to request 10 or more tracks in one request (or at least that was the case when I was investigating a few months ago! However, some tracks were still oddly missing from the request.
Fetching multiple tracks by ID
Attempting to query the search endpoint
https://api.soundcloud.com/tracks?ids=1,2,3
.I would like to be able to fetch multiple songs (which do not share a common query string) by their IDs in a single request rather than iteratively calling the
/tracks/{trackId}
endpoint for each track. This would make the process much easier without spamming the API with repeated calls.Current Behavior: querying
/tracks?ids=1,2,3
returns an empty collection.Desired Behavior: returns all tracks with specified ID in one collection.
The text was updated successfully, but these errors were encountered: