---
title: "Discogs API: release search, release details as JSON"
description: "Discogs API for release search, release details, sales statistics and marketplace listings as JSON, by condition and currency. From 1 credit per call."
url: https://perceptlayer.com/apis/discogs
---

[APIs](https://perceptlayer.com/apis) / [Apps and media](https://perceptlayer.com/verticals/apps) / Discogs

1 credit per call 2 endpoints 14 datapoints 

# 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.

[Get a free API key](https://perceptlayer.com/signup) Run it below

Discogs

GET /v1/discogs/marketplace?release\_id=249504&condition=near\_mint&currency=EUR&limit=10 

```
{
  "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
  }
}
```

200 OK JSON X-Credits-Used: 1

Recorded from our API and shortened.

Sample data

## What one call returns

A recorded run of `marketplace`: the fields and shapes you will get, shortened to 3 items.

| # | id integer | type string | title string | year integer | country string | url url | master\_id integer | formats string\[\] | labels string\[\] | genres string\[\] | styles string\[\] | catalog\_number string | barcodes string\[\] | community object |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| 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} |

Recorded from our API · 3 items shown · 14 datapoints per item GET /v1/discogs/marketplace?release\_id=249504&condition=near\_mint&currency=EUR&limit=10

14 datapoints

### Identity

-   id integer
-   type string
-   title string
-   master\_id integer

### Contact

-   url url

### Location

-   country string

### Other

-   year integer
-   formats string\[\]
-   labels string\[\]
-   genres string\[\]
-   styles string\[\]
-   catalog\_number string
-   barcodes string\[\]
-   community object

Playground

## Run this API

cURL shell 

```
curl "https://api.perceptlayer.com/v1/discogs/marketplace?release_id=249504&condition=near_mint&currency=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`](https://perceptlayer.com/apis/discogs/marketplace) | `release_id` +6 optional | `type` `results` `pagination` | 1 credit |
| [GET `/v1/discogs/release`](https://perceptlayer.com/apis/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:** `search` takes a `q`, with `type` (release, master, artist or label), `format`, `genre`, `style`, `year`, `country`, `page` and `per_page`.
-   **Releases:** `release` takes an `id`, with `currency` and `include_sales_stats`.
-   **Marketplace:** `marketplace` takes a `release_id`, with `condition` (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`, `limit` and `cursor`.

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&currency=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.

Apps and media JSON REST MCP

### More apps and media APIs

[Apple App Store](https://perceptlayer.com/apis/apple-app-store) [Apple Podcasts](https://perceptlayer.com/apis/apple-podcasts) [arXiv](https://perceptlayer.com/apis/arxiv) [Audible](https://perceptlayer.com/apis/audible) [Bandcamp](https://perceptlayer.com/apis/bandcamp) [Chrome Web Store](https://perceptlayer.com/apis/chrome-web-store) [CISA KEV](https://perceptlayer.com/apis/cisa-kev) [ClinicalTrials.gov](https://perceptlayer.com/apis/clinicaltrials) [Coursera](https://perceptlayer.com/apis/coursera) [crates.io](https://perceptlayer.com/apis/crates-io) [Crossref](https://perceptlayer.com/apis/crossref) [Docker Hub](https://perceptlayer.com/apis/docker-hub)

Use cases

### Price a record collection from marketplace listings by condition

`Use the Discogs API to price a record collection from marketplace listings by condition` 

### Track sales statistics for the releases you buy or sell

`Use the Discogs API to track sales statistics for the releases you buy or sell` 

### Find 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 year` 

### Gauge 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` counts `` 

FAQ

## 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.

[Get a free API key](https://perceptlayer.com/signup) [Read the docs](https://docs.perceptlayer.com)
