APIs / Apps and media / Discogs
1 credit per call2 endpoints14 datapointsChecked working 6 Dec 2026
Discogs API
Discogs API for release search, release details, sales statistics and marketplace listings as JSON, by condition and currency. From 1 credit per call.
{
"success": true,
"data": {
"query": "nirvana",
"type": "release",
"results": [
{
"id": 7445961,
"type": "release",
"title": "Nirvana - Nirvana",
"year": 2015,
"country": "Europe",
"url": "https://www.discogs.com/release/7445961-Nirvana-Nirvana",
"master_id": 42476,
"formats": [
"Vinyl",
"LP",
"Compilation"
],
"labels": [
"DGC",
"Sub Pop",
"Geffen Records"
],
"genres": [
"Rock"
],
"styles": [
"Grunge",
"Alternative Rock"
],
"catalog_number": "0602547378781",
"barcodes": [
"6 02547 37878 1",
"602547378781",
"BIEM/SDRM"
],
"community": {
"have": 22869,
"want": 1807
}
},
{
"id": 7802791,
"type": "release",
"title": "Nirvana - Nirvana",
"year": 2015,
"country": "US",
"url": "https://www.discogs.com/release/7802791-Nirvana-Nirvana",
"master_id": 42476,
"formats": [
"Vinyl",
"LP",
"Compilation"
],
"labels": [
"Geffen Records",
"Sub Pop",
"UMe"
],
"genres": [
"Rock"
],
"styles": [
"Grunge"
],
"catalog_number": "B0023396-01",
"barcodes": [
"602547378781",
"B0023396-01-A CB",
"B0023396-01-B CB"
],
"community": {
"have": 10779,
"want": 755
}
},
{
"id": 16208904,
"type": "release",
"title": "Nirvana - Nirvana",
"year": 2020,
"country": "US",
"url": "https://www.discogs.com/release/16208904-Nirvana-Nirvana",
"master_id": 42476,
"formats": [
"Vinyl",
"LP",
"Compilation"
],
"labels": [
"DGC",
"Walmart",
"Quality Record Pressings"
],
"genres": [
"Rock"
],
"styles": [
"Alternative Rock",
"Grunge",
"Acoustic"
],
"catalog_number": "B0032293-01",
"barcodes": [
"6 02507 20406 8",
"602507204068",
"B0023396-01-A CB [QRP logo]"
],
"community": {
"have": 8727,
"want": 1045
}
}
],
"pagination": {
"page": 1,
"per_page": 5,
"pages": 718,
"total": 3587
}
},
"meta": {
"endpoint_family": "search",
"request_id": "req_f4a3f35162d743d8b8c7d4e3009d6705",
"credits_charged": 1,
"credits_remaining": 1761
}
}Sample data
What one call returns
A recorded run of marketplace: the fields and shapes you will get, shortened to 3 items.
| # | idinteger | typestring | titlestring | yearinteger | countrystring | urlurl | master_idinteger | formatsstring[] | labelsstring[] | genresstring[] | stylesstring[] | catalog_numberstring | barcodesstring[] | communityobject |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 7445961 | release | Nirvana - Nirvana | 2015 | Europe | https://www.discogs.com/release/7445961-Nirvana-Nirvana | 42476 | [3 items] | [3 items] | [1 item] | [2 items] | 0602547378781 | [3 items] | {2 fields} |
| 2 | 7802791 | release | Nirvana - Nirvana | 2015 | US | https://www.discogs.com/release/7802791-Nirvana-Nirvana | 42476 | [3 items] | [3 items] | [1 item] | [1 item] | B0023396-01 | [3 items] | {2 fields} |
| 3 | 16208904 | release | Nirvana - Nirvana | 2020 | US | https://www.discogs.com/release/16208904-Nirvana-Nirvana | 42476 | [3 items] | [3 items] | [1 item] | [3 items] | B0032293-01 | [3 items] | {2 fields} |
[
{
"id": 7445961,
"type": "release",
"title": "Nirvana - Nirvana",
"year": 2015,
"country": "Europe",
"url": "https://www.discogs.com/release/7445961-Nirvana-Nirvana",
"master_id": 42476,
"formats": [
"Vinyl",
"LP",
"Compilation"
],
"labels": [
"DGC",
"Sub Pop",
"Geffen Records"
],
"genres": [
"Rock"
],
"styles": [
"Grunge",
"Alternative Rock"
],
"catalog_number": "0602547378781",
"barcodes": [
"6 02547 37878 1",
"602547378781",
"BIEM/SDRM"
],
"community": {
"have": 22869,
"want": 1807
}
},
{
"id": 7802791,
"type": "release",
"title": "Nirvana - Nirvana",
"year": 2015,
"country": "US",
"url": "https://www.discogs.com/release/7802791-Nirvana-Nirvana",
"master_id": 42476,
"formats": [
"Vinyl",
"LP",
"Compilation"
],
"labels": [
"Geffen Records",
"Sub Pop",
"UMe"
],
"genres": [
"Rock"
],
"styles": [
"Grunge"
],
"catalog_number": "B0023396-01",
"barcodes": [
"602547378781",
"B0023396-01-A CB",
"B0023396-01-B CB"
],
"community": {
"have": 10779,
"want": 755
}
},
{
"id": 16208904,
"type": "release",
"title": "Nirvana - Nirvana",
"year": 2020,
"country": "US",
"url": "https://www.discogs.com/release/16208904-Nirvana-Nirvana",
"master_id": 42476,
"formats": [
"Vinyl",
"LP",
"Compilation"
],
"labels": [
"DGC",
"Walmart",
"Quality Record Pressings"
],
"genres": [
"Rock"
],
"styles": [
"Alternative Rock",
"Grunge",
"Acoustic"
],
"catalog_number": "B0032293-01",
"barcodes": [
"6 02507 20406 8",
"602507204068",
"B0023396-01-A CB [QRP logo]"
],
"community": {
"have": 8727,
"want": 1045
}
}
]id,type,title,year,country,url,master_id,formats,labels,genres,styles,catalog_number,barcodes,community
7445961,release,Nirvana - Nirvana,2015,Europe,https://www.discogs.com/release/7445961-Nirvana-Nirvana,42476,"[""Vinyl"",""LP"",""Compilation""]","[""DGC"",""Sub Pop"",""Geffen Records""]","[""Rock""]","[""Grunge"",""Alternative Rock""]",0602547378781,"[""6 02547 37878 1"",""602547378781"",""BIEM/SDRM""]","{""have"":22869,""want"":1807}"
7802791,release,Nirvana - Nirvana,2015,US,https://www.discogs.com/release/7802791-Nirvana-Nirvana,42476,"[""Vinyl"",""LP"",""Compilation""]","[""Geffen Records"",""Sub Pop"",""UMe""]","[""Rock""]","[""Grunge""]",B0023396-01,"[""602547378781"",""B0023396-01-A CB"",""B0023396-01-B CB""]","{""have"":10779,""want"":755}"
16208904,release,Nirvana - Nirvana,2020,US,https://www.discogs.com/release/16208904-Nirvana-Nirvana,42476,"[""Vinyl"",""LP"",""Compilation""]","[""DGC"",""Walmart"",""Quality Record Pressings""]","[""Rock""]","[""Alternative Rock"",""Grunge"",""Acoustic""]",B0032293-01,"[""6 02507 20406 8"",""602507204068"",""B0023396-01-A CB [QRP logo]""]","{""have"":8727,""want"":1045}"Recorded from our API · 3 items shown · 14 datapoints per itemGET /v1/discogs/marketplace?release_id=249504&condition=near_mint¤cy=EUR&limit=10
14 datapoints
Identity
- idinteger
- typestring
- titlestring
- master_idinteger
Contact
- urlurl
Location
- countrystring
Other
- yearinteger
- formatsstring[]
- labelsstring[]
- genresstring[]
- stylesstring[]
- catalog_numberstring
- barcodesstring[]
- communityobject
Playground
Run this API
curl "https://api.perceptlayer.com/v1/discogs/marketplace?release_id=249504&condition=near_mint¤cy=EUR&limit=10" \
-H "X-API-Key: $API_KEY"Discogs · 2 endpoints
Endpoints
Every endpoint takes the same key. Open one for its parameters, the fields it returns and an example request.
| Endpoint | Required parameters | Returns | Cost |
|---|---|---|---|
GET/v1/discogs/marketplace | release_id+6 optional | typeresultspagination | 1 credit |
GET/v1/discogs/release | id+2 optional | JSON | 1–2 credits |
Overview
About the Discogs API
What you can get
The Discogs API returns Discogs music release and marketplace data as JSON through 3 endpoints. release and marketplace take a currency of USD, EUR, GBP, AUD, CAD, JPY, CHF, MXN, BRL, NZD, SEK or ZAR.
- Search:
searchtakes aq, withtype(release, master, artist or label),format,genre,style,year,country,pageandper_page. - Releases:
releasetakes anid, withcurrencyandinclude_sales_stats. - Marketplace:
marketplacetakes arelease_id, withcondition(mint, near_mint, very_good_plus, very_good, good_plus, good, fair or poor),sleeve_condition(the same grades, or generic, not_graded or no_cover),currency,ships_from,limitandcursor.
The recorded search for "nirvana" releases on vinyl, with per_page=5, returns results, each with id, type, title, year, country, url, master_id, formats, labels, genres, styles, catalog_number, barcodes and community (have and want). It also returns pagination with page, per_page, pages and total.
How a call works
Search, then price: GET /v1/discogs/search?q=nirvana&type=release&format=vinyl&per_page=5, with your key in the X-API-Key header, returns each release's id. Pass it as id to release, or as release_id to marketplace, for example GET /v1/discogs/marketplace?release_id=249504&condition=near_mint¤cy=EUR&limit=10. Search, marketplace and release each cost 1 credit per successful call; release costs 1 more when include_sales_stats returns sales statistics. Failed calls cost nothing.
More apps and media APIs
Use cases
Price a record collection from marketplace listings by condition
Use the Discogs API to price a record collection from marketplace listings by conditionTrack sales statistics for the releases you buy or sell
Use the Discogs API to track sales statistics for the releases you buy or sellFind every pressing of an album by format, country and year
Use the Discogs API to find every pressing of an album by format, country and yearGauge demand for a release from its `have` and `want` counts
Use the Discogs API to gauge demand for a release from its `have` and `want` countsFAQ
Questions
How much does the Discogs API cost?
`search` and `marketplace` cost one credit per successful call. `release` costs one credit, plus one more when you pass `include_sales_stats` and sales statistics come back. New accounts get free credits to start, and credit packs bring the price down as you scale.
Can I filter marketplace listings by condition?
Yes. Pass `condition` and `sleeve_condition` to `marketplace`, from mint down to poor, and `ships_from` to limit where items ship from.
What format are responses in?
Every endpoint returns JSON, with no HTML parsing on your side.
Is this the official Discogs API?
No. Perceptlayer is an independent service and is not affiliated with Discogs. It returns Discogs data as JSON with a Perceptlayer key, so there is no Discogs developer account, app review or partner approval to get first. It only reads data: if Discogs has an official API and you need to act on your own Discogs account, such as posting, managing orders or reading private data, use that one.
Should I build a Discogs scraper instead?
You can, but a Discogs scraper is code you maintain: page changes break it, requests get blocked, and Discogs's terms govern how you collect data. The Discogs API gives you 2 endpoints of named JSON fields for 1 credit per successful call, and failed calls cost nothing. A scraper makes sense only for data these endpoints don't return, so check the response in the playground on this page first.
Try the Discogs API with 100 free credits
No credit card. Failed calls are never billed.