Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fetching multiple tracks by ID #363

Open
aadi219 opened this issue Feb 4, 2025 · 1 comment
Open

Fetching multiple tracks by ID #363

aadi219 opened this issue Feb 4, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@aadi219
Copy link

aadi219 commented Feb 4, 2025

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.

@mgoodfellow
Copy link

Hi,

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.

@dpreussler dpreussler added the enhancement New feature or request label Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants