1001Tracklists track media links
Every player link of a track: YouTube, Spotify, Apple Music, Beatport, SoundCloud, Deezer and others. Each: id, type (audio or video), platform, player id, link, embed link, duration, account, who added it. Takes the track_num_id the chart, search, tracklist and track endpoints return. A track without links answers an empty list.
Every response includes credits_used: the credits this call cost.
Part of the 1001Tracklists API: 14 endpoints with prices, use cases and example responses.
Parameters
| name | type | description |
|---|---|---|
track_num_idrequired | integer | The numeric track id other endpoints return as track_num_id, e.g. 1194883. Example: 1194883 |
Every endpoint also takes fresh, raw, fields (see lean responses and caching).
Example
curl "https://api.api.sh/1001tracklists/v1/track-media?track_num_id=1194883" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/1001tracklists/v1/track-media",
params={"track_num_id": "1194883"},
headers={"x-api-key": os.environ["APISH_KEY"]},
timeout=120,
)
res.raise_for_status()
data = res.json() const url = new URL("https://api.api.sh/1001tracklists/v1/track-media");
url.searchParams.set("track_num_id", "1194883");
const res = await fetch(url, { headers: { "x-api-key": process.env.APISH_KEY } });
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const data = await res.json(); Response
A JSON object with the fields described above, plus raw (the source's own data), cached, fetched_at and credits_used. Errors return {"success": false, "error": "…"} with the HTTP status (see errors). A lookup that ran but found nothing (404) costs the price above; refused calls and errors on our side are free (what's charged).
Example response (real call, trimmed: lists cut to 2 items, long text shortened, raw left out)
{"track_num_id": 1194883,"count": 4,"media": [{"id": 5582943,"type": "audio","platform": "beatport","player_id": "30785451","url": "https://www.beatport.com/track/-/30785451","embed_url": "https://embed.beatport.com/?id=30785451&type=track&a_aid=6871a9eb0c75a","duration_seconds": 295,"account": "three-six-zero-recordings","added_by": {"name": "Djsneaks","url": "https://www.1001tracklists.com/user/djsneaks/index.html"},"views": null,"deleted": false},{"id": 5605608,"type": "audio","platform": "apple_music","player_id": "6812546587","url": "https://embed.music.apple.com/us/album/danger-danger/6812546255?i=6812546587&app=music&at=1000lwkw","embed_url": "https://embed.music.apple.com/us/album/danger-danger/6812546255?i=6812546587&app=music&at=1000lwkw","duration_seconds": 180,"account": null,"added_by": null,"views": null,"deleted": false},"… 2 more"],"cached": false,"credits_used": 1}