> ## Documentation Index
> Fetch the complete documentation index at: https://docs.webrouter.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Discogs

> The Discogs music database (releases, masters, artists, labels, search) and marketplace prices and stats for a release.

![](https://mintcdn.com/webrouter/Wx0iBZkUGX_VAFTN/logo/data-apis/_default.svg?fit=max\&auto=format\&n=Wx0iBZkUGX_VAFTN\&q=85\&s=951f11a0968af0d8747e234a1ec1f32c)

[Web Catalog · Media](https://docs.webrouter.net/data-apis.md?category=media)

Needs&#x20;

`DISCOGS_API_KEY`

Endpoints

10

Auth

Key in header

[Vendor docs](https://www.discogs.com/developers) · Serves `discogs.com`

## Setup

| Variable | | What it is |
| - | - | - |
| `DISCOGS_API_KEY` | required | A Discogs personal access token (discogs.com/settings/developers > Generate new token). Sent as 'Authorization: Discogs token=...'. |
| `DISCOGS_USER_AGENT` | optional | The User-Agent Discogs requires every application to send, identifying it, e.g. 'MyDiscogsClient/1.0 +[http://mydiscogsclient.org](http://mydiscogsclient.org)'. Default `web-router`. |

Put them in your environment or `.env`; [Data APIs](https://docs.webrouter.net/vendors.md) covers the other ways.

## Notes

* Discogs is ending unauthenticated API use, and search already requires authentication, so this entry always sends the token.
* Rate limit: 60 requests per minute authenticated, as a moving 60-second window; X-Discogs-Ratelimit, -Used and -Remaining headers report it.
* Lists page with page and per\_page (max 100); pagination.urls.next in the answer, or the Link header, gives the next page.
* Image URLs are only returned to authenticated requests.

## Endpoints

GET

Search the database

Releases, masters, artists or labels matching a query and field filters (artist, title, label, barcode, catno, year...).

[Open](#discogs-search)

GET

Get a release

One release: tracklist, credits, formats, labels, identifiers, community have/want and lowest marketplace price.

[Open](#discogs-release-get)

GET

Get a master release

A master (the set of versions of one release) with its main release.

[Open](#discogs-master-get)

GET

List a master's versions

Every release that is a version of a master, filterable by format, label, year and country.

[Open](#discogs-master-versions)

GET

Get an artist

An artist's profile, aliases, members and links.

[Open](#discogs-artist-get)

GET

List an artist's releases

Releases and masters associated with an artist.

[Open](#discogs-artist-releases)

GET

Get a label

A label (or company, studio) with its profile, sublabels and links.

[Open](#discogs-label-get)

GET

List a label's releases

Releases on a label.

[Open](#discogs-label-releases)

GET

Get a release's marketplace stats

Items for sale now, lowest listed price, and whether the release is blocked from sale.

[Open](#discogs-marketplace-stats)

GET

Get price suggestions for a release

Suggested prices for a release, in the user's selling currency.

[Open](#discogs-marketplace-price-suggestions)

### Search the database

GET

`/database/search`

`discogs.search`

Releases, masters, artists or labels matching a query and field filters (artist, title, label, barcode, catno, year...).

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`q`</td><td>string</td><td>query</td><td>Search query. Example `nirvana`</td></tr>

    <tr>
      <td>
        `type`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        &#x20;One of&#x20;

        `release`

        ,&#x20;

        `master`

        ,&#x20;

        `artist`

        ,&#x20;

        `label`
      </td>
    </tr>

    <tr><td>`title`</td><td>string</td><td>query</td><td>Combined 'Artist Name - Release Title'. Example `nirvana - nevermind`</td></tr>

    <tr>
      <td>
        `release_title`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Release title.
      </td>
    </tr>

    <tr>
      <td>
        `credit`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Release credits.
      </td>
    </tr>

    <tr>
      <td>
        `artist`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Artist name.
      </td>
    </tr>

    <tr>
      <td>
        `anv`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Artist name variation.
      </td>
    </tr>

    <tr>
      <td>
        `label`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Label name.
      </td>
    </tr>

    <tr>
      <td>
        `genre`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td />
    </tr>

    <tr>
      <td>
        `style`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td />
    </tr>

    <tr>
      <td>
        `country`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Release country.
      </td>
    </tr>

    <tr>
      <td>
        `year`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Release year.
      </td>
    </tr>

    <tr>
      <td>
        `format`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Format, e.g. album.
      </td>
    </tr>

    <tr>
      <td>
        `catno`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Catalog number.
      </td>
    </tr>

    <tr>
      <td>
        `barcode`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td />
    </tr>

    <tr>
      <td>
        `track`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Track title.
      </td>
    </tr>

    <tr>
      <td>
        `sort`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        &#x20;One of&#x20;

        `score`

        ,&#x20;

        `title`

        ,&#x20;

        `have`

        ,&#x20;

        `want`

        ,&#x20;

        `hot`

        ,&#x20;

        `date_added`

        ,&#x20;

        `date_changed`

        ,&#x20;

        `year`
      </td>
    </tr>

    <tr>
      <td>
        `sort_order`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        &#x20;One of&#x20;

        `asc`

        ,&#x20;

        `desc`
      </td>
    </tr>

    <tr>
      <td>
        `page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td />
    </tr>

    <tr>
      <td>
        `per_page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Up to 100.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://www.discogs.com/developers#page:database,header:database-search)

```python Python theme={null}
router.call_data_api("discogs.search", {'q': 'nirvana', 'title': 'nirvana - nevermind'})
```

```text MCP theme={null}
call_data_api(endpoint="discogs.search", params={"q": "nirvana", "title": "nirvana - nevermind"})
```

### Get a release

GET

`/releases/{release_id}`

`discogs.release.get`

One release: tracklist, credits, formats, labels, identifiers, community have/want and lowest marketplace price.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `release_id`

        required
      </td>

      <td>
        integer
      </td>

      <td>
        path
      </td>

      <td>
        &#x20;Example&#x20;

        `249504`
      </td>
    </tr>

    <tr><td>`curr_abbr`</td><td>string</td><td>query</td><td>Currency for marketplace data; defaults to the user's. One of `USD`, `GBP`, `EUR`, `CAD`, `AUD`, `JPY`, `CHF`, `MXN`, `BRL`, `NZD`, `SEK`, `ZAR`</td></tr>
  </tbody>
</table>

[Vendor docs](https://www.discogs.com/developers#page:database,header:database-release)

```python Python theme={null}
router.call_data_api("discogs.release.get", {'release_id': 249504})
```

```text MCP theme={null}
call_data_api(endpoint="discogs.release.get", params={"release_id": 249504})
```

### Get a master release

GET

`/masters/{master_id}`

`discogs.master.get`

A master (the set of versions of one release) with its main release.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `master_id`

        required
      </td>

      <td>
        integer
      </td>

      <td>
        path
      </td>

      <td>
        &#x20;Example&#x20;

        `1000`
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://www.discogs.com/developers#page:database,header:database-master-release)

```python Python theme={null}
router.call_data_api("discogs.master.get", {'master_id': 1000})
```

```text MCP theme={null}
call_data_api(endpoint="discogs.master.get", params={"master_id": 1000})
```

### List a master's versions

GET

`/masters/{master_id}/versions`

`discogs.master.versions`

Every release that is a version of a master, filterable by format, label, year and country.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `master_id`

        required
      </td>

      <td>
        integer
      </td>

      <td>
        path
      </td>

      <td>
        &#x20;Example&#x20;

        `1000`
      </td>
    </tr>

    <tr>
      <td>
        `format`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        &#x20;Example&#x20;

        `Vinyl`
      </td>
    </tr>

    <tr>
      <td>
        `label`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td />
    </tr>

    <tr>
      <td>
        `released`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Release year.
      </td>
    </tr>

    <tr>
      <td>
        `country`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td />
    </tr>

    <tr>
      <td>
        `sort`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        &#x20;One of&#x20;

        `released`

        ,&#x20;

        `title`

        ,&#x20;

        `format`

        ,&#x20;

        `label`

        ,&#x20;

        `catno`

        ,&#x20;

        `country`
      </td>
    </tr>

    <tr>
      <td>
        `sort_order`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        &#x20;One of&#x20;

        `asc`

        ,&#x20;

        `desc`
      </td>
    </tr>

    <tr>
      <td>
        `page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td />
    </tr>

    <tr>
      <td>
        `per_page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td />
    </tr>
  </tbody>
</table>

[Vendor docs](https://www.discogs.com/developers#page:database,header:database-master-release-versions)

```python Python theme={null}
router.call_data_api("discogs.master.versions", {'master_id': 1000, 'format': 'Vinyl'})
```

```text MCP theme={null}
call_data_api(endpoint="discogs.master.versions", params={"master_id": 1000, "format": "Vinyl"})
```

### Get an artist

GET

`/artists/{artist_id}`

`discogs.artist.get`

An artist's profile, aliases, members and links.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `artist_id`

        required
      </td>

      <td>
        integer
      </td>

      <td>
        path
      </td>

      <td>
        &#x20;Example&#x20;

        `108713`
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://www.discogs.com/developers#page:database,header:database-artist)

```python Python theme={null}
router.call_data_api("discogs.artist.get", {'artist_id': 108713})
```

```text MCP theme={null}
call_data_api(endpoint="discogs.artist.get", params={"artist_id": 108713})
```

### List an artist's releases

GET

`/artists/{artist_id}/releases`

`discogs.artist.releases`

Releases and masters associated with an artist.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `artist_id`

        required
      </td>

      <td>
        integer
      </td>

      <td>
        path
      </td>

      <td>
        &#x20;Example&#x20;

        `108713`
      </td>
    </tr>

    <tr>
      <td>
        `sort`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        &#x20;One of&#x20;

        `year`

        ,&#x20;

        `title`

        ,&#x20;

        `format`
      </td>
    </tr>

    <tr>
      <td>
        `sort_order`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        &#x20;One of&#x20;

        `asc`

        ,&#x20;

        `desc`
      </td>
    </tr>

    <tr>
      <td>
        `page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td />
    </tr>

    <tr>
      <td>
        `per_page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td />
    </tr>
  </tbody>
</table>

[Vendor docs](https://www.discogs.com/developers#page:database,header:database-artist-releases)

```python Python theme={null}
router.call_data_api("discogs.artist.releases", {'artist_id': 108713})
```

```text MCP theme={null}
call_data_api(endpoint="discogs.artist.releases", params={"artist_id": 108713})
```

### Get a label

GET

`/labels/{label_id}`

`discogs.label.get`

A label (or company, studio) with its profile, sublabels and links.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `label_id`

        required
      </td>

      <td>
        integer
      </td>

      <td>
        path
      </td>

      <td>
        &#x20;Example&#x20;

        `1`
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://www.discogs.com/developers#page:database,header:database-label)

```python Python theme={null}
router.call_data_api("discogs.label.get", {'label_id': 1})
```

```text MCP theme={null}
call_data_api(endpoint="discogs.label.get", params={"label_id": 1})
```

### List a label's releases

GET

`/labels/{label_id}/releases`

`discogs.label.releases`

Releases on a label.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `label_id`

        required
      </td>

      <td>
        integer
      </td>

      <td>
        path
      </td>

      <td>
        &#x20;Example&#x20;

        `1`
      </td>
    </tr>

    <tr>
      <td>
        `page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td />
    </tr>

    <tr>
      <td>
        `per_page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td />
    </tr>
  </tbody>
</table>

[Vendor docs](https://www.discogs.com/developers#page:database,header:database-all-label-releases)

```python Python theme={null}
router.call_data_api("discogs.label.releases", {'label_id': 1})
```

```text MCP theme={null}
call_data_api(endpoint="discogs.label.releases", params={"label_id": 1})
```

### Get a release's marketplace stats

GET

`/marketplace/stats/{release_id}`

`discogs.marketplace.stats`

Items for sale now, lowest listed price, and whether the release is blocked from sale.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `release_id`

        required
      </td>

      <td>
        integer
      </td>

      <td>
        path
      </td>

      <td>
        &#x20;Example&#x20;

        `249504`
      </td>
    </tr>

    <tr><td>`curr_abbr`</td><td>string</td><td>query</td><td>Currency; defaults to the user's buyer currency. One of `USD`, `GBP`, `EUR`, `CAD`, `AUD`, `JPY`, `CHF`, `MXN`, `BRL`, `NZD`, `SEK`, `ZAR`</td></tr>
  </tbody>
</table>

[Vendor docs](https://www.discogs.com/developers#page:marketplace,header:marketplace-release-statistics)

```python Python theme={null}
router.call_data_api("discogs.marketplace.stats", {'release_id': 249504})
```

```text MCP theme={null}
call_data_api(endpoint="discogs.marketplace.stats", params={"release_id": 249504})
```

> [!NOTE]
>
> * lowest\_price and num\_for\_sale are null when nothing is for sale or the release is blocked.

### Get price suggestions for a release

GET

`/marketplace/price_suggestions/{release_id}`

`discogs.marketplace.price_suggestions`

Suggested prices for a release, in the user's selling currency.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `release_id`

        required
      </td>

      <td>
        integer
      </td>

      <td>
        path
      </td>

      <td>
        &#x20;Example&#x20;

        `249504`
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://www.discogs.com/developers#page:marketplace,header:marketplace-price-suggestions)

```python Python theme={null}
router.call_data_api("discogs.marketplace.price_suggestions", {'release_id': 249504})
```

```text MCP theme={null}
call_data_api(endpoint="discogs.marketplace.price_suggestions", params={"release_id": 249504})
```

> [!NOTE]
>
> * The token's user must have filled out their seller settings; an empty object means no suggestions.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.