Skip to main content
POST
/
api
/
discogs
/
masters
/
versions
/discogs/masters/versions
curl --request POST \
  --url https://api.anysite.io/api/discogs/masters/versions \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "master": "<string>",
  "count": 2,
  "timeout": 300,
  "sort": "released",
  "sort_order": "asc"
}
'
[
  {
    "id": 123,
    "title": "<string>",
    "@type": "@discogs_master_version",
    "label": "<string>",
    "country": "<string>",
    "format": "<string>",
    "major_formats": [],
    "catno": "<string>",
    "released": "<string>",
    "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
master
string
required

Discogs master ID (e.g. '96559') or full master URL

Minimum string length: 1
Examples:

"96559"

"https://www.discogs.com/master/96559"

count
integer
required

Max number of versions to fetch

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

Max scrapping execution timeout (in seconds)

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

Field to sort by (e.g. released, title, format, label, country)

Example:

"released"

sort_order
string | null

Sort direction: asc or desc

Example:

"asc"

Response

Successful Response

id
integer
required
title
string
required
@type
string
default:@discogs_master_version
label
string | null
country
string | null
format
string | null
major_formats
string[]
catno
string | null
released
string | null
image
string | null
wantlist_count
integer
default:0
collection_count
integer
default:0