Skip to main content
POST
/
api
/
discogs
/
artists
/
releases
/discogs/artists/releases
curl --request POST \
  --url https://api.anysite.io/api/discogs/artists/releases \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "artist": "<string>",
  "count": 2,
  "timeout": 300
}
'
[
  {
    "id": 123,
    "url": "<string>",
    "title": "<string>",
    "@type": "@discogs_artist_release",
    "type": "<string>",
    "role": "<string>",
    "artist": "<string>",
    "format": "<string>",
    "label": "<string>",
    "year": 123,
    "status": "<string>",
    "main_release": 123,
    "image": "<string>",
    "wantlist_count": 0,
    "collection_count": 0
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
artist
string
required

Discogs artist ID (e.g. '72872') or full artist URL

Minimum string length: 1
Examples:

"72872"

"https://www.discogs.com/artist/72872-Rick-Astley"

count
integer
required

Max number of releases to return

Required range: x >= 1
timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500
sort
enum<string> | null

Field to sort releases by

Available options:
year,
title,
format
sort_order
enum<string> | null

Sort direction

Available options:
asc,
desc

Response

Successful Response

id
integer
required
url
string
required
title
string
required
@type
string
default:@discogs_artist_release
type
string | null
role
string | null
artist
string | null
format
string | null
label
string | null
year
integer | null
status
string | null
main_release
integer | null
image
string | null
wantlist_count
integer
default:0
collection_count
integer
default:0