Back to top

Home 

The Discogs API v2.0 is a RESTful interface to Discogs data. You can access JSON-formatted information about Database objects such as Artists, Releases, and Labels. Your application can also manage User Collections and Wantlists, create Marketplace Listings, and more.

Database data is made available under the CC0 No Rights Reserved license, which means there are no restrictions on what you can do with it.

Your application can use “Discogs” in its name as long as it follows the Application Name and Description Policy.

Monthly data dumps are also available.


Quickstart 

If you just want to see some results right now, issue this curl command:

curl https://api.discogs.com/releases/249504 --user-agent "FooBarApp/3.0"

For more in-depth examples and client libraries, see the links below:

Language Type Maintainer URL
Python Client Discogs https://github.com/discogs/discogs_client
Python Example jesseward https://github.com/jesseward/discogs-oauth-example
Ruby Client buntine https://github.com/buntine/discogs
PHP Client ricbra https://github.com/ricbra/php-discogs-api
PHP Example tonefolder https://gist.github.com/tonefolder/44191a29454f9059c7e6
Node.js Client bartve https://github.com/bartve/disconnect
.NET Client http://discogsnet.codeplex.com/

General Information 

Your application must provide a User-Agent string that identifies itself – preferably something that follows RFC 1945. Some good examples include:

AwesomeDiscogsBrowser/0.1 +http://adb.example.com
LibraryMetadataEnhancer/0.3 +http://example.com/lime
MyDiscogsClient/1.0 +http://mydiscogsclient.org

Please don’t just copy one of those! Make it unique so we can let you know if your application starts to misbehave – the alternative is that we just silently block it, which will confuse and infuriate your users.

Here are some bad examples that are unclear or obscure the nature of the application:

curl/7.9.8 (i686-pc-linux-gnu) libcurl 7.9.8 (OpenSSL 0.9.6b)
Mozilla/5.0 (X11; Linux i686; rv:6.0.2) Gecko/20100101 Firefox/6.0.2
my app

JSONP

When a callback query string parameter is supplied, the API can return responses in JSONP format.

JSONP, by its nature, cannot access HTTP information like headers or the status code, so the API supplies that information in the response, like so:

GET https://api.discogs.com/artists/1?callback=callbackname
200 OK
Content-Type: text/javascript
callbackname({
    "meta": { 
        "status": 200, 
    }, 
    "data": {
        "id": 1,
        "name": "Persuader, The"
        // ... and so on 
    } 
})

Rate Limiting 

Requests are throttled by the server to 250 per minute per IP address. Your application should take this into account and throttle requests locally, too.


Pagination 

Some resources represent collections of objects and may be paginated. By default, 50 items per page are shown.

To browse different pages, or change the number of items per page (up to 100), use the page and per_page query string parameters:

GET https://api.discogs.com/artists/1/releases?page=2&per_page=75

Responses include a Link header:

Link: <https://api.discogs.com/artists/1/releases?page=3&per_page=75>; rel=next,
<https://api.discogs.com/artists/1/releases?page=1&per_page=75>; rel=first,
<https://api.discogs.com/artists/1/releases?page=30&per_page=75>; rel=last,
<https://api.discogs.com/artists/1/releases?page=1&per_page=75>; rel=prev

And a pagination object in the response body:

{ 
    "pagination": { 
        "page": 2, 
        "pages": 30, 
        "items": 2255, 
        "per_page": 75, 
        "urls":
            { 
                "first": "https://api.discogs.com/artists/1/releases?page=1&per_page=75",
                "prev": "https://api.discogs.com/artists/1/releases?page=1&per_page=75", 
                "next": "https://api.discogs.com/artists/1/releases?page=3&per_page=75", 
                "last": "https://api.discogs.com/artists/1/releases?page=30&per_page=75"
            } 
    }, 
    "releases":
        [ ... ] 
}

Versioning and Media Types 

Currently, our API only supports one version: v2. However, you can specify a version in your requests to future-proof your application. By adding an Accept header with the version and media type, you can guarantee your requests will receive data from the correct version you develop your app on.

A standard Accept header may look like this:
application/vnd.discogs.v2.html+json

If you are requesting information from an endpoint that may have text formatting in it, you can choose which kind of formatting you want to be returned by changing that section of the Accept header. We currently support 3 types:
application/vnd.discogs.v2.html+json
application/vnd.discogs.v2.plaintext+json
application/vnd.discogs.v2.discogs+json


FAQ 

1. Why am I getting an empty response from the server?

This generally happens when you forget to add a User-Agent header to your requests.

2. How do I get updates about the API?

Subscribe to our API Announcements forum thread. For larger, breaking changes, we will send out an email notice to all developers with a registered Discogs application.

3. Where can I register a Discogs application?

You can register a Discogs application on the Developer Settings.

4. If I have a question/issue with the API, should I file a Support Request?

It’s generally best to start out with a forum post on the API topic since other developers may have had similar issues and can point you in the right direction. If the issue requires privacy, then a support request is the best way to go.

5. I’m getting a 404 response when trying to fetch images; what gives?

This may seem obvious, but make sure you aren’t doing anything to change the URL. The URLs returned are signed URLs, so trying to change one part of the URL (e.g., Release ID number) will generally not work.

6. What are the authentication requirements for requesting images?

Please see the Images documentation page.

7. Why am I getting a particular HTTP response?

200 OK
The request was successful, and the requested data is provided in the response body.

201 Continue
You’ve sent a POST request to a list of resources to create a new one. The ID of the newly-created resource will be provided in the body of the response.

204 No Content
The request was successful, and the server has no additional information to convey, so the response body is empty.

401 Unauthorized
You’re attempting to access a resource that first requires authentication. See Authenticating with OAuth.

403 Forbidden
You’re not allowed to access this resource. Even if you authenticated, or already have, you simply don’t have permission. Trying to modify another user’s profile, for example, will produce this error.

404 Not Found
The resource you requested doesn’t exist.

405 Method Not Allowed
You’re trying to use an HTTP verb that isn’t supported by the resource. Trying to PUT to /artists/1, for example, will fail because Artists are read-only.

422 Unprocessable Entity
Your request was well-formed, but there’s something semantically wrong with the body of the request. This can be due to malformed JSON, a parameter that’s missing or the wrong type, or trying to perform an action that doesn’t make any sense. Check the response body for specific information about what went wrong.

500 Internal Server Error
Something went wrong on our end while attempting to process your request. The response body’s message field will contain an error code that you can send to Discogs Support (which will help us track down your specific issue).

Next  Previous

Changelog 

  • 11 March 2015

    • DEPRECATION NOTICE The /images endpoint will be officially deprecated and no longer working starting March 25, 2015. To retrieve images, fetch the object you want an image for (e.g., a release or a user profile) with an authenticated request, and the image URL will be contained within the response. Please refer to the Images documentation for more information.
  • 20 February 2015

    • All thumb/image values included in data resources like a release will be empty or excluded for all unauthenticated requests. Authenticated requests will still have thumb/image URLs included but they will now resolve to our new images cluster hosted at api-img.discogs.com. These URLs are signed so changing any part of the URL will result in an error when attempting to fetch the image. The existing images endpoint will still be available for a limited period to aid in migrating from any cached values developers may have in their applications.
  • 27 August 2014

    • The /images endpoint now returns the HTTP status code 429 Too Many Requests instead of 403 Forbidden when you have reached the 1000 images per application per day rate limit. If your application uses the response status code to determine if you have hit the rate limit, we suggest you instead read the x-ratelimit-remaining header in each response to get the amount of requests remaining.
  • 24 June 2014

    • DEPRECATION NOTICE All endpoints marked as deprecated in the documentation will be officially removed on August 22, 2014. This includes the following endpoints:
      /release/<id>,
      /artist/<name>,
      /label/<name>,
      /master/<id>,
      /image/<filename>, and
      /search.
      To update your app, please use requests from the following up-to-date endpoints instead:
      /releases/<id>,
      /artists/<id>,
      /labels/<id>,
      /masters/<id>,
      /images/<filename>, and
      /database/search,
      respectively. Please refer to documentation for specific endpoint inquiries.

      Please note that due to the removal of the old API endpoints, XML will not be a supported output format for the Discogs API.

  • 24 June 2014

    • Added a new location field to Listings and Inventory endpoints. This field is only visible to the item’s owner.

    • Added support to list an item via Listings <listing> endpoint with a new location field intended to help a seller better identify the storage location of an item. The field is limited to 255 characters, but the best usage is short and succinct like “Upper Stacks - Aisle 3”.

  • 16 June 2014

    • CHANGE NOTICE The /database/search endpoint will require OAuth authentication beginning August 15, 2014. See API Announcements thread for information.
  • 9 June 2014

    • Database searches now include a community field containing haves and wants for releases.
    • Removed the notes_public key in Wantlist items.
  • 7 May 2014

    • DEPRECATION NOTICE The notes_public key in Wantlist items will be phased out on Jun 9, 2014.
  • 1 Apr 2014

    • Per the deprecation notice on 1 Feb 2014 the Order messages will no longer include to block and will only include the newly added from block.
  • 7 Mar 2014

    • Added missing documentation for specifying external_id, weight, and/or format_quantity in the listing-create and listing-edit endpoints.
  • 10 Feb 2014

    • Order messages now includes a from block. DEPRECATION NOTICE the to block will be phased out on April 1, 2014. Please update your applications to use the new from block.
  • 1 Feb 2014

    • Image requests now require authentication via OAuth .
    • rate-limiting behavior was changed from “1,000 per day per IP address” to “1,000 per day per consumer key”.
  • 19 Dec 2013

    • Removed the optional email_buyer and email_seller parameters from the Orders endpoint. Changes to order statuses or messages will now always notify the other party.
  • 25 Sep 2013

    • Added email field to user Profiles, visible if you are authenticated as that particular user.
    • Removed inaccurate documentation regarding the is_friend key, which was never actually implemented.
  • 23 Sep 2013

    • Added external_id field to Listings endpoint and Inventory endpoint. This field has the same visibility and permissions requirements as format_quantity and weight.
  • 18 Sep 2013

    • Added estimated_weight float and format_quantity integer to Release endpoint.
    • Added weight float and format_quantity integer to the Listings endpoint. These values are only available to the listing owner (aka the seller) and will not be included for any other authorized user. This also adds support for these values when adding new or editing existing listings via the existing endpoint(s).
    • Added weight float and format_quantity integer to the Inventory endpoint. These values are only available to the inventory owner (aka the seller) and will not be included for any other authorized user.
  • 9 Sep 2013

    • Added Price Suggestions resource.
  • 8 Apr 2013

    • Added credit, anv, genre, style, country, format, track, submitter, and contributor search parameters to search endpoint.
  • 17 Jan 2013

    • Added artist string to each Release and Master in the artist releases endpoint.
  • 4 Dec 2012

    • Added active boolean to each Artist in the members and groups arrays.
    • Added community object to Releases, containing statistical information like total haves and wants, rating, submitter, and contributors.
  • 15 May 2012

    • Added CAD, AUD, and JPY to supported currencies when calculating a Fee.
  • 4 Apr 2012

    • Added explanation and advice for the 500 Internal Server Error HTTP status code.
  • 23 Feb 2012

    • Added statistics key to the root endpoint.
    • Replaced references to PATCH HTTP verb with POST.
  • 20 Jan 2012

    • Added last_activity to valid sort keys for Orders.
  • 15 Jan 2012

    • API v1 was shut off.
  • 11 Jan 2012

    • uri keys were added to Artists, Releases, Masters, Labels, Listings, Orders, and User Profiles. The value is a URL pointing to the webpage representation of the object.
  • 12 Dec 2011

    • The Accept-Encoding header is no longer required.
    • The shutoff date for API v1 was extended to 15 Jan 2012.
  • 30 Nov 2011

    • Added documentation for the edit folder resource.
  • 22 Nov 2011

    • Added optional sort and sort_order parameters to the collection folder release list resource.
  • 17 Nov 2011

    • Added optional sort and sort_order parameters to the order list resource.
    • Added resource_url, messages_url and next_status keys to Orders.
    • Added a resource to manage an order.
    • Added a resource to manage an order’s messages.
Next  Previous

Authentication 

This section describes the various methods of authenticating with the Discogs API.


Registration

In order to access protected endpoints, you’ll need to register for either a consumer key and secret or user token, depending on your situation:

  • To easily access your own user account information, use a User token.

  • To get access to an endpoint that requires authentication and build 3rd party apps, use a Consumer Key and Secret.

To get one of these, sign up for a Discogs account if you don’t have one already, and go to your Developer Settings. From there, you can create a new application/token or edit the metadata for an existing app.

When you create a new application, you’ll be granted a Consumer Key and Consumer Secret, which you can plug into your application and start making authenticated requests. It’s important that you don’t disclose the Consumer Secret to anyone.

Generating a user token is as easy as clicking the Generate token button on the developer settings. Keep this token private, as it allows users to access your information.


OAuth Endpoints

The OAuth 1.0a flow involves three server-side endpoints:

Request token URL: https://api.discogs.com/oauth/request_token
Authorize URL: https://www.discogs.com/oauth/authorize
Access token URL: https://api.discogs.com/oauth/access_token

For convenience, these are also listed on the Edit Application page.

Once authenticated, you can test that everything’s working correctly by requesting the Identity resource.


Discogs Auth Flow 

If you do not plan on building an app which others can log into on their behalf, you should use this authentication method as it is much simpler and is still secure. Discogs Auth requires that requests be made over HTTPS, as you are sending your app’s key/secret or token in the request.
To send requests with Discogs Auth, you have two options: sending your credentials in the query string with key and secret parameters or a token parameter, for example:

curl "https://api.discogs.com/database/search?q=Nirvana&key=foo123&secret=bar456"

or

curl "https://api.discogs.com/database/search?q=Nirvana&token=abcxyz123456"

Your other option is to send your credentials in the request as an Authorization header, as follows:

curl "https://api.discogs.com/database/search?q=Nirvana" -H "Authorization: Discogs key=foo123, secret=bar456"

or

curl "https://api.discogs.com/database/search?q=Nirvana" -H "Authorization: Discogs token=abcxyz123456"

That’s it! Continue sending the key/secret pair or user token with the rest of your requests.


OAuth Flow 

OAuth is a protocol that allows users to grant access to their data without having to share their password.

This is an explanation of how a web application may work with Discogs using OAuth 1.0a. We highly suggest you use an OAuth library/wrapper to simplify the process of authenticating.

1. Obtain consumer key and consumer secret from Developer Settings

Application registration can be found here: https://www.discogs.com/settings/developers

You only need to register once per application you make. You should not share your consumer secret, as it acts as a sort of password for your requests.

2. Send a GET request to the Discogs request token URL

GET https://api.discogs.com/oauth/request_token

Include the following headers with your request:

Content-Type: application/x-www-form-urlencoded
Authorization:
        OAuth oauth_consumer_key="your_consumer_key",
        oauth_nonce="random_string_or_timestamp",
        oauth_signature="your_consumer_secret&",
        oauth_signature_method="PLAINTEXT",
        oauth_timestamp="current_timestamp",
        oauth_callback="your_callback"
User-Agent: some_user_agent

Note: using an OAuth library instead of generating these requests manually will likely save you a headache if you are new to OAuth. Please refer to your OAuth library’s documentation if you choose to do so.

As the example shows, we suggest sending requests with HTTPS and the PLAINTEXT signature method over HMAC-SHA1 due to its simple yet secure nature. This involves setting your oauth_signature_method to “PLAINTEXT” and your oauth_signature to be your consumer secret followed by an ampersand (&).

If all goes well with the request, you should get an HTTP 200 OK response. If an invalid OAuth request is sent, you will receive an HTTP 400 Bad Request response.

Be sure to include a unique User-Agent in the request headers.

A successful request will return a response that contains the following content: OAuth request token (oauth_token), an OAuth request token secret (oauth_token_secret), and a callback confirmation (oauth_callback_confirmed). These will be used in the following steps.

3. Redirect your user to the Discogs Authorize page

Authorization page:

https://discogs.com/oauth/authorize?oauth_token=<your_oauth_request_token>

This page will ask the user to authorize your app on behalf of their Discogs account. If they accept and authorize, they will receive a verifier key to use as verification. This key is used in the next phase of OAuth authentication.

If you added a callback URL to your Discogs application registration, the user will be redirected to that URL, and you can capture their verifier from the response. The verifier will be used to generate the access token in the next step. You can always edit your application settings to include a callback URL (i.e., you don’t need to re-create a new application).

4. Send a POST request to the Discogs access token URL

POST https://api.discogs.com/oauth/access_token

Include the following headers in your request:

Content-Type: application/x-www-form-urlencoded
Authorization:
        OAuth oauth_consumer_key="your_consumer_key",
        oauth_nonce="random_string_or_timestamp",
        oauth_token="oauth_token_received_from_step_2"
        oauth_signature="your_consumer_secret&",
        oauth_signature_method="PLAINTEXT",
        oauth_timestamp="current_timestamp",
        oauth_verifier="users_verifier"
User-Agent: some_user_agent

If the OAuth access token is not created within 15 minutes of when you receive the OAuth request token, your OAuth request token and verifier will expire, and you will need to re-create them. If you try to POST to the access token URL with an expired verifier or your request is malformed, you will receive an HTTP 400 Bad Request response.

As the example shows, we suggest sending requests with HTTPS and the PLAINTEXT signature method over HMAC-SHA1 due to its simple yet secure nature. This involves setting your oauth_signature_method to “PLAINTEXT” and your oauth_signature to be your consumer secret followed by an ampersand (&).

Be sure to include a unique User-Agent in the header.

A successful request will return a response that contains an OAuth access token (oauth_token) and an OAuth access token secret (oauth_token_secret). These tokens do not expire (unless the user revokes access from your app), so you should store these tokens in a database or persistent storage to make future requests signed with OAuth. All requests that require OAuth will require these two tokens to be sent in the request.

5. Send authenticated requests to Discogs endpoints

You are now ready to send authenticated requests with Discogs through OAuth. Be sure to attach the user’s OAuth access token and OAuth access token secret to each request.

To test that you are ready to send authenticated requests, send a GET request to the identity URL. A successful request will yield a response that contains information about the authenticated user.

GET https://api.discogs.com/oauth/identity

OAuth Endpoints

Request Token URL 

Generate the request token

Request token
/oauth/request_token
  • RequestToggle
  • Headers
    Content-Type: application/x-www-form-urlencoded
    Authorization: OAuth oauth_consumer_key="your_consumer_key", oauth_nonce="random_string_or_timestamp", oauth_signature="your_consumer_secret&", oauth_signature_method="PLAINTEXT", oauth_timestamp="current_timestamp", oauth_callback="your_callback"
    User-Agent: some_user_agent
  • Response  200Toggle
  • Headers
    oauth_token: abc123
    oauth_token_secret: xyz789
    oauth_callback_confirmed: 'true'

Access Token URL 

Generate the access token

Access token
/oauth/access_token
  • RequestToggle
  • Headers
    Content-Type: application/x-www-form-urlencoded
    Authorization: OAuth oauth_consumer_key="your_consumer_key", oauth_nonce="random_string_or_timestamp", oauth_token="oauth_token_received_from_step_2" oauth_signature="your_consumer_secret&", oauth_signature_method="PLAINTEXT", oauth_timestamp="current_timestamp", oauth_verifier="users_verifier"
    User-Agent: some_user_agent
  • Response  200Toggle
  • Headers
    oauth_token: abc123
    oauth_token_secret: xyz789
Next  Previous

Database 

Release 

The Release resource represents a particular physical or digital object released by one or more Artists.

Get Release
/releases/{release_id}

Get a release

  • Parameters
  • release_id
    number (required) Example: 249504

    The Release ID

  • Response  200Toggle
  • Headers
    Status: HTTP/1.1 200 OK
    Reproxy-Status: yes
    Access-Control-Allow-Origin: *
    Content-Type: application/json
    Server: lighttpd
    Content-Length: 6223
    Date: Tue, 01 Jul 2014 00:59:34 GMT
    X-Varnish: 1465474310
    Age: 0
    Via: 1.1 varnish
    Connection: keep-alive
    Body
    {
        "title": "Never Gonna Give You Up",
        "id": 249504,
        "artists": [
            {
                "anv": "",
                "id": 72872,
                "join": "",
                "name": "Rick Astley",
                "resource_url": "https://api.discogs.com/artists/72872",
                "role": "",
                "tracks": ""
            }
        ],
        "data_quality": "Correct",
        "thumb": "https://api-img.discogs.com/kAXVhuZuh_uat5NNr50zMjN7lho=/fit-in/300x300/filters:strip_icc():format(jpeg):mode_rgb()/discogs-images/R-249504-1334592212.jpeg.jpg",
        "community": {
            "contributors": [
                {
                    "resource_url": "https://api.discogs.com/users/memory",
                    "username": "memory"
                },
                {
                    "resource_url": "https://api.discogs.com/users/_80_",
                    "username": "_80_"
                }
            ],
            "data_quality": "Correct",
            "have": 252,
            "rating": {
                "average": 3.42,
                "count": 45
            },
            "status": "Accepted",
            "submitter": {
                "resource_url": "https://api.discogs.com/users/memory",
                "username": "memory"
            },
            "want": 42
        },
        "companies": [
            {
                "catno": "",
                "entity_type": "13",
                "entity_type_name": "Phonographic Copyright (p)",
                "id": 82835,
                "name": "BMG Records (UK) Ltd.",
                "resource_url": "https://api.discogs.com/labels/82835"
            },
            {
                "catno": "",
                "entity_type": "29",
                "entity_type_name": "Mastered At",
                "id": 266218,
                "name": "Utopia Studios",
                "resource_url": "https://api.discogs.com/labels/266218"
            }
        ],
        "country": "UK",
        "date_added": "2004-04-30T08:10:05-07:00",
        "date_changed": "2012-12-03T02:50:12-07:00",
        "estimated_weight": 60,
        "extraartists": [
            {
                "anv": "Me Co",
                "id": 547352,
                "join": "",
                "name": "Me Company",
                "resource_url": "https://api.discogs.com/artists/547352",
                "role": "Design",
                "tracks": ""
            },
            {
                "anv": "Stock / Aitken / Waterman",
                "id": 20942,
                "join": "",
                "name": "Stock, Aitken & Waterman",
                "resource_url": "https://api.discogs.com/artists/20942",
                "role": "Producer, Written-By",
                "tracks": ""
            }
        ],
        "format_quantity": 1,
        "formats": [
            {
                "descriptions": [
                    "7\"",
                    "Single",
                    "45 RPM"
                ],
                "name": "Vinyl",
                "qty": "1"
            }
        ],
        "genres": [
            "Electronic",
            "Pop"
        ],
        "identifiers": [
            {
                "type": "Barcode",
                "value": "5012394144777"
            },
        ],
        "images": [
            {
                "height": 600,
                "resource_url": "https://api-img.discogs.com/z_u8yqxvDcwVnR4tX2HLNLaQO2Y=/fit-in/600x600/filters:strip_icc():format(jpeg):mode_rgb():quality(96)/discogs-images/R-249504-1334592212.jpeg.jpg",
                "type": "primary",
                "uri": "https://api-img.discogs.com/z_u8yqxvDcwVnR4tX2HLNLaQO2Y=/fit-in/600x600/filters:strip_icc():format(jpeg):mode_rgb():quality(96)/discogs-images/R-249504-1334592212.jpeg.jpg",
                "uri150": "https://api-img.discogs.com/0ZYgPR4X2HdUKA_jkhPJF4SN5mM=/fit-in/150x150/filters:strip_icc():format(jpeg):mode_rgb()/discogs-images/R-249504-1334592212.jpeg.jpg",
                "width": 600
            },
            {
                "height": 600,
                "resource_url": "https://api-img.discogs.com/EnQXaDOs5T6YI9zq-R5I_mT7hSk=/fit-in/600x600/filters:strip_icc():format(jpeg):mode_rgb():quality(96)/discogs-images/R-249504-1334592228.jpeg.jpg",
                "type": "secondary",
                "uri": "https://api-img.discogs.com/EnQXaDOs5T6YI9zq-R5I_mT7hSk=/fit-in/600x600/filters:strip_icc():format(jpeg):mode_rgb():quality(96)/discogs-images/R-249504-1334592228.jpeg.jpg",
                "uri150": "https://api-img.discogs.com/abk0FWgWsRDjU4bkCDwk0gyMKBo=/fit-in/150x150/filters:strip_icc():format(jpeg):mode_rgb()/discogs-images/R-249504-1334592228.jpeg.jpg",
                "width": 600
            }
        ],
        "labels": [
            {
                "catno": "PB 41447",
                "entity_type": "1",
                "id": 895,
                "name": "RCA",
                "resource_url": "https://api.discogs.com/labels/895"
            }
        ],
        "master_id": 96559,
        "master_url": "https://api.discogs.com/masters/96559",
        "notes": "UK Release has a black label with the text \"Manufactured In England\" printed on it.\r\n\r\nSleeve:\r\n\u2117 1987 \u2022 BMG Records (UK) Ltd. \u00a9 1987 \u2022 BMG Records (UK) Ltd.\r\nDistributed in the UK by BMG Records \u2022  Distribu\u00e9 en Europe par BMG/Ariola \u2022 Vertrieb en Europa d\u00fcrch BMG/Ariola.\r\n\r\nCenter labels:\r\n\u2117 1987 Pete Waterman Ltd.\r\nOriginal Sound Recording made by PWL.\r\nBMG Records (UK) Ltd. are the exclusive licensees for the world.\r\n\r\nDurations do not appear on the release.\r\n",
        "released": "1987",
        "released_formatted": "1987",
        "resource_url": "https://api.discogs.com/releases/249504",
        "series": [],
        "status": "Accepted",
        "styles": [
            "Synth-pop"
        ],
        "tracklist": [
            {
                "duration": "3:32",
                "position": "A",
                "title": "Never Gonna Give You Up",
                "type_": "track"
            },
            {
                "duration": "3:30",
                "position": "B",
                "title": "Never Gonna Give You Up (Instrumental)",
                "type_": "track"
            }
        ],
        "uri": "http://www.discogs.com/Rick-Astley-Never-Gonna-Give-You-Up/release/249504",
        "videos": [
            {
                "description": "Rick Astley - Never Gonna Give You Up (Extended Version)",
                "duration": 330,
                "embed": true,
                "title": "Rick Astley - Never Gonna Give You Up (Extended Version)",
                "uri": "http://www.youtube.com/watch?v=te2jJncBVG4"
            },
        ],
        "year": 1987
    }
  • Response  404Toggle
  • Headers
    Status: HTTP/1.1 404 Not Found
    Reproxy-Status: yes
    Access-Control-Allow-Origin: *
    Content-Type: application/json
    Server: lighttpd
    Content-Length: 33
    Date: Tue, 01 Jul 2014 01:03:20 GMT
    X-Varnish: 1465521729
    Age: 0
    Via: 1.1 varnish
    Connection: keep-alive
    Body
    {
      "message": "Release not found."
    }

Master Release 

The Master resource represents a set of similar Releases. Masters (also known as “master releases”) have a “main release” which is often the chronologically earliest.

Get Master
/masters/{master_id}

Get a master release

  • Parameters
  • master_id
    number (required) Example: 1000

    The Master ID

  • Response  200Toggle
  • Headers
    Status: HTTP/1.1 200 OK
    Reproxy-Status: yes
    Access-Control-Allow-Origin: *
    Content-Type: application/json
    Server: lighttpd
    Content-Length: 7083
    Date: Tue, 01 Jul 2014 01:11:23 GMT
    X-Varnish: 1465622695
    Age: 0
    Via: 1.1 varnish
    Connection: keep-alive
    Body
    {
      "styles": [
        "Goa Trance"
      ],
      "genres": [
        "Electronic"
      ],
      "videos": [
        {
          "duration": 421,
          "description": "Electric Universe - Alien Encounter Part 2 (Spirit Zone 97)",
          "embed": true,
          "uri": "http://www.youtube.com/watch?v=n1LGinzMDi8",
          "title": "Electric Universe - Alien Encounter Part 2 (Spirit Zone 97)"
        }
      ],
      "title": "Stardiver",
      "main_release": 66785,
      "main_release_url": "https://api.discogs.com/releases/66785",
      "uri": "http://www.discogs.com/Electric-Universe-Stardiver/master/1000",
      "artists": [
        {
          "join": "",
          "name": "Electric Universe",
          "anv": "",
          "tracks": "",
          "role": "",
          "resource_url": "https://api.discogs.com/artists/21849",
          "id": 21849
        }
      ],
      "versions_url": "https://api.discogs.com/masters/1000/versions",
      "year": 1997,
      "images": [
        {
          "height": 569,
          "resource_url": "https://api-img.discogs.com/_0K5t_iLs6CzLPKTB4mwHVI3Vy0=/fit-in/600x569/filters:strip_icc():format(jpeg):mode_rgb():quality(96)/discogs-images/R-66785-1213949871.jpeg.jpg",
          "type": "primary",
          "uri": "https://api-img.discogs.com/_0K5t_iLs6CzLPKTB4mwHVI3Vy0=/fit-in/600x569/filters:strip_icc():format(jpeg):mode_rgb():quality(96)/discogs-images/R-66785-1213949871.jpeg.jpg",
          "uri150": "https://api-img.discogs.com/sSWjXKczZseDjX2QohG1Lc77F-w=/fit-in/150x150/filters:strip_icc():format(jpeg):mode_rgb()/discogs-images/R-66785-1213949871.jpeg.jpg",
          "width": 600
        },
        {
          "height": 296,
          "resource_url": "https://api-img.discogs.com/1iD31iOWgfgb2DpROI4_MvmceFw=/fit-in/600x296/filters:strip_icc():format(jpeg):mode_rgb():quality(96)/discogs-images/R-66785-1213950065.jpeg.jpg",
          "type": "secondary",
          "uri": "https://api-img.discogs.com/1iD31iOWgfgb2DpROI4_MvmceFw=/fit-in/600x296/filters:strip_icc():format(jpeg):mode_rgb():quality(96)/discogs-images/R-66785-1213950065.jpeg.jpg",
          "uri150": "https://api-img.discogs.com/Cm4Q_1S784pQeRfwa0lN2jsj47Y=/fit-in/150x150/filters:strip_icc():format(jpeg):mode_rgb()/discogs-images/R-66785-1213950065.jpeg.jpg",
          "width": 600
        }
      ],
      "resource_url": "https://api.discogs.com/masters/1000",
      "tracklist": [
        {
          "duration": "7:00",
          "position": "1",
          "type_": "track",
          "title": "Alien Encounter (Part 2)"
        },
        {
          "duration": "7:13",
          "position": "2",
          "type_": "track",
          "extraartists": [
            {
              "join": "",
              "name": "DJ Sangeet",
              "anv": "",
              "tracks": "",
              "role": "Written-By, Producer",
              "resource_url": "https://api.discogs.com/artists/25460",
              "id": 25460
            }
          ],
          "title": "From The Heart"
        },
        {
          "duration": "6:45",
          "position": "3",
          "type_": "track",
          "title": "Radio S.P.A.C.E."
        }
      ],
      "id": 1000,
      "data_quality": "Correct"
    }
  • Response  404Toggle
  • Headers
    Status: HTTP/1.1 404 Not Found
    Reproxy-Status: yes
    Access-Control-Allow-Origin: *
    Content-Type: application/json
    Server: lighttpd
    Content-Length: 40
    Date: Tue, 01 Jul 2014 01:11:21 GMT
    X-Varnish: 1465622316
    Age: 0
    Via: 1.1 varnish
    Connection: keep-alive
    Body
    {
      "message": "Master Release not found."
    }

Master Release Versions 

Get all Master versions
/masters/{master_id}/versions{?page,per_page}

Retrieves a list of all Releases that are versions of this master. Accepts Pagination parameters.

  • Parameters
  • master_id
    number (required) Example: 1000

    The Master ID

    page
    number (optional) Example: 3

    The page you want to request

    per_page
    number (optional) Example: 25

    The number of items per page

  • Response  200Toggle
  • Headers
    Status: HTTP/1.1 200 OK
    Reproxy-Status: yes
    Access-Control-Allow-Origin: *
    Content-Type: application/json
    Server: lighttpd
    Content-Length: 2834
    Date: Tue, 01 Jul 2014 01:16:01 GMT
    X-Varnish: 1465678820
    Age: 0
    Via: 1.1 varnish
    Connection: keep-alive
    Body
    {
      "pagination": {
        "per_page": 50,
        "items": 4,
        "page": 1,
        "urls": {},
        "pages": 1
      },
      "versions": [
        {
          "catno": "SPIRIT ZONE 027",
          "country": "Germany",
          "format": "CD, Album, Mixed",
          "id": 66785,
          "label": "Spirit Zone Recordings",
          "released": "1997-03-14",
          "resource_url": "http://api.discogs.com/releases/66785",
          "status": "Accepted",
          "thumb": "https://api-img.discogs.com/sSWjXKczZseDjX2QohG1Lc77F-w=/fit-in/150x150/filters:strip_icc():format(jpeg):mode_rgb()/discogs-images/R-66785-1213949871.jpeg.jpg",
          "title": "Stardiver"
        },
        {
          "catno": "2078-2",
          "country": "Israel",
          "format": "CD, Album, Mixed",
          "id": 528753,
          "label": "Phonokol",
          "released": "1997",
          "resource_url": "http://api.discogs.com/releases/528753",
          "status": "Accepted",
          "thumb": "https://api-img.discogs.com/53aTwkmfs6fwWZhq5ma7-vbU7TY=/fit-in/150x150/filters:strip_icc():format(jpeg):mode_rgb()/discogs-images/R-528753-1127942810.jpeg.jpg",
          "title": "Stardiver"
        },
        {
          "catno": "SUB 4841.2, SPIRIT ZONE 027",
          "country": "France",
          "format": "CD, Album, Mixed",
          "id": 93485,
          "label": "Distance, Spirit Zone Recordings",
          "released": "1997",
          "resource_url": "http://api.discogs.com/releases/93485",
          "status": "Accepted",
          "thumb": "https://api-img.discogs.com/xDakT4H-4O6oBv6M7gVJteEl8p4=/fit-in/150x150/filters:strip_icc():format(jpeg):mode_rgb()/discogs-images/R-93485-1126739582.jpeg.jpg",
          "title": "Stardiver"
        }
      ]
    }
  • Response  404Toggle
  • Headers
    Status: HTTP/1.1 404 Not Found
    Reproxy-Status: yes
    Access-Control-Allow-Origin: *
    Content-Type: application/json
    Server: lighttpd
    Content-Length: 40
    Date: Tue, 01 Jul 2014 01:20:23 GMT
    X-Varnish: 1465732620
    Age: 0
    Via: 1.1 varnish
    Connection: keep-alive
    Body
    {
      "message": "Master Release not found."
    }

Artist 

The Artist resource represents a person in the Discogs database who contributed to a Release in some capacity.

Get Artist
/artists/{artist_id}

Get an artist

  • Parameters
  • artist_id
    number (required) Example: 108713

    The Artist ID

  • Response  200Toggle
  • Headers
    Status: HTTP/1.1 200 OK
    Reproxy-Status: yes
    Access-Control-Allow-Origin: *
    Content-Type: application/json
    Server: lighttpd
    Content-Length: 1258
    Date: Tue, 01 Jul 2014 01:06:53 GMT
    X-Varnish: 1465566651
    Age: 0
    Via: 1.1 varnish
    Connection: keep-alive
    Body
    {
      "namevariations": [
        "Nickleback"
      ],
      "profile": "Nickelback is a Canadian rock band from Hanna, Alberta formed in 1995. Nickelback's music is classed as hard rock and alternative metal. Nickelback is one of the most commercially successful Canadian groups, having sold almost 50 million albums worldwide, ranking as the 11th best selling music act of the 2000s, and is the 2nd best selling foreign act in the U.S. behind The Beatles for the 2000's.",
      "releases_url": "https://api.discogs.com/artists/108713/releases",
      "resource_url": "https://api.discogs.com/artists/108713",
      "uri": "http://www.discogs.com/artist/108713-Nickelback",
      "urls": [
        "http://www.nickelback.com/",
        "http://en.wikipedia.org/wiki/Nickelback"
      ],
      "data_quality": "Needs Vote",
      "id": 108713,
      "images": [
        {
          "height": 260,
          "resource_url": "https://api-img.discogs.com/9xJ5T7IBn23DDMpg1USsDJ7IGm4=/330x260/smart/filters:strip_icc():format(jpeg):mode_rgb():quality(96)/discogs-images/A-108713-1110576087.jpg.jpg",
          "type": "primary",
          "uri": "https://api-img.discogs.com/9xJ5T7IBn23DDMpg1USsDJ7IGm4=/330x260/smart/filters:strip_icc():format(jpeg):mode_rgb():quality(96)/discogs-images/A-108713-1110576087.jpg.jpg",
          "uri150": "https://api-img.discogs.com/--xqi8cBtaBZz3qOjVcvzGvNRmU=/150x150/smart/filters:strip_icc():format(jpeg):mode_rgb()/discogs-images/A-108713-1110576087.jpg.jpg",
          "width": 330
        },
        {
          "height": 500,
          "resource_url": "https://api-img.discogs.com/r1jRG8b9-nlqTHPlJ-t8JR5ugoA=/493x500/smart/filters:strip_icc():format(jpeg):mode_rgb():quality(96)/discogs-images/A-108713-1264273865.jpeg.jpg",
          "type": "secondary",
          "uri": "https://api-img.discogs.com/r1jRG8b9-nlqTHPlJ-t8JR5ugoA=/493x500/smart/filters:strip_icc():format(jpeg):mode_rgb():quality(96)/discogs-images/A-108713-1264273865.jpeg.jpg",
          "uri150": "https://api-img.discogs.com/6K-cI5xDgsurmc-2OX6uCygzDgw=/150x150/smart/filters:strip_icc():format(jpeg):mode_rgb()/discogs-images/A-108713-1264273865.jpeg.jpg",
          "width": 493
        }
      ],
      "members": [
        {
          "active": true,
          "id": 270222,
          "name": "Chad Kroeger",
          "resource_url": "https://api.discogs.com/artists/270222"
        },
        {
          "active": true,
          "id": 685755,
          "name": "Daniel Adair",
          "resource_url": "https://api.discogs.com/artists/685755"
        },
        {
          "active": true,
          "id": 685754,
          "name": "Mike Kroeger",
          "resource_url": "https://api.discogs.com/artists/685754"
        },
        {
          "active": true,
          "id": 685756,
          "name": "Ryan \"Vik\" Vikedal",
          "resource_url": "https://api.discogs.com/artists/685756"
        },
        {
          "active": true,
          "id": 685757,
          "name": "Ryan Peake",
          "resource_url": "https://api.discogs.com/artists/685757"
        }
      ],
    }
  • Response  404Toggle
  • Headers
    Status: HTTP/1.1 404 Not Found
    Reproxy-Status: yes
    Access-Control-Allow-Origin: *
    Content-Type: application/json
    Server: lighttpd
    Content-Length: 32
    Date: Tue, 01 Jul 2014 01:08:31 GMT
    X-Varnish: 1465587583
    Age: 0
    Via: 1.1 varnish
    Connection: keep-alive
    Body
    {
      "message": "Artist not found."
    }

Artist Releases 

Returns a list of Releases and Masters associated with the Artist.
Accepts Pagination.

Get an Artist's Releases
/artists/{artist_id}/releases

Get an artist’s releases

  • Parameters
  • artist_id
    number (required) Example: 108713

    The Artist ID

  • Response  200Toggle
  • Headers
    Status: HTTP/1.1 200 OK
    Reproxy-Status: yes
    Access-Control-Allow-Origin: *
    Content-Type: application/json
    Server: lighttpd
    Content-Length: 1258
    Date: Tue, 01 Jul 2014 01:06:53 GMT
    X-Varnish: 1465566651
    Age: 0
    Via: 1.1 varnish
    Connection: keep-alive
    Body
    {
      "pagination": {
        "per_page": 50,
        "items": 9,
        "page": 1,
        "urls": {},
        "pages": 1
      },
      "releases": [
        {
          "artist": "Nickelback",
          "id": 173765,
          "main_release": 3128432,
          "resource_url": "http://api.discogs.com/masters/173765",
          "role": "Main",
          "thumb": "https://api-img.discogs.com/lb0zp7--FLaRP0LmJ4W6DhfweNc=/fit-in/90x90/filters:strip_icc():format(jpeg):mode_rgb()/discogs-images/R-5557864-1396493975-7618.jpeg.jpg",
          "title": "Curb",
          "type": "master",
          "year": 1996
        },
        {
          "artist": "Nickelback",
          "format": "CD, EP",
          "id": 4299404,
          "label": "Not On Label (Nickelback Self-released)",
          "resource_url": "http://api.discogs.com/releases/4299404",
          "role": "Main",
          "status": "Accepted",
          "thumb": "https://api-img.discogs.com/eFRGD78N7UhtvRjhdLZYXs2QJXk=/fit-in/90x90/filters:strip_icc():format(jpeg):mode_rgb()/discogs-images/R-4299404-1361106117-3632.jpeg.jpg",
          "title": "Hesher",
          "type": "release",
          "year": 1996
        },
        {
          "artist": "Nickelback",
          "id": 173767,
          "main_release": 1905922,
          "resource_url": "http://api.discogs.com/masters/173767",
          "role": "Main",
          "thumb": "https://api-img.discogs.com/12LXbUV44IHjyb6drFZOTQxgCqs=/fit-in/90x90/filters:strip_icc():format(jpeg):mode_rgb()/discogs-images/R-1905922-1251540516.jpeg.jpg",
          "title": "Leader Of Men",
          "type": "master",
          "year": 1999
        }
      ]
    }
  • Response  404Toggle
  • Headers
    Status: HTTP/1.1 404 Not Found
    Reproxy-Status: yes
    Access-Control-Allow-Origin: *
    Content-Type: application/json
    Server: lighttpd
    Content-Length: 32
    Date: Tue, 01 Jul 2014 01:08:31 GMT
    X-Varnish: 1465587583
    Age: 0
    Via: 1.1 varnish
    Connection: keep-alive
    Body
    {
      "message": "Artist not found."
    }

Label 

The Label resource represents a label, company, recording studio, location, or other entity involved with Artists and Releases. Labels were recently expanded in scope to include things that aren’t labels – the name is an artifact of this history.

Get Label
/labels/{label_id}

Get a label

  • Parameters
  • label_id
    number (required) Example: 1

    The Label ID

  • Response  200Toggle
  • Headers
    Status: HTTP/1.1 200 OK
    Reproxy-Status: yes
    Access-Control-Allow-Origin: *
    Content-Type: application/json
    Server: lighttpd
    Content-Length: 2834
    Date: Tue, 01 Jul 2014 01:16:01 GMT
    X-Varnish: 1465678820
    Age: 0
    Via: 1.1 varnish
    Connection: keep-alive
    Body
    {
      "profile": "Classic Techno label from Detroit, USA.\r\n[b]Label owner:[/b] [a=Carl Craig].\r\n",
      "releases_url": "https://api.discogs.com/labels/1/releases",
      "name": "Planet E",
      "contact_info": "Planet E Communications\r\nP.O. Box 27218\r\nDetroit, 48227, USA\r\n\r\np: 313.874.8729 \r\nf: 313.874.8732\r\n\r\nemail: info AT Planet-e DOT net\r\n",
      "uri": "http://www.discogs.com/label/1-Planet-E",
      "sublabels": [
        {
          "resource_url": "https://api.discogs.com/labels/86537",
          "id": 86537,
          "name": "Antidote (4)"
        },
        {
          "resource_url": "https://api.discogs.com/labels/41841",
          "id": 41841,
          "name": "Community Projects"
        }
      ],
      "urls": [
        "http://www.planet-e.net",
        "http://planetecommunications.bandcamp.com",
        "http://twitter.com/planetedetroit"
      ],
      "images": [
        {
          "height": 24,
          "resource_url": "https://api-img.discogs.com/85-gKw4oEXfDp9iHtqtCF5Y_ZgI=/fit-in/132x24/filters:strip_icc():format(jpeg):mode_rgb():quality(96)/discogs-images/L-1-1111053865.png.jpg",
          "type": "primary",
          "uri": "https://api-img.discogs.com/85-gKw4oEXfDp9iHtqtCF5Y_ZgI=/fit-in/132x24/filters:strip_icc():format(jpeg):mode_rgb():quality(96)/discogs-images/L-1-1111053865.png.jpg",
          "uri150": "https://api-img.discogs.com/cYmCut4Yh99FaLFHyoqkFo-Md1E=/fit-in/150x150/filters:strip_icc():format(jpeg):mode_rgb()/discogs-images/L-1-1111053865.png.jpg",
          "width": 132
        }
      ],
      "resource_url": "https://api.discogs.com/labels/1",
      "id": 1,
      "data_quality": "Needs Vote"
    }
  • Response  404Toggle
  • Headers
    Status: HTTP/1.1 404 Not Found
    Reproxy-Status: yes
    Access-Control-Allow-Origin: *
    Content-Type: application/json
    Server: lighttpd
    Content-Length: 30
    Date: Tue, 01 Jul 2014 01:17:27 GMT
    X-Varnish: 1465696276
    Age: 0
    Via: 1.1 varnish
    Connection: keep-alive
    Body
    {
      "message": "Label not found."
    }

All Label Releases 

Get all Label Releases
/labels/{label_id}/releases{?page,per_page}

Returns a list of Releases associated with the label. Accepts Pagination parameters.

  • Parameters
  • label_id
    number (required) Example: 1

    The Label ID

    page
    number (optional) Example: 3

    The page you want to request

    per_page
    number (optional) Example: 25

    The number of items per page

  • Response  200Toggle
  • Headers
    Status: HTTP/1.1 200 OK
    Reproxy-Status: yes
    Access-Control-Allow-Origin: *
    Content-Type: application/json
    Server: lighttpd
    Content-Length: 2834
    Date: Tue, 01 Jul 2014 01:16:01 GMT
    X-Varnish: 1465678820
    Age: 0
    Via: 1.1 varnish
    Connection: keep-alive
    Body
    {
      "pagination": {
        "per_page": 5,
        "pages": 68,
        "page": 1,
        "urls": {
          "last": "https://api.discogs.com/labels/1/releases?per_page=5&page=68",
          "next": "https://api.discogs.com/labels/1/releases?per_page=5&page=2"
        },
        "items": 338
      },
      "releases": [
        {
          "artist": "Andrea Parker",
          "catno": "!K7071CD",
          "format": "CD, Mixed",
          "id": 2801,
          "resource_url": "http://api.discogs.com/releases/2801",
          "status": "Accepted",
          "thumb": "https://api-img.discogs.com/cYmCut4Yh99FaLFHyoqkFo-Md1E=/fit-in/150x150/filters:strip_icc():format(jpeg):mode_rgb()/discogs-images/L-1-1111053865.png.jpg",
          "title": "DJ-Kicks",
          "year": 1998
        },
        {
          "artist": "Naomi Daniel",
          "catno": "2INZ 00140",
          "format": "12\"",
          "id": 65040,
          "resource_url": "http://api.discogs.com/releases/65040",
          "status": "Accepted",
          "thumb": "https://api-img.discogs.com/cYmCut4Yh99FaLFHyoqkFo-Md1E=/fit-in/150x150/filters:strip_icc():format(jpeg):mode_rgb()/discogs-images/L-1-1111053865.png.jpg",
          "title": "Stars",
          "year": 1993
        },
        {
          "artist": "Innerzone Orchestra",
          "catno": "546 137-2",
          "format": "CD, Album, P/Mixed",
          "id": 9922,
          "resource_url": "http://api.discogs.com/releases/9922",
          "status": "Accepted",
          "thumb": "https://api-img.discogs.com/cYmCut4Yh99FaLFHyoqkFo-Md1E=/fit-in/150x150/filters:strip_icc():format(jpeg):mode_rgb()/discogs-images/L-1-1111053865.png.jpg",
          "title": "Programmed",
          "year": 1999
        }
      ]
    }
  • Response  404Toggle
  • Headers
    Status: HTTP/1.1 404 Not Found
    Reproxy-Status: yes
    Access-Control-Allow-Origin: *
    Content-Type: application/json
    Server: lighttpd
    Content-Length: 30
    Date: Tue, 01 Jul 2014 01:17:27 GMT
    X-Varnish: 1465696276
    Age: 0
    Via: 1.1 varnish
    Connection: keep-alive
    Body
    {
      "message": "Label not found."
    }

Issue a search query to our database. This endpoint accepts pagination parameters

Authentication (as any user) is required.

Search
/database/search?q={query}&{?type,title,release_title,credit,artist,anv,label,genre,style,country,year,format,catno,barcode,track,submitter,contributor}

Issue a search query

  • Parameters
  • query
    string (optional) Example: nirvana

    Your search query

    type
    string (optional) Example: release

    String. One of release, master, artist, label

    title
    string (optional) Example: nirvana - nevermind

    Search by combined “Artist Name - Release Title” title field.

    release_title
    string (optional) Example: nevermind

    Search release titles.

    credit
    string (optional) Example: kurt

    Search release credits.

    artist
    string (optional) Example: nirvana

    Search artist names.

    anv
    string (optional) Example: nirvana

    Search artist ANV.

    label
    string (optional) Example: dgc

    Search label names.

    genre
    string (optional) Example: rock

    Search genres.

    style
    string (optional) Example: grunge

    Search styles.

    country
    string (optional) Example: canada

    Search release country.

    year
    string (optional) Example: 1991

    Search release year.

    format
    string (optional) Example: album

    Search formats.

    catno
    string (optional) Example: DGCD-24425

    Search catalog number.

    barcode
    string (optional) Example: 7 2064-24425-2 4

    Search barcodes.

    track
    string (optional) Example: smells like teen spirit

    Search track titles.

    submitter
    string (optional) Example: milKt

    Search submitter username.

    contributor
    string (optional) Example: jerome99

    Search contributor usernames.

  • RequestToggle
  • Body
    GET https://api.discogs.com/database/search?release_title=nevermind&artist=nirvana&per_page=3&page=1
  • Response  200Toggle
  • Headers
    Status: HTTP/1.1 200 OK
    Reproxy-Status: yes
    Access-Control-Allow-Origin: *
    Cache-Control: public, must-revalidate
    Content-Type: application/json
    Content-Encoding: gzip
    Server: lighttpd
    Content-Length: 623
    Date: Tue, 15 Jul 2014 18:44:17 GMT
    X-Varnish: 1701844380 1701819611
    Age: 101
    Via: 1.1 varnish
    Connection: keep-alive
    Body
    {
      "pagination": {
        "per_page": 3,
        "pages": 66,
        "page": 1,
        "urls": {
          "last": "http://api.discogs.com/database/search?per_page=3&artist=nirvana&release_title=nevermind&page=66",
          "next": "http://api.discogs.com/database/search?per_page=3&artist=nirvana&release_title=nevermind&page=2"
        },
        "items": 198
      },
      "results": [
        {
          "style": [
            "Interview",
            "Grunge"
          ],
          "thumb": "",
          "title": "Nirvana - Nevermind",
          "country": "Australia",
          "format": [
            "DVD",
            "PAL"
          ],
          "uri": "/Nirvana-Nevermind-Classic-Albums/release/2028757",
          "community": {
            "want": 1,
            "have": 5
          },
          "label": [
            "Eagle Vision",
            "Rajon Vision",
            "Classic Albums"
          ],
          "catno": "RV0296",
          "year": "2005",
          "genre": [
            "Non-Music",
            "Rock"
          ],
          "resource_url": "http://api.discogs.com/releases/2028757",
          "type": "release",
          "id": 2028757
        },
        {
          "style": [
            "Interview",
            "Grunge"
          ],
          "thumb": "",
          "title": "Nirvana - Nevermind",
          "country": "France",
          "format": [
            "DVD",
            "PAL"
          ],
          "uri": "/Nirvana-Nevermind-Classic-Albums/release/1852962",
          "community": {
            "want": 4,
            "have": 21
          },
          "label": [
            "Eagle Vision",
            "Classic Albums"
          ],
          "catno": "EV 426200",
          "year": "2005",
          "genre": [
            "Non-Music",
            "Rock"
          ],
          "resource_url": "http://api.discogs.com/releases/1852962",
          "type": "release",
          "id": 1852962
        },
        {
          "style": [
            "Hard Rock",
            "Classic Rock"
          ],
          "thumb": "",
          "format": [
            "UMD"
          ],
          "country": "Europe",
          "barcode": [
            "5 034504 843646"
          ],
          "uri": "/Nirvana-Nevermind/release/3058947",
          "community": {
            "want": 10,
            "have": 3
          },
          "label": [
            "Eagle Vision"
          ],
          "catno": "ERUMD436",
          "genre": [
            "Rock"
          ],
          "title": "Nirvana - Nevermind",
          "resource_url": "http://api.discogs.com/releases/3058947",
          "type": "release",
          "id": 3058947
        }
      ]
    }
  • Response  500Toggle
  • Headers
    Status: HTTP/1.1 500 Server Error
    Reproxy-Status: yes
    Access-Control-Allow-Origin: *
    Content-Type: application/json
    Server: lighttpd
    Content-Length: 32
    Date: Tue, 01 Jul 2014 01:08:31 GMT
    X-Varnish: 1465587583
    Age: 0
    Via: 1.1 varnish
    Connection: keep-alive
    Body
    {
      "message": "Query time exceeded. Please try a simpler query."
    }
  • Response  500Toggle
  • Headers
    Status: HTTP/1.1 500 Server Error
    Reproxy-Status: yes
    Access-Control-Allow-Origin: *
    Content-Type: application/json
    Server: lighttpd
    Content-Length: 32
    Date: Tue, 01 Jul 2014 01:08:31 GMT
    X-Varnish: 1465587583
    Age: 0
    Via: 1.1 varnish
    Connection: keep-alive
    Body
    {
      "message": "An internal server error occurred. (Malformed query?)"
    }
Next  Previous

Images 

The Image resource represents a user-contributed image of a database object, such as Artists or Releases. Image requests require authentication and are subject to rate limiting.

It’s unlikely that you’ll ever have to construct an image URL; images keys on other resources use fully-qualified URLs, including hostname and protocol. To retrieve images, authenticate via OAuth or Discogs Auth and fetch the object that contains the image of interest (e.g., the release, user profile, etc.). The image URL will be in the response using the HTTPS protocol, and requesting that URL should succeed.

Next  Previous

Marketplace 

Inventory 

Returns the list of listings in a user’s inventory. Accepts Pagination parameters.
Basic information about each listing and the corresponding release is provided, suitable for display in a list. For detailed information about the release, make another API call to fetch the corresponding Release.

If you are not authenticated as the inventory owner, only items that have a status of For Sale will be visible.
If you are authenticated as the inventory owner you will get additional weight, format_quantity, external_id, and location keys.

Get inventory
/users/{username}/inventory{?status,sort,sort_order}

Get a seller’s inventory

  • Parameters
  • username
    string (required) Example: 360vinyl

    The username for whose inventory you are fetching

    status
    string (optional) Example: for sale

    Only show items with this status.

    sort
    string (optional) Example: price

    Sort items by this field:
    listed
    price
    item (i.e. the title of the release)
    artist
    label
    catno
    audio
    status (when authenticated as the inventory owner)
    location (when authenticated as the inventory owner)

    sort_order
    string (optional) Example: asc

    Sort items in a particular order (one of asc, desc)

  • Response  200Toggle
  • Headers
    Status: HTTP/1.1 200 OK
    Reproxy-Status: yes
    Access-Control-Allow-Origin: *
    Cache-Control: public, must-revalidate
    Content-Type: application/json
    Link: <https://api.discogs.com/users/360vinyl/inventory?per_page=50&page=18>; rel="last", <https://api.discogs.com/users/360vinyl/inventory?per_page=50&page=2>; rel="next"
    Server: lighttpd
    Content-Length: 36813
    Date: Tue, 15 Jul 2014 18:53:23 GMT
    X-Varnish: 1701983958
    Age: 0
    Via: 1.1 varnish
    Connection: keep-alive
    Body
    {
      "pagination": {
        "per_page": 50,
        "items": 4,
        "page": 1,
        "urls": {},
        "pages": 1
      },
      "listings": [
        {
          "status": "For Sale",
          "price": {
            "currency": "USD",
            "value": 149.99
          },
          "allow_offers": true,
          "sleeve_condition": "Near Mint (NM or M-)",
          "id": 150899904,
          "condition": "Near Mint (NM or M-)",
          "posted": "2014-07-01T10:20:17-07:00",
          "ships_from": "United States",
          "uri": "http://www.discogs.com/sell/item/150899904",
          "comments": "Includes promotional booklet from original purchase!",
          "seller": {
            "username": "rappcats",
            "resource_url": "https://api.discogs.com/users/rappcats",
            "id": 2098225
          },
          "release": {
            "catalog_number": "509990292346, TMR092",
            "resource_url": "https://api.discogs.com/releases/2992668",
            "year": 2011,
            "id": 2992668,
            "description": "Danger Mouse & Daniele Luppi - Rome (LP, Ora + LP, Whi + Album, Ltd, Tip)"
          },
          "resource_url": "https://api.discogs.com/marketplace/listings/150899904",
          "audio": false
        },
        {
          "status": "For Sale",
          "price": {
            "currency": "USD",
            "value": 49.99
          },
          "allow_offers": false,
          "sleeve_condition": "Very Good Plus (VG+)",
          "id": 155473349,
          "condition": "Very Good Plus (VG+)",
          "posted": "2014-07-01T10:20:17-07:00",
          "ships_from": "United States",
          "uri": "http://www.discogs.com/sell/item/155473349",
          "comments": "Includes slipmats",
          "seller": {
            "username": "rappcats",
            "resource_url": "https://api.discogs.com/users/rappcats",
            "id": 2098225
          },
          "release": {
            "catalog_number": "STH 2222",
            "resource_url": "https://api.discogs.com/releases/1900152",
            "year": 2009,
            "id": 1900152,
            "description": "Various - Stones Throw X Serato (2x12\", Ltd, Cle)"
          },
          "resource_url": "https://api.discogs.com/marketplace/listings/155473349",
          "audio": false
        },
        {
          "status": "For Sale",
          "price": {
            "currency": "USD",
            "value": 39.99
          },
          "allow_offers": true,
          "sleeve_condition": "Near Mint (NM or M-)",
          "id": 150899171,
          "condition": "Very Good Plus (VG+)",
          "posted": "2014-07-07T11:40:08-07:00",
          "ships_from": "United States",
          "uri": "http://www.discogs.com/sell/item/150899171",
          "comments": "",
          "seller": {
            "username": "rappcats",
            "resource_url": "https://api.discogs.com/users/rappcats",
            "id": 2098225
          },
          "release": {
            "catalog_number": "STH 2172",
            "resource_url": "https://api.discogs.com/releases/1842118",
            "year": 2009,
            "id": 1842118,
            "description": "Last Electro-Acoustic Space Jazz & Percussion Ensemble, The - Summer Suite (CD, MiniAlbum, Ltd)"
          },
          "resource_url": "https://api.discogs.com/marketplace/listings/150899171",
          "audio": false
        },
        {
          "status": "For Sale",
          "price": {
            "currency": "USD",
            "value": 229.99
          },
          "allow_offers": false,
          "sleeve_condition": "Near Mint (NM or M-)",
          "id": 171931719,
          "condition": "Near Mint (NM or M-)",
          "posted": "2014-07-12T16:23:14-07:00",
          "ships_from": "United States",
          "uri": "http://www.discogs.com/sell/item/171931719",
          "comments": "Includes poster, includes download card, includes 7\", in original bag w/ hype sticker. Complete set!",
          "seller": {
            "username": "rappcats",
            "resource_url": "https://api.discogs.com/users/rappcats",
            "id": 2098225
          },
          "release": {
            "catalog_number": "NSD-120",
            "resource_url": "https://api.discogs.com/releases/2791275",
            "year": 2011,
            "id": 2791275,
            "description": "Metal Fingers - Presents Special Herbs The Box Set Vol. 0-9 (Box, Comp, Ltd + 10xLP + 7\")"
          },
          "resource_url": "https://api.discogs.com/marketplace/listings/171931719",
          "audio": false
        }
      ]
    }
  • Response  404Toggle
  • Headers
    Status: HTTP/1.1 404 Not Found
    Reproxy-Status: yes
    Access-Control-Allow-Origin: *
    Content-Type: application/json
    Server: lighttpd
    Content-Length: 33
    Date: Tue, 01 Jul 2014 01:03:20 GMT
    X-Varnish: 1465521729
    Age: 0
    Via: 1.1 varnish
    Connection: keep-alive
    Body
    {
      "message": "The request resource was not found."
    }
  • Response  422Toggle
  • Headers
    Status: HTTP/1.1 422 Unprocessable Entity
    Reproxy-Status: yes
    Access-Control-Allow-Origin: *
    Cache-Control: public, must-revalidate
    Content-Type: application/json
    Server: lighttpd
    Content-Length: 114
    Date: Tue, 15 Jul 2014 19:16:59 GMT
    X-Varnish: 1702310957
    Age: 0
    Via: 1.1 varnish
    Connection: keep-alive
    Body
    {
      "message": "Invalid status: expected one of All, Deleted, Draft, Expired, For Sale, Sold, Suspended, Violation."
    }

Listing 

View the data associated with a listing.
If the authorized user is the listing owner the listing will include the weight, format_quantity, external_id, and location keys.

Get listing
/marketplace/listings/{listing_id}

The Listing resource allows you to view Marketplace listings.

  • Parameters
  • listing_id
    number (required) Example: 172723812

    The ID of the listing you are fetching

  • Response  200Toggle
  • Headers
    Status: HTTP/1.1 200 OK
    Reproxy-Status: yes
    Access-Control-Allow-Origin: *
    Cache-Control: public, must-revalidate
    Content-Type: application/json
    Server: lighttpd
    Content-Length: 780
    Date: Tue, 15 Jul 2014 19:59:59 GMT
    X-Varnish: 1702965334
    Age: 0
    Via: 1.1 varnish
    Connection: keep-alive
    Body
    {
      "status": "For Sale",
      "price": {
        "currency": "USD",
        "value": 120
      },
      "allow_offers": false,
      "sleeve_condition": "Mint (M)",
      "id": 172723812,
      "condition": "Mint (M)",
      "posted": "2014-07-15T12:55:01-07:00",
      "ships_from": "United States",
      "uri": "http://www.discogs.com/sell/item/172723812",
      "comments": "Brand new... Still sealed!",
      "seller": {
        "username": "Booms528",
        "resource_url": "https://api.discogs.com/users/Booms528",
        "id": 1369620
      },
      "release": {
        "catalog_number": "541125-1, 1-541125 (K1)",
        "resource_url": "https://api.discogs.com/releases/5610049",
        "year": 2014,
        "id": 5610049,
        "description": "LCD Soundsystem - The Long Goodbye: LCD Soundsystem Live At Madison Square Garden (5xLP + Box)"
      },
      "resource_url": "https://api.discogs.com/marketplace/listings/172723812",
      "audio": false
    }
  • Response  404Toggle
  • Headers
    Status: HTTP/1.1 404 Not Found
    Reproxy-Status: yes
    Access-Control-Allow-Origin: *
    Content-Type: application/json
    Server: lighttpd
    Content-Length: 33
    Date: Tue, 01 Jul 2014 01:03:20 GMT
    X-Varnish: 1465521729
    Age: 0
    Via: 1.1 varnish
    Connection: keep-alive
    Body
    {
      "message": "The request resource was not found."
    }
Edit A Listing
/marketplace/listings/{listing_id}

Edit the data associated with a listing.

If the listing’s status is not For Sale, Draft, or Expired, it cannot be modified – only deleted. To re-list a Sold listing, a new listing must be created.

Authentication as the listing owner is required.

  • Parameters
  • listing_id
    number (required) Example: 172723812

    The ID of the listing you are fetching

    release_id
    number (required) Example: 1

    The ID of the release you are posting

    condition
    string (required) Example: Mint

    The condition of the release you are posting. Must be one of the following:
    Mint (M)
    Near Mint (NM or M-)
    Very Good Plus (VG+)
    Very Good (VG)
    Good Plus (G+)
    Good (G)
    Fair (F)
    Poor (P)

    sleeve_condition
    string (optional) Example: Fair

    The condition of the sleeve of the item you are posting. Must be one of the following:
    Mint (M)
    Near Mint (NM or M-)
    Very Good Plus (VG+)
    Very Good (VG)
    Good Plus (G+)
    Good (G)
    Fair (F)
    Poor (P)
    Generic Not Graded No Cover

    price
    number (required) Example: 10.00

    The price of the item (in the seller’s currency).

    comments
    string (optional) Example: This item is wonderful

    Any remarks about the item that will be displayed to buyers.

    allow_offers
    boolean (optional) Example: true

    Whether or not to allow buyers to make offers on the item. Defaults to false.

    status
    string (required) Example: Draft

    The status of the listing. Defaults to “For Sale”. Options are For Sale (the listing is ready to be shown on the Marketplace) and Draft (the listing is not ready for public display).

    external_id
    string (optional) Example: 10.00

    A freeform field that can be used for the seller’s own reference. Information stored here will not be displayed to anyone other than the seller. This field is called “Private Comments” on the Discogs website.

    location
    string (optional) Example: 10.00

    A freeform field that is intended to help identify an item’s physical storage location. Information stored here will not be displayed to anyone other than the seller. This field will be visible on the inventory management page and will be available in inventory exports via the website.

    weight
    number (optional) Example: 10.00

    The weight, in grams, of this listing, for the purpose of calculating shipping.

    format_quantity
    number (optional) Example: 10.00

    The number of items this listing counts as, for the purpose of calculating shipping. This field is called “Counts As” on the Discogs website.

  • RequestToggle
  • Headers
    Content-Type: application/json
  • Response  204
Delete A Listing
/marketplace/listings/{listing_id}

Permanently remove a listing from the Marketplace.
Authentication as the listing owner is required.

  • Parameters
  • listing_id
    number (required) Example: 172723812

    The ID of the listing you are fetching

  • RequestToggle
  • Headers
    Content-Type: application/json
  • Response  204

New Listing 

Create New Listing
/marketplace/listings{?release_id,condition,sleeve_condition,price,comments,allow_offers,status,external_id,location,weight,format_quantity}

Create a Marketplace listing.
Authentication is required; the listing will be added to the authenticated user’s Inventory.

  • Parameters
  • release_id
    number (required) Example: 1

    The ID of the release you are posting

    condition
    string (required) Example: Mint

    The condition of the release you are posting. Must be one of the following:
    Mint (M)
    Near Mint (NM or M-)
    Very Good Plus (VG+)
    Very Good (VG)
    Good Plus (G+)
    Good (G)
    Fair (F)
    Poor (P)

    sleeve_condition
    string (optional) Example: Fair

    The condition of the sleeve of the item you are posting. Must be one of the following:
    Mint (M)
    Near Mint (NM or M-)
    Very Good Plus (VG+)
    Very Good (VG)
    Good Plus (G+)
    Good (G)
    Fair (F)
    Poor (P)
    Generic Not Graded No Cover

    price
    number (required) Example: 10.00

    The price of the item (in the seller’s currency).

    comments
    string (optional) Example: This item is wonderful

    Any remarks about the item that will be displayed to buyers.

    allow_offers
    boolean (optional) Example: true

    Whether or not to allow buyers to make offers on the item. Defaults to false.

    status
    string (required) Example: Draft

    The status of the listing. Defaults to “For Sale”. Options are For Sale (the listing is ready to be shown on the Marketplace) and Draft (the listing is not ready for public display).

    external_id
    string (optional) Example: 10.00

    A freeform field that can be used for the seller’s own reference. Information stored here will not be displayed to anyone other than the seller. This field is called “Private Comments” on the Discogs website.

    location
    string (optional) Example: 10.00

    A freeform field that is intended to help identify an item’s physical storage location. Information stored here will not be displayed to anyone other than the seller. This field will be visible on the inventory management page and will be available in inventory exports via the website.

    weight
    number (optional) Example: 10.00

    The weight, in grams, of this listing, for the purpose of calculating shipping.

    format_quantity
    number (optional) Example: 10.00

    The number of items this listing counts as, for the purpose of calculating shipping. This field is called “Counts As” on the Discogs website.

  • RequestToggle
  • Headers
    Content-Type: application/json
  • Response  201Toggle
  • Body
    {
      "listing_id": 41578241,
      "resource_url": "https://api.discogs.com/marketplace/listings/41578241"
    }
  • Response  403Toggle
  • Body
    {
      "message": "You don't have permission to access this resource."
    }

Order 

The Order resource allows you to manage a seller’s Marketplace orders.

Get Order
/marketplace/orders/{order_id}

View the data associated with an order.
Authentication as the seller is required.

  • Parameters
  • order_id
    number (required) Example: 1-1

    The ID of the order you are fetching

  • Response  200Toggle
  • Headers
    Status: HTTP/1.1 200 OK
    Reproxy-Status: yes
    Access-Control-Allow-Origin: *
    Cache-Control: public, must-revalidate
    Content-Type: application/json
    Server: lighttpd
    Content-Length: 780
    Date: Tue, 15 Jul 2014 19:59:59 GMT
    X-Varnish: 1702965334
    Age: 0
    Via: 1.1 varnish
    Connection: keep-alive
    Body
    {
      "id": "1-1",
      "resource_url": "https://api.discogs.com/marketplace/orders/1-1",
      "messages_url": "https://api.discogs.com/marketplace/orders/1-1/messages",
      "uri": "http://www.discogs.com/sell/order/1-1",
      "status": "New Order",
      "next_status": [
        "New Order",
        "Buyer Contacted",
        "Invoice Sent",
        "Payment Pending",
        "Payment Received",
        "Shipped",
        "Refund Sent",
        "Cancelled (Non-Paying Buyer)",
        "Cancelled (Item Unavailable)",
        "Cancelled (Per Buyer's Request)"
      ],
      "fee": {
        "currency": "USD",
        "value": 2.52
      },
      "created": "2011-10-21T09:25:17-07:00",
      "items": [
        {
          "release": {
            "id": 1,
            "description": "Persuader, The - Stockholm (2x12\")"
          },
          "price": {
            "currency": "USD",
            "value": 42
          },
          "id": 41578242
        }
      ],
      "shipping": {
        "currency": "USD",
        "value": 0
      },
      "shipping_address": "Asdf Exampleton\n234 NE Asdf St.\nAsdf Town, Oregon, 14423\nUnited States\n\nPhone: 555-555-2733\nPaypal address: asdf@example.com",
      "additional_instructions": "please use sturdy packaging.",
      "seller": {
        "resource_url": "https://api.discogs.com/users/example_seller",
        "username": "example_seller",
        "id": 1
      },
      "last_activity": "2011-10-21T09:25:17-07:00",
      "buyer": {
        "resource_url": "https://api.discogs.com/users/example_buyer",
        "username": "example_buyer",
        "id": 2
      },
      "total": {
        "currency": "USD",
        "value": 42
      }
    }
  • Response  401Toggle
  • Headers
    Status: HTTP/1.1 401 Unauthorized
    Reproxy-Status: yes
    Access-Control-Allow-Origin: *
    Cache-Control: public, must-revalidate
    Content-Type: application/json
    WWW-Authenticate: OAuth realm="https://api.discogs.com"
    Server: lighttpd
    Content-Length: 61
    Date: Tue, 15 Jul 2014 20:37:49 GMT
    X-Varnish: 1703540564
    Age: 0
    Via: 1.1 varnish
    Connection: keep-alive
    Body
    {
      "message": "You must authenticate to access this resource."
    }
Edit An Order
/marketplace/orders/{order_id}

Edit the data associated with an order.
Authentication as the seller is required.
The response contains a next_status key – an array of valid next statuses for this order, which you can display to the user in (for example) a dropdown control. This also renders your application more resilient to any future changes in the order status logic.
Changing the order status using this resource will always message the buyer with:

Seller changed status from Old Status to New Status

and does not provide a facility for including a custom message along with the change. For more fine-grained control, use the Add a new message resource, which allows you to simultaneously add a message and change the order status.
If the order status is neither cancelled, Payment Received, nor Shipped, you can change the shipping. Doing so will send an invoice to the buyer and set the order status to Invoice Sent. (For that reason, you cannot set the shipping and the order status in the same request.)

  • Parameters
  • order_id
    number (required) Example: 1-1

    The ID of the order you are fetching

    status
    string (optional) Example: New Order

    The status of the Order you are updating. Must be one of the following:
    New Order
    Buyer Contacted
    Invoice Sent
    Payment Pending
    Payment Received
    Shipped
    Refund Sent
    Cancelled (Non-Paying Buyer)
    Cancelled (Item Unavailable)
    Cancelled (Per Buyer's Request)
    the order’s current status

    Furthermore, the new status must be present in the order’s next_status list. For more information about order statuses, see Edit an order.

    shipping
    number (optional) Example: 5.00

    The order shipping amount. As a side-effect of setting this value, the buyer is invoiced and the order status is set to Invoice Sent.

  • RequestToggle
  • Headers
    Content-Type: application/json
  • Response  200Toggle
  • Body
    {
      "id": "1-1",
      "resource_url": "https://api.discogs.com/marketplace/orders/1-1",
      "messages_url": "https://api.discogs.com/marketplace/orders/1-1/messages",
      "uri": "http://www.discogs.com/sell/order/1-1",
      "status": "Invoice Sent",
      "next_status": [
        "New Order",
        "Buyer Contacted",
        "Invoice Sent",
        "Payment Pending",
        "Payment Received",
        "Shipped",
        "Refund Sent",
        "Cancelled (Non-Paying Buyer)",
        "Cancelled (Item Unavailable)",
        "Cancelled (Per Buyer's Request)"
      ],
      "fee": {
        "currency": "USD",
        "value": 2.52
      },
      "created": "2011-10-21T09:25:17-07:00",
      "items": [
        {
          "release": {
            "id": 1,
            "description": "Persuader, The - Stockholm (2x12\")"
          },
          "price": {
            "currency": "USD",
            "value": 42
          },
          "id": 41578242
        }
      ],
      "shipping": {
        "currency": "USD",
        "value": 5
      },
      "shipping_address": "Asdf Exampleton\n234 NE Asdf St.\nAsdf Town, Oregon, 14423\nUnited States\n\nPhone: 555-555-2733\nPaypal address: asdf@example.com",
      "additional_instructions": "please use sturdy packaging.",
      "seller": {
        "resource_url": "https://api.discogs.com/users/example_seller",
        "username": "example_seller",
        "id": 1
      },
      "last_activity": "2011-10-22T19:18:53-07:00",
      "buyer": {
        "resource_url": "https://api.discogs.com/users/example_buyer",
        "username": "example_buyer",
        "id": 2
      },
      "total": {
        "currency": "USD",
        "value": 47
      }
    }

List Orders 

Returns a list of the authenticated user’s orders. Accepts Pagination parameters.

List Orders
/marketplace/orders{?status,sort,sort_order}

Returns a list of the authenticated user’s orders. Accepts Pagination parameters.

  • Parameters
  • status
    string (optional) Example: 1-1

    Only show orders with this status. Valid status keys are:
    All
    New Order
    Buyer Contacted
    Invoice Sent
    Payment Pending
    Payment Received
    Shipped
    Merged
    Order Changed
    Refund Sent
    Cancelled
    Cancelled (Non-Paying Buyer)
    Cancelled (Item Unavailable)
    Cancelled (Per Buyer's Request) Cancelled (Refund Received)

    sort
    string (optional) Example: 1-1

    Sort items by this field (see below). Valid sort keys are:
    id
    buyer
    created
    status
    last_activity

    sort_order
    string (optional) Example: 1-1

    Sort items in a particular order (one of asc, desc)

  • Response  200Toggle
  • Headers
    Status: HTTP/1.1 200 OK
    Reproxy-Status: yes
    Access-Control-Allow-Origin: *
    Cache-Control: public, must-revalidate
    Content-Type: application/json
    Server: lighttpd
    Content-Length: 780
    Date: Tue, 15 Jul 2014 19:59:59 GMT
    X-Varnish: 1702965334
    Age: 0
    Via: 1.1 varnish
    Connection: keep-alive
    Body
    {
      "pagination": {
        "per_page": 50,
        "pages": 1,
        "page": 1,
        "items": 1,
        "urls": {}
      },
      "orders": [
        {
          "status": "New Order",
          "fee": {
            "currency": "USD",
            "value": 2.52
          },
          "created": "2011-10-21T09:25:17-07:00",
          "items": [
            {
              "release": {
                "id": 1,
                "description": "Persuader, The - Stockholm (2x12\")"
              },
              "price": {
                "currency": "USD",
                "value": 42.0
              },
              "id": 41578242
            }
          ],
          "shipping": {
            "currency": "USD",
            "value": 0.0
          },
          "shipping_address": "Asdf Exampleton\n234 NE Asdf St.\nAsdf Town, Oregon, 14423\nUnited States\n\nPhone: 555-555-2733\nPaypal address: asdf@example.com",
          "additional_instructions": "please use sturdy packaging.",
          "seller": {
            "resource_url": "https://api.discogs.com/users/example_seller",
            "username": "example_seller",
            "id": 1
          },
          "last_activity": "2011-10-21T09:25:17-07:00",
          "buyer": {
            "resource_url": "https://api.discogs.com/users/example_buyer",
            "username": "example_buyer",
            "id": 2
          },
          "total": {
            "currency": "USD",
            "value": 42.0
          },
          "id": "1-1"
          "resource_url": "https://api.discogs.com/marketplace/orders/1-1",
          "messages_url": "https://api.discogs.com/marketplace/orders/1-1/messages",
          "uri": "http://www.discogs.com/sell/order/1-1",
          "next_status": [
            "New Order",
            "Buyer Contacted",
            "Invoice Sent",
            "Payment Pending",
            "Payment Received",
            "Shipped",
            "Refund Sent",
            "Cancelled (Non-Paying Buyer)",
            "Cancelled (Item Unavailable)",
            "Cancelled (Per Buyer's Request)"
          ]
        }
      ]
    }

List Order Messages 

List Order Messages
/marketplace/orders/{order_id}/messages

Returns a list of the order’s messages with the most recent first. Accepts Pagination parameters.
Authentication as the seller is required.

  • Parameters
  • order_id
    string (required) Example: 1-1

    The ID of the order you are fetching

  • Response  200Toggle
  • Headers
    Status: HTTP/1.1 200 OK
    Reproxy-Status: yes
    Access-Control-Allow-Origin: *
    Cache-Control: public, must-revalidate
    Content-Type: application/json
    Server: lighttpd
    Content-Length: 780
    Date: Tue, 15 Jul 2014 19:59:59 GMT
    X-Varnish: 1702965334
    Age: 0
    Via: 1.1 varnish
    Connection: keep-alive
    Body
    {
      "pagination": {
        "per_page": 50,
        "items": 8,
        "page": 1,
        "urls": {},
        "pages": 1
      },
      "messages": [
        {
          "refund": {
            "amount": 5,
            "order": {
              "resource_url": "https://api.discogs.com/marketplace/orders/845236-9",
              "id": "845236-9"
            }
          },
          "timestamp": "2015-06-02T13:17:54-07:00",
          "message": "example_buyer received refund of $5.00.",
          "type": "refund_received",
          "order": {
            "resource_url": "https://api.discogs.com/marketplace/orders/845236-9",
            "id": "845236-9"
          },
          "subject": ""
        },
        {
          "refund": {
            "amount": 5,
            "order": {
              "resource_url": "https://api.discogs.com/marketplace/orders/845236-9",
              "id": "845236-9"
            }
          },
          "timestamp": "2015-06-02T13:17:44-07:00",
          "message": "example_seller sent refund of $5.00.",
          "type": "refund_sent",
          "order": {
            "resource_url": "https://api.discogs.com/marketplace/orders/845236-9",
            "id": "845236-9"
          },
          "subject": ""
        },
        {
          "from": {
            "username": "example_seller",
            "resource_url": "https://api.discogs.com/users/example_seller"
          },
          "timestamp": "2015-06-02T13:17:07-07:00",
          "message": "Thank you for your order!",
          "type": "message",
          "order": {
            "resource_url": "https://api.discogs.com/marketplace/orders/845236-9",
            "id": "845236-9"
          },
          "subject": "New Message - Order #845236-9 - TZ Goes Beyond 10! + 1 more item"
        },
        {
          "status_id": 6,
          "timestamp": "2015-06-02T13:16:57-07:00",
          "actor": {
            "username": "example_seller",
            "resource_url": "https://api.discogs.com/users/example_seller"
          },
          "message": "example_buyer changed the order status to Shipped.",
          "type": "status",
          "order": {
            "resource_url": "https://api.discogs.com/marketplace/orders/845236-9",
            "id": "845236-9"
          },
          "subject": ""
        },
        {
          "status_id": 5,
          "timestamp": "2015-06-02T13:16:51-07:00",
          "actor": {
            "username": "example_seller",
            "resource_url": "https://api.discogs.com/users/example_seller"
          },
          "message": "example_buyer changed the order status to Payment Received.",
          "type": "status",
          "order": {
            "resource_url": "https://api.discogs.com/marketplace/orders/845236-9",
            "id": "845236-9"
          },
          "subject": ""
        },
        {
          "status_id": 3,
          "timestamp": "2015-06-02T13:16:27-07:00",
          "actor": {
            "username": "example_seller",
            "resource_url": "https://api.discogs.com/users/example_seller"
          },
          "message": "example_buyer changed the order status to Invoice Sent.",
          "type": "status",
          "order": {
            "resource_url": "https://api.discogs.com/marketplace/orders/845236-9",
            "id": "845236-9"
          },
          "subject": ""
        },
        {
          "timestamp": "2015-06-02T13:16:27-07:00",
          "original": 0,
          "new": 5,
          "message": "example_seller set the shipping price to $5.00.",
          "type": "shipping",
          "order": {
            "resource_url": "https://api.discogs.com/marketplace/orders/845236-9",
            "id": "845236-9"
          },
          "subject": ""
        },
        {
          "status_id": 1,
          "timestamp": "2015-06-02T13:16:12-07:00",
          "actor": {
            "username": "example_seller",
            "resource_url": "https://api.discogs.com/users/example_seller"
          },
          "message": "example_seller created the order by merging orders #845236-7, #845236-8.",
          "type": "status",
          "order": {
            "resource_url": "https://api.discogs.com/marketplace/orders/845236-9",
            "id": "845236-9"
          },
          "subject": ""
        }
      ]
    }
Add New Message
/marketplace/orders/{order_id}/messages

Adds a new message to the order’s message log.
When posting a new message, you can simultaneously change the order status. If you do, the message will automatically be prepended with:
Seller changed status from Old Status to New Status
While message and status are each optional, one or both must be present.

  • Parameters
  • order_id
    string (required) Example: 1-1

    The ID of the order you are fetching

    message
    string (optional) Example: hello world
    status
    string (optional) Example: New Order
  • RequestToggle
  • Headers
    Content-Type: application/json
  • Response  201Toggle
  • Body
    {
      "from": {
        "username": "example_seller",
        "resource_url": "https://api.discogs.com/users/example_seller"
      },
      "message": "Seller changed status from Payment Received to Shipped\n\nYour order is on its way, tracking number #foobarbaz!",
      "order": {
        "resource_url": "https://api.discogs.com/marketplace/orders/1-1",
        "id": "1-1"
      },
      "timestamp": "2011-11-18T15:32:42-07:00",
      "subject": "Discogs Order #1-1, Stockholm"
    }
  • Response  403Toggle
  • Body
    {
      "message": "You don't have permission to access this resource."
    }

Fee 

Calculate Fee
/marketplace/fee/{price}

The Fee resource allows you to quickly calculate the fee for selling an item on the Marketplace.

  • Parameters
  • price
    number (optional) Example: 10.00

    The price to calculate a fee from

  • Response  200Toggle
  • Headers
    Status: HTTP/1.1 200 OK
    Reproxy-Status: yes
    Access-Control-Allow-Origin: *
    Cache-Control: public, must-revalidate
    Content-Type: application/json
    Server: lighttpd
    Content-Length: 780
    Date: Tue, 15 Jul 2014 19:59:59 GMT
    X-Varnish: 1702965334
    Age: 0
    Via: 1.1 varnish
    Connection: keep-alive
    Body
    {
        "value": 0.42,
        "currency": "USD",
    }

Fee with currency 

Calculate Fee
/marketplace/fee/{price}/{currency}

The Fee resource allows you to quickly calculate the fee for selling an item on the Marketplace given a particular currency.

  • Parameters
  • price
    number (optional) Example: 10.00

    The price to calculate a fee from

    currency
    string (optional) Example: USD

    may be one of USD, GBP, EUR, CAD, AUD, or JPY. Defaults to USD.

  • Response  200Toggle
  • Headers
    Status: HTTP/1.1 200 OK
    Reproxy-Status: yes
    Access-Control-Allow-Origin: *
    Cache-Control: public, must-revalidate
    Content-Type: application/json
    Server: lighttpd
    Content-Length: 780
    Date: Tue, 15 Jul 2014 19:59:59 GMT
    X-Varnish: 1702965334
    Age: 0
    Via: 1.1 varnish
    Connection: keep-alive
    Body
    {
        "value": 0.42,
        "currency": "USD",
    }

Price Suggestions 

Get Price Suggestions
/marketplace/price_suggestions/{release_id}

Retrieve price suggestions for the provided Release ID. If no suggestions are available, an empty object will be returned.
Authentication is required, and the user needs to have filled out their seller settings. Suggested prices will be denominated in the user’s selling currency.

  • Parameters
  • release_id
    number (required) Example: 1

    The release ID to calculate a price from.

  • Response  200Toggle
  • Headers
    Status: HTTP/1.1 200 OK
    Reproxy-Status: yes
    Access-Control-Allow-Origin: *
    Cache-Control: public, must-revalidate
    Content-Type: application/json
    Server: lighttpd
    Content-Length: 780
    Date: Tue, 15 Jul 2014 19:59:59 GMT
    X-Varnish: 1702965334
    Age: 0
    Via: 1.1 varnish
    Connection: keep-alive
    Body
    {
      "Very Good (VG)": {
        "currency": "USD",
        "value": 6.7827501
      },
      "Good Plus (G+)": {
        "currency": "USD",
        "value": 3.7681945000000003
      },
      "Near Mint (NM or M-)": {
        "currency": "USD",
        "value": 12.8118613
      },
      "Good (G)": {
        "currency": "USD",
        "value": 2.2609167
      },
      "Very Good Plus (VG+)": {
        "currency": "USD",
        "value": 9.7973057
      },
      "Mint (M)": {
        "currency": "USD",
        "value": 14.319139100000001
      },
      "Fair (F)": {
        "currency": "USD",
        "value": 1.5072778000000002
      },
      "Poor (P)": {
        "currency": "USD",
        "value": 0.7536389000000001
      }
    }
Next  Previous

User Identity 

Identity 

Get Identity
/oauth/identity

Retrieve basic information about the authenticated user.
You can use this resource to find out who you’re authenticated as, and it also doubles as a good sanity check to ensure that you’re using OAuth correctly.
For more detailed information, make another request for the user’s Profile.

  • RequestToggle
  • Body
    GET https://api.discogs.com/oauth/identity
  • Response  200Toggle
  • Headers
    Status: HTTP/1.1 200 OK
    Reproxy-Status: yes
    Access-Control-Allow-Origin: *
    Cache-Control: public, must-revalidate
    Content-Type: application/json
    Content-Encoding: gzip
    Content-Location: https://api.discogs.com/oauth/identity?oauth_body_hash=some_hash&oauth_nonce=...
    Server: lighttpd
    Content-Length: 127
    Date: Tue, 15 Jul 2014 18:44:17 GMT
    X-Varnish: 1718276369
    Age: 0
    Via: 1.1 varnish
    Connection: keep-alive
    Body
    {
      "id": 1,
      "username": "example",
      "resource_url": "https://api.discogs.com/users/example",
      "consumer_name": "Your Application Name"
    }
  • Response  401Toggle
  • Headers
    Status: HTTP/1.1 401 Unauthorized
    Reproxy-Status: yes
    Access-Control-Allow-Origin: *
    Cache-Control: public, must-revalidate
    Content-Type: application/json
    WWW-Authenticate: OAuth realm="https://api.discogs.com"
    Server: lighttpd
    Content-Length: 61
    Date: Wed, 16 Jul 2014 18:42:38 GMT
    X-Varnish: 1718433436
    Age: 0
    Via: 1.1 varnish
    Connection: keep-alive
    Body
    {
      "message": "You must authenticate to access this resource."
    }

Profile 

Get Profile
/users/{username}

Retrieve a user by username.
If authenticated as the requested user, the email key will be visible.
If authenticated as the requested user or the user’s collection/wantlist is public, the num_collection / num_wantlist keys will be visible.

  • Parameters
  • username
    string (required) Example: rodneyfool

    The username of whose profile you are requesting.

  • Response  200Toggle
  • Headers
    Status: HTTP/1.1 200 OK
    Reproxy-Status: yes
    Access-Control-Allow-Origin: *
    Cache-Control: public, must-revalidate
    Content-Type: application/json
    Server: lighttpd
    Content-Length: 858
    Date: Wed, 16 Jul 2014 18:46:21 GMT
    X-Varnish: 1718492795
    Age: 0
    Via: 1.1 varnish
    Connection: keep-alive
    Body
    {
      "profile": "I am a software developer for Discogs.\r\n\r\n[img=http://i.imgur.com/IAk3Ukk.gif]",
      "wantlist_url": "https://api.discogs.com/users/rodneyfool/wants",
      "rank": 149,
      "num_pending": 61,
      "id": 1578108,
      "num_for_sale": 0,
      "home_page": "",
      "location": "I live in the good ol' Pacific NW",
      "collection_folders_url": "https://api.discogs.com/users/rodneyfool/collection/folders",
      "username": "rodneyfool",
      "collection_fields_url": "https://api.discogs.com/users/rodneyfool/collection/fields",
      "releases_contributed": 5,
      "registered": "2012-08-15T21:13:36-07:00",
      "rating_avg": 3.47,
      "num_collection": 78,
      "releases_rated": 116,
      "num_lists": 0,
      "name": "Rodney",
      "num_wantlist": 160,
      "inventory_url": "https://api.discogs.com/users/rodneyfool/inventory",
      "avatar_url": "http://www.gravatar.com/avatar/55502f40dc8b7c769880b10874abc9d0?s=52&r=pg&d=mm",
      "uri": "http://www.discogs.com/user/rodneyfool",
      "resource_url": "https://api.discogs.com/users/rodneyfool"
    }
Edit Profile
/users/{username}

Edit a user’s profile data.

Authentication as the user is required.

  • Parameters
  • username
    string (required) Example: vreon

    The username of the user.

    name
    string (optional) Example: Nicolas Cage

    The real name of the user.

    home_page
    string (optional) Example: www.discogs.com

    The user’s website.

    location
    string (optional) Example: Portland

    The geographical location of the user.

    profile
    string (optional) Example: I am a Discogs user!

    Biographical information about the user.

  • Response  200Toggle
  • Body
    {
      "id": 1,
      "username": "example",
      "name": "Example Sampleman",
      "email": "sampleman@example.com",
      "resource_url": "https://api.discogs.com/users/example",
      "inventory_url": "https://api.discogs.com/users/example/inventory",
      "collection_folders_url": "https://api.discogs.com/users/example/collection/folders",
      "collection_fields_url": "https://api.discogs.com/users/example/collection/fields",
      "wantlist_url": "https://api.discogs.com/users/example/wants",
      "uri": "http://www.discogs.com/user/example",
      "profile": "This is some [b]different sample[/b] data!",
      "home_page": "http://www.example.com",
      "location": "Australia",
      "registered": "2011-08-30 14:21:45-07:00",
      "num_lists": 0,
      "num_for_sale": 6,
      "num_collection": 4,
      "num_wantlist": 5,
      "num_pending": 10,
      "releases_contributed": 15,
      "rank": 30,
      "releases_rated": 4,
      "rating_avg": 2.5
    }
  • Response  403Toggle
  • Body
    {
      "message": "You don't have permission to access this resource."
    }

User Submissions 

The Submissions resource represents all edits that a user makes to releases, labels, and artist.

Get Submissions
/users/{username}/submissions

Retrieve a user’s submissions by username. Accepts Pagination parameters.

  • Parameters
  • username
    string (required) Example: shooezgirl

    The username of the submissions you are trying to fetch.

  • Response  200Toggle
  • Body
    {
      "pagination": {
        "items": 3,
        "page": 1,
        "pages": 1,
        "per_page": 50,
        "urls": {}
      },
      "submissions": {
        "artists": [
          {
            "data_quality": "Needs Vote",
            "id": 240177,
            "name": "Grimy",
            "namevariations": [
              "Grimmy"
            ],
            "releases_url": "https://api.discogs.com/artists/240177/releases",
            "resource_url": "https://api.discogs.com/artists/240177",
            "uri": "http://www.discogs.com/artist/240177-Grimy"
          }
        ],
        "labels": [],
        "releases": [
          {
            "artists": [
              {
                "anv": "",
                "id": 17035,
                "join": "",
                "name": "Chaka Khan",
                "resource_url": "https://api.discogs.com/artists/17035",
                "role": "",
                "tracks": ""
              }
            ],
            "community": {
              "contributors": [
                {
                  "resource_url": "https://api.discogs.com/users/shooezgirl",
                  "username": "shooezgirl"
                },
                {
                  "resource_url": "https://api.discogs.com/users/Diognes_The_Fox",
                  "username": "Diognes_The_Fox"
                }
              ],
              "data_quality": "Needs Vote",
              "have": 0,
              "rating": {
                "average": 0,
                "count": 0
              },
              "status": "Accepted",
              "submitter": {
                "resource_url": "https://api.discogs.com/users/shooezgirl",
                "username": "shooezgirl"
              },
              "want": 0
            },
            "companies": [],
            "country": "US",
            "data_quality": "Needs Vote",
            "date_added": "2014-03-25T14:52:18-07:00",
            "date_changed": "2014-05-14T13:28:21-07:00",
            "estimated_weight": 60,
            "format_quantity": 1,
            "formats": [
              {
                "descriptions": [
                  "7\"",
                  "45 RPM",
                  "Promo"
                ],
                "name": "Vinyl",
                "qty": "1"
              }
            ],
            "genres": [
              "Funk / Soul"
            ],
            "id": 5531861,
            "images": [
              {
                "height": 594,
                "resource_url": "https://api-img.discogs.com/i3jf6S4S7LMNBuWxstCxAQs2Rw0=/fit-in/600x594/filters:strip_icc():format(jpeg):mode_rgb():quality(96)/discogs-images/R-5531861-1400099290-9223.jpeg.jpg",
                "type": "primary",
                "uri": "https://api-img.discogs.com/i3jf6S4S7LMNBuWxstCxAQs2Rw0=/fit-in/600x594/filters:strip_icc():format(jpeg):mode_rgb():quality(96)/discogs-images/R-5531861-1400099290-9223.jpeg.jpg",
                "uri150": "https://api-img.discogs.com/xMSwaqP2T8SNwDUTO-gXmHXWt6s=/fit-in/150x150/filters:strip_icc():format(jpeg):mode_rgb()/discogs-images/R-5531861-1400099290-9223.jpeg.jpg",
                "width": 600
              },
              {
                "height": 600,
                "resource_url": "https://api-img.discogs.com/sT0plDMoOcfJz-1JEui8XQr69kw=/fit-in/600x600/filters:strip_icc():format(jpeg):mode_rgb():quality(96)/discogs-images/R-5531861-1400099290-9749.jpeg.jpg",
                "type": "secondary",
                "uri": "https://api-img.discogs.com/sT0plDMoOcfJz-1JEui8XQr69kw=/fit-in/600x600/filters:strip_icc():format(jpeg):mode_rgb():quality(96)/discogs-images/R-5531861-1400099290-9749.jpeg.jpg",
                "uri150": "https://api-img.discogs.com/f2QfdjBjpuP-Eht4DVSlCfPtTe8=/fit-in/150x150/filters:strip_icc():format(jpeg):mode_rgb()/discogs-images/R-5531861-1400099290-9749.jpeg.jpg",
                "width": 600
              }
            ],
            "labels": [
              {
                "catno": "7-28671",
                "entity_type": "1",
                "id": 1000,
                "name": "Warner Bros. Records",
                "resource_url": "https://api.discogs.com/labels/1000"
              }
            ],
            "master_id": 174698,
            "master_url": "https://api.discogs.com/masters/174698",
            "notes": "Promotion Not for Sale",
            "released": "1986",
            "released_formatted": "1986",
            "resource_url": "https://api.discogs.com/releases/5531861",
            "series": [],
            "status": "Accepted",
            "styles": [
              "Rhythm & Blues"
            ],
            "thumb": "https://api-img.discogs.com/xMSwaqP2T8SNwDUTO-gXmHXWt6s=/fit-in/150x150/filters:strip_icc():format(jpeg):mode_rgb()/discogs-images/R-5531861-1400099290-9223.jpeg.jpg",
            "title": "Love Of A Lifetime",
            "uri": "http://www.discogs.com/Chaka-Khan-Love-Of-A-Lifetime/release/5531861",
            "videos": [
              {
                "description": "Chaka Khan - Love you all my lifetime (live)",
                "duration": 285,
                "embed": true,
                "title": "Chaka Khan - Love you all my lifetime (live)",
                "uri": "http://www.youtube.com/watch?v=WOrCYzfchTI"
              },
              {
                "description": "Chaka Khan - Love Of A Lifetime [Official Video]",
                "duration": 257,
                "embed": true,
                "title": "Chaka Khan - Love Of A Lifetime [Official Video]",
                "uri": "http://www.youtube.com/watch?v=5K6-q2VqJdE"
              },
              {
                "description": "CHAKA KHAN - COLTRANE DREAMS  ~{The 45 VERSION}~",
                "duration": 151,
                "embed": true,
                "title": "CHAKA KHAN - COLTRANE DREAMS  ~{The 45 VERSION}~",
                "uri": "http://www.youtube.com/watch?v=11eaG7KdS9g"
              }
            ],
            "year": 1986
          }
        ]
      }
    }

User Contributions 

The Contributions resource represents releases, labels, and artists submitted by a user.

Get Contributions
/users/{username}/contributions

Retrieve a user’s contributions by username. Accepts Pagination parameters.

  • Parameters
  • username
    string (required) Example: shooezgirl

    The username of the submissions you are trying to fetch.

  • Response  200Toggle
  • Body
    {
      "contributions": [
        {
          "artists": [
            {
              "anv": "",
              "id": 17961,
              "join": "And",
              "name": "Cher",
              "resource_url": "https://api.discogs.com/artists/17961",
              "role": "",
              "tracks": ""
            }
          ],
          "community": {
            "contributors": [
              {
                "resource_url": "https://api.discogs.com/users/shooezgirl",
                "username": "shooezgirl"
              },
              {
                "resource_url": "https://api.discogs.com/users/Aquacrash_Dj",
                "username": "Aquacrash_Dj"
              }
            ],
            "data_quality": "Needs Vote",
            "have": 0,
            "rating": {
              "average": 0,
              "count": 0
            },
            "status": "Accepted",
            "submitter": {
              "resource_url": "https://api.discogs.com/users/shooezgirl",
              "username": "shooezgirl"
            },
            "want": 0
          },
          "companies": [],
          "country": "US",
          "data_quality": "Needs Vote",
          "date_added": "2014-03-25T15:16:13-07:00",
          "date_changed": "2014-05-14T13:36:00-07:00",
          "estimated_weight": 60,
          "format_quantity": 1,
          "formats": [
            {
              "descriptions": [
                "7\"",
                "45 RPM",
                "Single",
                "Promo"
              ],
              "name": "Vinyl",
              "qty": "1"
            }
          ],
          "genres": [
            "Rock",
            "Pop"
          ],
          "id": 5531933,
          "images": [
            {
              "height": 605,
              "resource_url": "https://api-img.discogs.com/e0X1tNZv6nkdOOTPJAn-dtCbFa0=/fit-in/600x605/filters:strip_icc():format(jpeg):mode_rgb():quality(96)/discogs-images/R-5531933-1400099758-6444.jpeg.jpg",
              "type": "primary",
              "uri": "https://api-img.discogs.com/e0X1tNZv6nkdOOTPJAn-dtCbFa0=/fit-in/600x605/filters:strip_icc():format(jpeg):mode_rgb():quality(96)/discogs-images/R-5531933-1400099758-6444.jpeg.jpg",
              "uri150": "https://api-img.discogs.com/8et0xtf9REFloKoqi6NSJ6AJvFI=/fit-in/150x150/filters:strip_icc():format(jpeg):mode_rgb()/discogs-images/R-5531933-1400099758-6444.jpeg.jpg",
              "width": 600
            }
          ],
          "labels": [
            {
              "catno": "7-27529-DJ",
              "entity_type": "1",
              "id": 821,
              "name": "Geffen Records",
              "resource_url": "https://api.discogs.com/labels/821"
            }
          ],
          "master_id": 223379,
          "master_url": "https://api.discogs.com/masters/223379",
          "notes": "Promotion Not For Sale",
          "released": "1989",
          "released_formatted": "1989",
          "resource_url": "https://api.discogs.com/releases/5531933",
          "series": [],
          "status": "Accepted",
          "styles": [
            "Ballad"
          ],
          "thumb": "https://api-img.discogs.com/8et0xtf9REFloKoqi6NSJ6AJvFI=/fit-in/150x150/filters:strip_icc():format(jpeg):mode_rgb()/discogs-images/R-5531933-1400099758-6444.jpeg.jpg",
          "title": "After All",
          "uri": "http://www.discogs.com/Cher-And-Peter-Cetera-After-All/release/5531933",
          "videos": [
            {
              "description": "Cher & Peter Cetera - After All [On-Screen Lyrics]",
              "duration": 247,
              "embed": true,
              "title": "Cher & Peter Cetera - After All [On-Screen Lyrics]",
              "uri": "http://www.youtube.com/watch?v=qy717J3Iscw"
            }
          ],
          "year": 1989
        }
      ],
      "pagination": {
        "items": 2,
        "page": 1,
        "pages": 1,
        "per_page": 50,
        "urls": {}
      }
    }
Next  Previous

User Collection 

Collection 

The Collection resource allows you to view and manage a user’s collection.
A collection is arranged into folders. Every user has two permanent folders already:

ID 0, the “All” folder, which cannot have releases added to it, and
ID 1, the “Uncategorized” folder.

Because it’s possible to own more than one copy of a release, each with its own notes, grading, and so on, each instance of a release in a folder has an instance ID.

Through the Discogs website, users can create custom notes fields. There is not yet an API method for creating and deleting these fields, but they can be listed, and the values of the fields on any instance can be modified.

Get Collection Folders
/users/{username}/collection/folders

Retrieve a list of folders in a user’s collection. If the collection has been made private by its owner, authentication as the collection owner is required. If you are not authenticated as the collection owner, only folder ID 0 (the “All” folder) will be visible (if the requested user’s collection is public).

  • Parameters
  • username
    string (required) Example: rodneyfool

    The username of the collection you are trying to retrieve.

  • Response  200Toggle
  • Headers
    Reproxy-Status: yes
    Access-Control-Allow-Origin: *
    Cache-Control: public, must-revalidate
    Content-Type: application/json
    Server: lighttpd
    Content-Length: 132
    Date: Wed, 16 Jul 2014 23:20:21 GMT
    X-Varnish: 1722533701
    Age: 0
    Via: 1.1 varnish
    Connection: keep-alive
    Body
    {
      "folders": [
        {
          "id": 0,
          "count": 23,
          "name": "All",
          "resource_url": "https://api.discogs.com/users/example/collection/folders/0"
        },
        {
          "id": 1,
          "count": 20,
          "name": "Uncategorized",
          "resource_url": "https://api.discogs.com/users/example/collection/folders/1"
        }
      ]
    }
Create Folder
/users/{username}/collection/folders

Create a new folder in a user’s collection.

Authentication as the collection owner is required.

  • Parameters
  • username
    string (required) Example: rodneyfool

    The username of the collection you are trying to retrieve.

    name
    string (optional) Example: My favorites

    The name of the newly-created folder.

  • Response  201Toggle
  • Body
    {
      "id": 232842,
      "name": "My Music",
      "count": 0,
      "resource_url": "https://api.discogs.com/users/example/collection/folders/232842"
    }

Collection Folder 

Get Folders
/users/{username}/collection/folders/{folder_id}

Retrieve metadata about a folder in a user’s collection.

If folder_id is not 0, authentication as the collection owner is required.

  • Parameters
  • username
    string (required) Example: rodneyfool

    The username of the collection you are trying to request.

    folder_id
    number (required) Example: 3

    The ID of the folder to request.

  • Response  200Toggle
  • Headers
    Reproxy-Status: yes
    Access-Control-Allow-Origin: *
    Cache-Control: public, must-revalidate
    Content-Type: application/json
    Server: lighttpd
    Content-Length: 132
    Date: Wed, 16 Jul 2014 23:20:21 GMT
    X-Varnish: 1722533701
    Age: 0
    Via: 1.1 varnish
    Connection: keep-alive
    Body
    {
      "id": 1,
      "count": 20,
      "name": "Uncategorized",
      "resource_url": "https://api.discogs.com/users/example/collection/folders/1"
    }
Edit Folder
/users/{username}/collection/folders/{folder_id}

Edit a folder’s metadata. Folders 0 and 1 cannot be renamed.

Authentication as the collection owner is required.

  • Parameters
  • username
    string (required) Example: rodneyfool

    The username of the collection you are trying to modify.

    folder_id
    number (required) Example: 3

    The ID of the folder to modify.

  • Response  200Toggle
  • Body
    {
      "id": 392,
      "count": 3,
      "name": "An Example Folder",
      "resource_url": "https://api.discogs.com/users/example/collection/folders/392"
    }
Delete Folder
/users/{username}/collection/folders/{folder_id}

Delete a folder from a user’s collection. A folder must be empty before it can be deleted.

Authentication as the collection owner is required.

  • Parameters
  • username
    string (required) Example: rodneyfool

    The username of the collection you are trying to modify.

    folder_id
    number (required) Example: 3

    The ID of the folder to delete.

  • Response  204

Get Collection Releases 

Get Releases
/users/{username}/collection/folders/{folder_id}/releases

Returns the list of releases in a folder in a user’s collection. Accepts Pagination parameters.

Basic information about each release is provided, suitable for display in a list. For detailed information, make another API call to fetch the corresponding release.

If folder_id is not 0, or the collection has been made private by its owner, authentication as the collection owner is required.

If you are not authenticated as the collection owner, only public notes fields will be visible.

Valid sort keys are:
label
artist
title
catno
format
rating
added
year

+ Parameters

    + username (required, string, `rodneyfool`) ... The username of the collection you are trying to request.
    + folder_id (required, number, `3`) ... The ID of the folder to request.
    + sort (optional, string, `artist`) ... Sort items by this field (see below for all valid `sort` keys.
    + sort_order (optional, string, `desc`) ... Sort items in a particular order (`asc` or `desc`)


+ Headers

        Reproxy-Status: yes
        Access-Control-Allow-Origin: *
        Cache-Control: public, must-revalidate
        Content-Type: application/json
        Server: lighttpd
        Content-Length: 132
        Date: Wed, 16 Jul 2014 23:20:21 GMT
        X-Varnish: 1722533701
        Age: 0
        Via: 1.1 varnish
        Connection: keep-alive
  • Response  200Toggle
  • Body
    {
      "pagination": {
        "per_page": 1,
        "pages": 14,
        "page": 1,
        "items": 14,
        "urls": {
          "next": "https://api.discogs.com/users/example/collection/folders/1/releases?page=2&per_page=1",
          "last": "https://api.discogs.com/users/example/collection/folders/1/releases?page=2&per_page=14",
        }
      },
      "releases": [
        {
          "id": 2464521,
          "instance_id": 1,
          "folder_id": 1,
          "rating": 0,
          "basic_information": {
            "id": 2464521,
            "title": "Information Chase",
            "year": 2006,
            "resource_url": "https://api.discogs.com/releases/2464521",
            "thumb": "https://api-img.discogs.com/vzpYq4_kc52GZFs14c0SCJ0ZE84=/fit-in/150x150/filters:strip_icc():format(jpeg):mode_rgb()/discogs-images/R-2464521-1285519861.jpeg.jpg",
            "formats": [
              {
                "qty": "1",
                "descriptions": [ "Mini", "EP" ],
                "name": "CDr"
              }
            ],
            "labels": [
              {
                "resource_url": "https://api.discogs.com/labels/11647",
                "entity_type": "",
                "catno": "8BP059",
                "id": 11647,
                "name": "8bitpeoples"
              }
            ],
            "artists": [
              {
                "id": 103906,
                "name": "Bit Shifter",
                "join": "",
                "resource_url": "https://api.discogs.com/artists/103906",
                "anv": "",
                "tracks": "",
                "role": ""
              }
            ]
          },
          "notes": [
            {
              "field_id": 3,
              "value": "bleep bloop blorp."
            }
          ]
        }
      ]
    }

Add To Collection Folder 

Add Release
/users/{username}/collection/folders/{folder_id}/releases/{release_id}

Add a release to a folder in a user’s collection.

The folder_id must be non-zero – you can use 1 for “Uncategorized”.

Authentication as the collection owner is required.

  • Parameters
  • username
    string (required) Example: rodneyfool

    The username of the collection you are trying to modify.

    folder_id
    number (required) Example: 3

    The ID of the folder to modify.

    release_id
    number (required) Example: 130076

    The ID of the release you are adding.

  • Response  201Toggle
  • Body
    {
      "instance_id": 3,
      "resource_url": "https://api.discogs.com/users/example/collection/folders/1/release/1/instance/3"
    }

Change Rating Of Release 

Change Rating
/users/{username}/collection/folders/{folder_id}/releases/{release_id}/instances/{instance_id}

Change the rating on a release and/or move the instance to another folder.

This endpoint potentially takes 2 folder_id parameters: one in the URL (which is the folder you are requesting, and is required), and one in the request body (representing the folder you want to move the instance to, which is optional)

Authentication as the collection owner is required.

  • Parameters
  • username
    string (required) Example: rodneyfool

    The username of the collection you are trying to modify.

    folder_id
    number (optional) Example: 4

    The ID of the folder to modify (this parameter is set in the request body and is set if you want to move the instance to this folder).

    release_id
    number (required) Example: 130076

    The ID of the release you are modifying.

    instance_id
    number (required) Example: 1

    The ID of the instance.

    rating
    number (optional) Example: 5

    The rating of the instance you are supplying.

  • Response  204

Delete Instance From Folder 

Delete Instance
/users/{username}/collection/folders/{folder_id}/releases/{release_id}/instances/{instance_id}

Remove an instance of a release from a user’s collection folder.

To move the release to the “Uncategorized” folder instead, use the POST method.

Authentication as the collection owner is required.

  • Parameters
  • username
    string (required) Example: rodneyfool

    The username of the collection you are trying to modify.

    folder_id
    number (required) Example: 3

    The ID of the folder to modify.

    release_id
    number (required) Example: 130076

    The ID of the release you are modifying.

    instance_id
    number (required) Example: 1

    The ID of the instance.

  • Response  204
  • Response  403Toggle
  • Body
    {
      "message": "You don't have permission to access this resource."
    }

List Custom Fields 

List Fields
/users/{username}/collection/fields

Retrieve a list of user-defined collection notes fields. These fields are available on every release in the collection.

If the collection has been made private by its owner, authentication as the collection owner is required.

If you are not authenticated as the collection owner, only fields with public set to true will be visible.

  • Parameters
  • username
    string (required) Example: rodneyfool

    The username of the collection you are trying to modify.

  • Response  200Toggle
  • Body
    {
      "fields": [
        {
          "name": "Media",
          "options": [
            "Mint (M)",
            "Near Mint (NM or M-)",
            "Very Good Plus (VG+)",
            "Very Good (VG)",
            "Good Plus (G+)",
            "Good (G)",
            "Fair (F)",
            "Poor (P)"
          ],
          "id": 1,
          "position": 1,
          "type": "dropdown",
          "public": true
        },
        {
          "name": "Sleeve",
          "options": [
            "Generic",
            "No Cover",
            "Mint (M)",
            "Near Mint (NM or M-)",
            "Very Good Plus (VG+)",
            "Very Good (VG)",
            "Good Plus (G+)",
            "Good (G)",
            "Fair (F)",
            "Poor (P)"
          ],
          "id": 2,
          "position": 2,
          "type": "dropdown",
          "public": true
        },
        {
          "name": "Notes",
          "lines": 3,
          "id": 3,
          "position": 3,
          "type": "textarea",
          "public": true
        }
      ]
    }

Edit Fields Instance 

Edit Fields
/users/{username}/collection/folders/{folder_id}/releases/{release_id}/instances/{instance_id}/fields/{field_id}{?value}

Change the value of a notes field on a particular instance.

  • Parameters
  • username
    string (required) Example: rodneyfool

    The username of the collection you are trying to modify.

    value
    string (required) Example: foo

    The new value of the field. If the field’s type is dropdown, the value must match one of the values in the field’s list of options.

    folder_id
    number (required) Example: 3

    The ID of the folder to modify.

    release_id
    number (required) Example: 130076

    The ID of the release you are modifying.

    instance_id
    number (required) Example: 1

    The ID of the instance.

    field_id
    number (required) Example: 8

    The ID of the field.

  • Response  204
Next  Previous

User Wantlist 

Wantlist 

The Wantlist resource allows you to view and manage a user’s wantlist.

Get Wantlist
/users/{username}/wants

Returns the list of releases in a user’s wantlist. Accepts Pagination parameters.

Basic information about each release is provided, suitable for display in a list. For detailed information, make another API call to fetch the corresponding release.

If the wantlist has been made private by its owner, you must be authenticated as the owner to view it.

The notes field will be visible if you are authenticated as the wantlist owner.

  • Parameters
  • username
    string (required) Example: rodneyfool

    The username of the wantlist you are trying to fetch.

  • Response  200Toggle
  • Body
    {
      "pagination": {
        "per_page": 50,
        "pages": 1,
        "page": 1,
        "items": 2,
        "urls": {}
      },
      "wants": [
        {
          "rating": 4,
          "basic_information": {
            "formats": [
              {
                "text": "Digipak",
                "qty": "1",
                "descriptions": [
                  "Album"
                ],
                "name": "CD"
              }
            ],
            "thumb": "https://api-img.discogs.com/PsLAcp_I0-EPPkSBaHx2t7dmXTg=/fit-in/150x150/filters:strip_icc():format(jpeg):mode_rgb()/discogs-images/R-1867708-1248886216.jpeg.jpg",
            "title": "Year Zero",
            "labels": [
              {
                "resource_url": "https://api.discogs.com/labels/2311",
                "entity_type": "",
                "catno": "B0008764-02",
                "id": 2311,
                "name": "Interscope Records"
              }
            ],
            "year": 2007,
            "artists": [
              {
                "join": "",
                "name": "Nine Inch Nails",
                "anv": "",
                "tracks": "",
                "role": "",
                "resource_url": "https://api.discogs.com/artists/3857",
                "id": 3857
              }
            ],
            "resource_url": "https://api.discogs.com/releases/1867708",
            "id": 1867708
          },
          "resource_url": "https://api.discogs.com/users/example/wants/1867708",
          "id": 1867708
        },
        {
          "rating": 0,
          "basic_information": {
            "formats": [
              {
                "qty": "1",
                "descriptions": [
                  "Album"
                ],
                "name": "CDr"
              }
            ],
            "thumb": "https://api-img.discogs.com/w1cVy7ppMYEDlqY9sjoAojC3MhQ=/fit-in/150x150/filters:strip_icc():format(jpeg):mode_rgb()/discogs-images/R-1675174-1236118359.jpeg.jpg",
            "title": "Dawn Metropolis",
            "labels": [
              {
                "resource_url": "https://api.discogs.com/labels/141550",
                "entity_type": "",
                "catno": "NORM007",
                "id": 141550,
                "name": "Normative"
              }
            ],
            "year": 2009,
            "artists": [
              {
                "join": "",
                "name": "Anamanaguchi",
                "anv": "",
                "tracks": "",
                "role": "",
                "resource_url": "https://api.discogs.com/artists/667233",
                "id": 667233
              }
            ],
            "resource_url": "https://api.discogs.com/releases/1675174",
            "id": 1675174
          },
          "notes": "Sample notes.",
          "resource_url": "https://api.discogs.com/users/example/wants/1675174",
          "id": 1675174
        }
      ]
    }

Add To Wantlist 

Add a release to a user’s wantlist.

Authentication as the wantlist owner is required.

Add To Wantlist
/users/{username}/wants/{release_id}{?notes,rating}
  • Parameters
  • username
    string (required) Example: rodneyfool

    The username of the wantlist you are trying to fetch.

    release_id
    number (required) Example: 130076

    The ID of the release you are adding.

    notes
    string (optional) Example: My favorite release

    User notes to associate with this release.

    rating
    number (optional) Example: 5

    User’s rating of this release, from 0 (unrated) to 5 (best). Defaults to 0.

  • Response  201Toggle
  • Body
    {
      "id": 1,
      "rating": 0,
      "notes": "",
      "resource_url": "https://api.discogs.com/users/example/wants/1",
      "basic_information": {
        "id": 1,
        "resource_url": "https://api.discogs.com/releases/1",
        "thumb": "https://api-img.discogs.com/7HGTQzTb7os1duruukQElELEapk=/fit-in/150x150/filters:strip_icc():format(jpeg):mode_rgb()/discogs-images/R-1-1193812031.jpeg.jpg",
        "title": "Stockholm",
        "year": 1999,
        "formats": [
          {
            "qty": "2",
            "descriptions": [
              "12\""
            ],
            "name": "Vinyl"
          }
        ],
        "labels": [
          {
            "name": "Svek",
            "entity_type": "1",
            "catno": "SK032",
            "resource_url": "https://api.discogs.com/labels/5",
            "id": 5,
            "entity_type_name": "Label"
          }
        ],
        "artists": [
          {
            "join": "",
            "name": "Persuader, The",
            "anv": "",
            "tracks": "",
            "role": "",
            "resource_url": "https://api.discogs.com/artists/1",
            "id": 1
          }
        ]
      }
    }
Edit Release In Wantlist
/users/{username}/wants/{release_id}{?notes,rating}
  • Parameters
  • username
    string (required) Example: rodneyfool

    The username of the wantlist you are trying to fetch.

    notes
    string (optional) Example: My favorite release

    User notes to associate with this release.

    rating
    number (optional) Example: 5

    User’s rating of this release, from 0 (unrated) to 5 (best). Defaults to 0.

  • Response  200Toggle
  • Body
    {
      "id": 1,
      "rating": 0,
      "notes": "I've added some notes!",
      "resource_url": "https://api.discogs.com/users/example/wants/1",
      "basic_information": {
        "id": 1,
        "resource_url": "https://api.discogs.com/releases/1",
        "thumb": "https://api-img.discogs.com/7HGTQzTb7os1duruukQElELEapk=/fit-in/150x150/filters:strip_icc():format(jpeg):mode_rgb()/discogs-images/R-1-1193812031.jpeg.jpg",
        "title": "Stockholm",
        "year": 1999,
        "formats": [
          {
            "qty": "2",
            "descriptions": [
              "12\""
            ],
            "name": "Vinyl"
          }
        ],
        "labels": [
          {
            "name": "Svek",
            "entity_type": "1",
            "catno": "SK032",
            "resource_url": "https://api.discogs.com/labels/5",
            "id": 5,
            "entity_type_name": "Label"
          }
        ],
        "artists": [
          {
            "join": "",
            "name": "Persuader, The",
            "anv": "",
            "tracks": "",
            "role": "",
            "resource_url": "https://api.discogs.com/artists/1",
            "id": 1
          }
        ]
      }
    }
Delete Release From Wantlist
/users/{username}/wants/{release_id}{?notes,rating}
  • Parameters
  • username
    string (required) Example: rodneyfool

    The username of the wantlist you are trying to fetch.

  • Response  204
Previous

© 2015 Discogs®