Discogs artist
An artist: name, real name, profile text, name variations, aliases, group members or the groups the artist belongs to, and links.
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 |
Every endpoint also takes fresh, raw, fields (see lean responses and caching).
Example
curl "https://api.api.sh/discogs/v1/artist?id=125246" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/discogs/v1/artist",
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");
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)
{"id": 125246,"name": "Nirvana","real_name": null,"profile": "Rock/grunge band from Aberdeen, Washington, USA, formed in 1987. Emerging from the Seattle grunge scene of the late 1980s/early 1990s, Nirva…","name_variations": ["Nervana","Nirvahna","… 4 more"],"aliases": [{"id": 11962655,"name": "Skid Row (6)","resource_url": "https://api.discogs.com/artists/11962655"},{"id": 11962658,"name": "Bliss (108)","resource_url": "https://api.discogs.com/artists/11962658"},"… 2 more"],"members": [{"id": 203017,"name": "Dave Grohl","resource_url": "https://api.discogs.com/artists/203017","active": true},{"id": 251654,"name": "Chad Channing","resource_url": "https://api.discogs.com/artists/251654","active": false},"… 8 more"],"groups": [],"urls": ["https://www.nirvana.com","https://www.facebook.com/Nirvana","… 5 more"],"data_quality": "Needs Vote","url": "https://www.discogs.com/artist/125246-Nirvana","cached": false,"credits_used": 1}