A Mixcloud creator's playlists
A creator's public playlists (name, slug, link, owner). Open one with /mixcloud/v1/playlist. Pass next_cursor back as cursor for the next page; null on the last page.
Every response includes credits_used: the credits this call cost.
Part of the Mixcloud API: 17 endpoints with prices, use cases and example responses.
Parameters
| name | type | description |
|---|---|---|
usernamerequired | string | Mixcloud username or profile link. Example: spartacus |
limit | integer | Results per page, 1-50 (default 20). |
cursor | string | next_cursor from the previous page; null on the last page. |
Every endpoint also takes fresh, raw, fields (see lean responses and caching).
Example
curl "https://api.api.sh/mixcloud/v1/user/playlists?username=spartacus" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/mixcloud/v1/user/playlists",
params={"username": "spartacus"},
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/mixcloud/v1/user/playlists");
url.searchParams.set("username", "spartacus");
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)
{"username": "spartacus","playlists": [{"slug": "jazz","name": "Jazz","url": "https://www.mixcloud.com/spartacus/playlists/jazz/","owner": {"username": "spartacus","name": "Spartacus","url": "https://www.mixcloud.com/spartacus/","picture": "https://thumbnailer.mixcloud.com/unsafe/600x600/profile/2/7/9/e/c70a-cdba-4fb6-a57d-c16f5520fdc9"}},{"slug": "house-party","name": "House Party","url": "https://www.mixcloud.com/spartacus/playlists/house-party/","owner": {"username": "spartacus","name": "Spartacus","url": "https://www.mixcloud.com/spartacus/","picture": "https://thumbnailer.mixcloud.com/unsafe/600x600/profile/2/7/9/e/c70a-cdba-4fb6-a57d-c16f5520fdc9"}},"… 8 more"],"count": 10,"next_cursor": null,"title": "Spartacus's playlists","cached": false,"credits_used": 1}