Discogs Search API Documentation Search the Discogs database for releases, masters, artists or labels. Each hit has its id, type, title, year, country, formats, labels, genres, styles, catalog number, barcodes, master id, page url and the community have and want counts. Filters narrow the hits on the Discogs side: every hit follows format, genre, style, year and country. Results are paged with page and per_page (up to 100). Discogs serves at most 10,000 hits per search: a page past that, or past the last page, answers 422 and is never page 1 again. Cover images are not in search hits: the release endpoint returns the images. Cost: 1 credit per successful search with hits. A search with no hit answers 200 and costs nothing.
Run this endpoint
Endpoint
Parameters
Start with the required fields, then add optional filters only when your use case needs them.
Runnable path
This endpoint has no required query parameters.
9 optional filters available.
string
Optional
Search text, up to 200 characters. Example: nirvana nevermind. Required unless you send at least one filter.
coffee shops
string
Optional
release, master, artist or label. Default: release.
example
string
Optional
Format filter, for example Vinyl, CD, Cassette or LP.
example
string
Optional
Genre filter, for example Rock or Electronic.
example
string
Optional
Style filter, for example Grunge or House.
example
integer
Optional
Four digit release year, for example 1991.
10
string
Optional
Country of release as Discogs names it, for example US, UK or Germany.
US
integer
Optional
Page number, starting at 1. Default: 1.
1
integer
Optional
Hits per page, 1 to 100. Default: 25.
10
Response Schema
Example response fields are illustrative; inspect the JSON before integrating.
Example response fields
Scan these fields before integrating.
data
meta
success
{
"data": {
"type": "release",
"query": "nirvana",
"results": [
{
"id": 7445961,
"url": "https://www.discogs.com/release/7445961-Nirvana-Nirvana",
"type": "release",
"year": 2015,
"title": "Nirvana - Nirvana",
"genres": [
"Rock"
],
"labels": [
"DGC",
"Sub Pop",
"Geffen Records",
"Geffen Records",
"Optimal Media GmbH"
],
"styles": [
"Grunge",
"Alternative Rock"
],
"country": "Europe",
"formats": [
"Vinyl",
"LP",
"Compilation",
"Reissue"
],
"barcodes": [
"6 02547 37878 1",
"602547378781",
"BIEM/SDRM",
"BF93390-01 A1 602547378781-A CB",
"BF93390-01 B1 602547378781-B CB"
],
"community": {
"have": 22846,
"want": 1802
},
"master_id": 42476,
"catalog_number": "0602547378781"
}
],
"pagination": {
"page": 1,
"pages": 1793,
"total": 3585,
"per_page": 2
}
},
"meta": {
"credits": 1,
"billable": true,
"endpoint_family": "search"
},
"success": true
}
Errors
Handle these documented responses before retrying or showing customer-facing failures.
Validation Error
A query parameter is missing or invalid. This response is not billable.
{
"errors": {
"q": [
"Send a search text q, or at least one filter: format, genre, style, year or country."
]
},
"message": "The request validation failed"
}Page Out Of Range
The page is past the last page or past the 10,000 hit limit of Discogs. This response is not billable.
{
"meta": {
"billable": false,
"retryable": false,
"endpoint_family": "search"
},
"error": {
"code": "PAGE_OUT_OF_RANGE",
"message": "This page is past the last page of the results. Discogs serves at most 10000 items per search."
},
"success": false
}Service Unavailable
Discogs could not be reached, refused the request or changed its answer. This response is not billable. Retry later.
{
"meta": {
"billable": false,
"retryable": true,
"endpoint_family": "search"
},
"error": {
"code": "UPSTREAM_UNAVAILABLE",
"message": "The Discogs API is temporarily unavailable. Please retry."
},
"success": false
}Generate Code with AI
Copy a ready-made prompt with all the endpoint details, parameters, and example responses. Paste it into ChatGPT, Claude, or any AI assistant to instantly generate working code.
Try It Live
Test this endpoint in our interactive playground with real data.