Discogs artist releases
An artist's discography: masters and releases with role (Main, Appearance, Remix, Producer...), year, format, label and have/want counts. Sort by year, title or format. Pass next_page back as page; null on the last page.
Every response includes credits_used: the credits this call cost.
Part of the Discogs API: 13 endpoints with prices, use cases and example responses.
Parameters
| name | type | description |
|---|---|---|
idrequired | string | Artist id or a discogs.com/artist/<id> link. Example: 125246 |
sort | year | title | format | Sort field. |
order | asc | desc | Sort order. |
limit | integer | Results per page (1-100, default 50). |
page | integer | Page number (1-based). |
Every endpoint also takes fresh, raw, fields (see lean responses and caching).
Example
curl "https://api.api.sh/discogs/v1/artist/releases?id=125246" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/discogs/v1/artist/releases",
params={"id": "125246"},
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/discogs/v1/artist/releases");
url.searchParams.set("id", "125246");
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)
{"artist_id": 125246,"page": 1,"per_page": 50,"total": 2255,"total_pages": 46,"next_page": 2,"count": 50,"releases": [{"id": 155876,"type": "master","title": "Love Buzz b/w Big Cheese","artist": "Nirvana","role": "Main","year": 1988,"format": null,"label": null,"main_release": 392900,"stats": {"community": {"in_wantlist": 4165,"in_collection": 463}},"url": "https://www.discogs.com/master/155876"},{"id": 4120876,"type": "master","title": "Nirvana","artist": "Nirvana","role": "Main","year": 1988,"format": null,"label": null,"main_release": 32495904,"stats": {"community": {"in_wantlist": 497,"in_collection": 17}},"url": "https://www.discogs.com/master/4120876"},"… 48 more"],"cached": false,"credits_used": 1}