Discogs artist releases

GET https://api.api.sh/discogs/v1/artist/releases
1 credit / call e-commerce try it in the playground →

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

nametypedescription
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"

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}
The fastest way to see the full response is the playground: it runs this endpoint with your account and shows the exact JSON.