Comments on a Mixcloud show
Listener comments on a show, newest first, with date and the commenter's username, display name, picture and profile link. 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 |
|---|---|---|
url | string | Show link, e.g. https://www.mixcloud.com/spartacus/party-time/ (or give username + slug). Example: https://www.mixcloud.com/spartacus/party-time/ |
username | string | Uploader's username (with slug, instead of url). |
slug | string | The show's slug from its link (with username). |
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/show/comments?url=https%3A%2F%2Fwww.mixcloud.com%2Fspartacus%2Fparty-time%2F" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/mixcloud/v1/show/comments",
params={"url": "https://www.mixcloud.com/spartacus/party-time/"},
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/show/comments");
url.searchParams.set("url", "https://www.mixcloud.com/spartacus/party-time/");
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)
{"show": "/spartacus/party-time/","comments": [{"key": "/comments/cr/64/1766/c26549605/","comment": "Hey ho!","created_at": "2024-01-18T11:17:57Z","user": {"username": "NeilMxCd","url": "https://www.mixcloud.com/NeilMxCd/"}},{"key": "/comments/cr/64/1766/c14833397/","comment": "Una de de las mejores canciones del mundo! :)","created_at": "2019-04-03T00:08:28Z","user": {"username": "myanza","url": "https://www.mixcloud.com/myanza/"}},"… 3 more"],"count": 5,"next_cursor": null,"title": "Comments for Party Time","cached": false,"credits_used": 1}