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.
Some Discogs data is made available under the [CC0 No Rights Reserved](https://creativecommons.org/public-domain/cc0/) license, and some is restricted data, as defined in our [API Terms of Use](https://support.discogs.com/hc/en-us/articles/360009334593-API-Terms-of-Use).
Our monthly data dumps are available under the the [CC0 No Rights Reserved](https://creativecommons.org/public-domain/cc0/) license.
If you utilize the Discogs API, you are subject to the [API Terms of Use](https://support.discogs.com/hc/en-us/articles/360009334593-API-Terms-of-Use). Please also ensure that any application you develop follows the Discogs [Application Name and Description Policy](https://support.discogs.com/hc/en-us/articles/360009334593-API-Terms-of-Use)
# Quickstart
If you just want to see some results right now, issue this _curl_ command:
**Your application must provide a User-Agent string that identifies itself** - preferably something that follows [RFC 1945](https://datatracker.ietf.org/doc/html/rfc1945#section-3.7). Some good examples include:
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:
Mozilla/5.0 (X11; Linux i686; rv:6.0.2) Gecko/20100101 Firefox/6.0.2
my app
```
# Authentication
Most endpoints require authentication. The API supports multiple methods:
1. **Discogs Auth (Key & Secret):** For read-only access to public data with a higher rate limit.
2. **Discogs Auth (Personal Access Token):** For full access to your own user account data.
3. **OAuth 1.0a:** For building third-party applications that act on behalf of other Discogs users.
# Rate Limiting
**Requests are throttled by the server by source IP to 60 per minute for authenticated requests, and 25 per minute for unauthenticated requests, with some exceptions.**
Your application should identify itself to our servers via a unique user agent string in order to achieve the maximum number of requests per minute.
Our rate limiting tracks your requests using a moving average over a 60 second window. If no requests are made in 60 seconds, your window will reset.
We attach the following headers to responses to help you track your rate limit use:
* `X-Discogs-Ratelimit`: The total number of requests that can make in a one minute window.
* `X-Discogs-Ratelimit-Used` : The number of requests made in an existing rate limit window.
* `X-Discogs-Ratelimit-Remaining`: The number of remaining requests to make in an existing rate limit window.
Your application should take our global limit into account and throttle its requests locally.
In the future, we may update these rate limits at any time in order to provide service for all users.
# 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
Currently, the 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 case of requesting information from an endpoint that may have text formatting in it, it is possible to choose which kind of formatting 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`
If no `Accept` header is supplied, or if the Accept header differs from one of the three previous options, we default to `application/vnd.discogs.v2.discogs+json`.
# Videos
In case an application integrates **YouTube** videos, then third party cookies may be used. Please refer to the [YouTube and Google's cookie policy](https://policies.google.com/technologies/cookies).
# FAQ
**1) Why am I getting an empty response from the server?**
This generally happens when no `User-Agent` header is added to the requests.
**2) How do I get updates about the API?**
Subscribe to the [API Announcements forum thread](https://www.discogs.com/forum/thread/521520689469733cfcfd2089). For larger, breaking changes, an email notice to all developers with a registered Discogs application will be sent.
**3) Where can I register a Discogs application?**
A Discogs application can be registered on the [Developer Settings](https://www.discogs.com/settings/developers).
**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](https://www.discogs.com/forum/topic/1082) since other developers may have had similar issues and they can point 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 the URL has not been changed. 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](https://www.discogs.com/developers/#page:images).
**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**
POST request is sent 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**
A resource that first requires [authentication](https://www.discogs.com/developers/#page:authentication) is being accessed. See Authenticating with OAuth.
**403 Forbidden**
The access to a resource is not allowed, even if authenticated. Trying to modify another user's profile, for example, will produce this error.
**404 Not Found**
The requested resource does not exist.
**405 Method Not Allowed**
A HTTP verb is not supported by the resource. Trying to `PUT` to `/artists/1`, for example, will fail because `Artists` are read-only.
**422 Unprocessable Entity**
Even though the request is well-formed, there is something semantically wrong with the body of the request. This can be due to malformed JSON, a missing parameter or the wrong type, or trying to perform an action that doesn not make any sense. Check the response body for specific information about what went wrong.
**500 Internal Server Error**
Something went wrong on the service while attempting to process the request. The message field of the response body will contain an error code that can be sent to Discogs Support (which will help on tracking down your specific issue).
Retrieve a request token to initialize an *OAuth* authentication process.
This endpoint represents the [2nd step of the OAuth flow process](https://www.discogs.com/developers#header-2.-send-a-get-request-to-the-discogs-request-token-url), thus it requires to configure an *Authorization* header to have a value like this:
For further details about this process, please refer to the [OAuth flow](https://www.discogs.com/developers#page:authentication,header:authentication-oauth-flow) section in the [Discogs API authentication](https://www.discogs.com/developers#page:authentication) documentation.
operationId:getRequestToken
parameters:
- $ref:'#/components/parameters/ContentType'
- $ref:'#/components/parameters/Authorization'
- $ref:'#/components/parameters/UserAgent'
responses:
'200':
description:|
Successfully retrieved request token details.
With this request token, then it is possible to continue with the [next step in the OAuth flow](https://www.discogs.com/developers#header-3.-redirect-your-user-to-the-discogs-authorize-page) process.
headers:
oauth_token:
$ref:'#/components/headers/OAuthToken'
oauth_token_secret:
$ref:'#/components/headers/OAuthSecret'
oauth_callback-confirmed:
$ref:'#/components/headers/OAuthCallback'
'500':
$ref:'#/components/responses/InternalError'
/oauth/access_token:
post:
tags:
- Authentication
summary:Provide required credentials data to obtain an access token.
description:|
Provide to the service some required credentials details to obtain an access token at the end of the *OAuth* process.
This endpoint represents the [4th step of the OAuth flow process](https://www.discogs.com/developers#header-4.-send-a-post-request-to-the-discogs-access-token-url), thus it requires to configure an *Authorization* header to have a value like this:
For further details about this process, please refer to the [OAuth flow](https://www.discogs.com/developers#page:authentication,header:authentication-oauth-flow) section in the [Discogs API authentication](https://www.discogs.com/developers#page:authentication) documentation.
operationId:postAccessToken
parameters:
- $ref:'#/components/parameters/ContentType'
- $ref:'#/components/parameters/Authorization'
- $ref:'#/components/parameters/UserAgent'
responses:
'200':
description:Successfully retrieved an access token at the end of the OAuth authentication process.
headers:
oauth_token:
$ref:'#/components/headers/OAuthToken'
oauth_token_secret:
$ref:'#/components/headers/OAuthSecret'
'500':
$ref:'#/components/responses/InternalError'
/oauth/identity:
get:
tags:
- Authentication
summary:Get information about an authenticated user.
description:|
Retrieve basic information about the authenticated user.
This endpoint represents the (optional) [5th step of the OAuth flow process](https://www.discogs.com/developers#header-5-send-authenticated-requests-to-discogs-endpoints), as it is advised to perform a sanity check to ensure the *OAuth* process finished successfully.
For further details about this process, please refer to the [OAuth flow](https://www.discogs.com/developers#page:authentication,header:authentication-oauth-flow) section in the [Discogs API authentication](https://www.discogs.com/developers#page:authentication) documentation.
summary:Get information about statistics of release.
description:Retrieves the total number of “haves” (in the community's collections) and “wants” (in the community's wantlists) for a given release.
operationId:getReleaseStats
parameters:
- $ref:'#/components/parameters/ReleaseId'
responses:
'200':
description:|
Successfully retrieved release rating details by a given user.
> warning: There is a discrepancy about this response between was is documented and what the endpoints actually responds. In the [documentation](https://www.discogs.com/developers#page:database,header:database-release-stats), it is defined that a type containing a statistical data would be returned but the actual response returns an object that contains a boolean flag instead.
In case of being authenticated as the requested user, the `email` property will be visible, and the `num_list` count will also include a user's private lists.
In case of being authenticated as the requested user, or a user's collection or wantlist is public, the `num_collection` and the `num_wantlist` properties will also be visible.
operationId:getUserProfile
parameters:
- $ref:'#/components/parameters/Username'
responses:
'200':
description:Successfully retrieved profile user information by a given username.
headers:
X-Discogs-RateLimit:
$ref:'#/components/headers/RateLimit'
X-Discogs-RateLimit-Used:
$ref:'#/components/headers/RateLimitUsed'
X-Discogs-RateLimit-Remaining:
$ref:'#/components/headers/RateLimitRemaining'
content:
application/json:
schema:
$ref:'#/components/schemas/UserProfile'
'404':
$ref:'#/components/responses/NotFound'
'500':
$ref:'#/components/responses/InternalError'
post:
tags:
- User Identity
summary:Update information about a user.
description:|
Edits some user profile information by username.
This endpoint requires authentication.
operationId:postUserProfile
parameters:
- $ref:'#/components/parameters/Username'
- $ref:'#/components/parameters/Name'
- $ref:'#/components/parameters/HomePage'
- $ref:'#/components/parameters/Location'
- $ref:'#/components/parameters/Profile'
- $ref:'#/components/parameters/Currency'
security:
- UserToken:[]
- ConsumerKeySecret:[]
- OAuth:[]
responses:
'200':
description:Successfully retrieved an updated profile user information by a given username.
headers:
X-Discogs-RateLimit:
$ref:'#/components/headers/RateLimit'
X-Discogs-RateLimit-Used:
$ref:'#/components/headers/RateLimitUsed'
X-Discogs-RateLimit-Remaining:
$ref:'#/components/headers/RateLimitRemaining'
content:
application/json:
schema:
$ref:'#/components/schemas/UserProfile'
'403':
$ref:'#/components/responses/NotAccessable'
'404':
$ref:'#/components/responses/NotFound'
'500':
$ref:'#/components/responses/InternalError'
/users/{username}/contributions:
get:
tags:
- User Identity
summary:Get contributions of a user.
description:|
Retrieves all the contributions or additions to releases, labels, and artist done by username.
This endpoints accepts pagination headers.
operationId:getUserContributions
parameters:
- $ref:'#/components/parameters/Username'
- $ref:'#/components/parameters/SortField'
- $ref:'#/components/parameters/SortOrder'
responses:
'200':
description:Successfully retrieved items contributed by a user.
headers:
X-Discogs-RateLimit:
$ref:'#/components/headers/RateLimit'
X-Discogs-RateLimit-Used:
$ref:'#/components/headers/RateLimitUsed'
X-Discogs-RateLimit-Remaining:
$ref:'#/components/headers/RateLimitRemaining'
content:
application/json:
schema:
type:object
properties:
pagination:
$ref:'#/components/schemas/Pagination'
submissions:
description:A type that represents all items submitted by a user.
$ref:'#/components/schemas/UserItems'
required:
- pagination
- contributions
'404':
$ref:'#/components/responses/NotFound'
'500':
$ref:'#/components/responses/InternalError'
/users/{username}/submissions:
get:
tags:
- User Identity
summary:Get submissions of a user.
description:|
Retrieves all the submissions or edits to releases, labels, and artist done by username.
This endpoints accepts pagination headers.
operationId:getUserSubmissions
parameters:
- $ref:'#/components/parameters/Username'
responses:
'200':
description:Successfully retrieved items submitted by a user.
headers:
X-Discogs-RateLimit:
$ref:'#/components/headers/RateLimit'
X-Discogs-RateLimit-Used:
$ref:'#/components/headers/RateLimitUsed'
X-Discogs-RateLimit-Remaining:
$ref:'#/components/headers/RateLimitRemaining'
content:
application/json:
schema:
type:object
properties:
pagination:
$ref:'#/components/schemas/Pagination'
submissions:
description:A type that represents all items edited by a user.
Retrieves a list of folders in a collection of a user.
In case the collection has been made private by its owner, authentication as the collection owner is required. Otherwise, only folder `ID 0`` (the “All” folder) will be visible only if the requested collection of a user is public.
operationId:getCollectionFolders
parameters:
- $ref:'#/components/parameters/Username'
responses:
'200':
description:Successfully retrieved all the collection folders by a user.
headers:
X-Discogs-RateLimit:
$ref:'#/components/headers/RateLimit'
X-Discogs-RateLimit-Used:
$ref:'#/components/headers/RateLimitUsed'
X-Discogs-RateLimit-Remaining:
$ref:'#/components/headers/RateLimitRemaining'
content:
application/json:
schema:
type:object
properties:
pagination:
$ref:'#/components/schemas/Pagination'
folders:
description:A list of collection folders of a user.
type:array
items:
$ref:'#/components/schemas/Folder'
required:
- pagination
- folders
'404':
$ref:'#/components/responses/NotFound'
'500':
$ref:'#/components/responses/InternalError'
post:
tags:
- User Collection
summary:Create a new collection folder for a user.
description:|
Creates a new folder in the collection of a user.
This endpoint requires authentication for the owner.
operationId:postCollectionFolders
parameters:
- $ref:'#/components/parameters/Username'
- $ref:'#/components/parameters/Name'
description:A name for a new folder.
security:
- ConsumerKeySecret:[]
- UserToken:[]
- OAuth:[]
responses:
'201':
description:Successfully create a new collection folder for a user.
headers:
X-Discogs-RateLimit:
$ref:'#/components/headers/RateLimit'
X-Discogs-RateLimit-Used:
$ref:'#/components/headers/RateLimitUsed'
X-Discogs-RateLimit-Remaining:
$ref:'#/components/headers/RateLimitRemaining'
content:
application/json:
schema:
$ref:'#/components/schemas/Folder'
'403':
$ref:'#/components/responses/NotAccessable'
'404':
$ref:'#/components/responses/NotFound'
'500':
$ref:'#/components/responses/InternalError'
/users/{username}/collection/folders/{folder_id}:
get:
tags:
- User Collection
summary:Get information about a collection folder of a user.
description:|
Retrieves metadata about a collection folder of a user.
In case the `folder_id` is not 0, then the endpoint requires authentication as the collection owner.
operationId:getCollectionFolder
parameters:
- $ref:'#/components/parameters/Username'
- $ref:'#/components/parameters/FolderId'
responses:
'200':
description:Successfully retrieved a specific collection folder of a user.
headers:
X-Discogs-RateLimit:
$ref:'#/components/headers/RateLimit'
X-Discogs-RateLimit-Used:
$ref:'#/components/headers/RateLimitUsed'
X-Discogs-RateLimit-Remaining:
$ref:'#/components/headers/RateLimitRemaining'
content:
application/json:
schema:
$ref:'#/components/schemas/Folder'
'403':
$ref:'#/components/responses/NotAccessable'
'404':
$ref:'#/components/responses/NotFound'
'500':
$ref:'#/components/responses/InternalError'
post:
tags:
- User Collection
summary:Update information about a collection folder of a user.
description:|
Edits the metadata for a collection folder of a user. Please bear in mind that the folders with identifier `0` and `1` cannot be renamed.
Authentication as the collection owner is required.
operationId:postCollectionFolder
parameters:
- $ref:'#/components/parameters/Username'
- $ref:'#/components/parameters/FolderId'
- $ref:'#/components/parameters/Name'
description:A new name for a collection folder of a user.
security:
- ConsumerKeySecret:[]
- UserToken:[]
- OAuth:[]
responses:
'200':
description:Successfully retrieved an updated collection folder of a user.
headers:
X-Discogs-RateLimit:
$ref:'#/components/headers/RateLimit'
X-Discogs-RateLimit-Used:
$ref:'#/components/headers/RateLimitUsed'
X-Discogs-RateLimit-Remaining:
$ref:'#/components/headers/RateLimitRemaining'
content:
application/json:
schema:
$ref:'#/components/schemas/Folder'
'403':
$ref:'#/components/responses/NotAccessable'
'404':
$ref:'#/components/responses/NotFound'
'500':
$ref:'#/components/responses/InternalError'
delete:
tags:
- User Collection
summary:Delete a collection folder from a collection of a user.
description:|
Deletes a collection folder from a collection of a user.
> important: A folder must be empty before it can be deleted.
This endpoints requires authentication as the collection owner.
operationId:deleteCollectionFolder
parameters:
- $ref:'#/components/parameters/Username'
- $ref:'#/components/parameters/FolderId'
security:
- ConsumerKeySecret:[]
- UserToken:[]
- OAuth:[]
responses:
'204':
description:Successfully delete a specific collection folder of a user.
summary:Get collection items of a user inside a specified folder.
description:|
Returns the list of item in a specified collection folder of a user.
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.
This endpoint provides pagination parameters and also, requires authentication as an owner of a collection only in case the `folder_id` is not `0`, or the collection has been made private by its owner. Otherwise, only public notes fields will be visible.
operationId:getCollectionItemsByFolder
parameters:
- $ref:'#/components/parameters/Username'
- $ref:'#/components/parameters/FolderId'
- $ref:'#/components/parameters/SortField'
- $ref:'#/components/parameters/SortOrder'
responses:
'200':
description:Successfully retrieved a specific collection folder of a
headers:
X-Discogs-RateLimit:
$ref:'#/components/headers/RateLimit'
X-Discogs-RateLimit-Used:
$ref:'#/components/headers/RateLimitUsed'
X-Discogs-RateLimit-Remaining:
$ref:'#/components/headers/RateLimitRemaining'
content:
application/json:
schema:
type:object
properties:
pagination:
$ref:'#/components/schemas/Pagination'
releases:
description:A list of collection folders of a user that contains a
summary:Update a rating for a specified release instance in a specified collection folder of a user.
description:|
Changes the rating on a release and/or move the instance to another folder.
This endpoint potentially takes 2 `folder_id` parameters: 1) in the URL (which is the folder you are requesting, and is required), and 2) in the request body (representing the folder you want to move the instance to, which is optional)
This endpoints requires authentication as the collection owner.
operationId:postChangeRatingOfRelease
parameters:
- $ref:'#/components/parameters/Username'
- $ref:'#/components/parameters/FolderId'
- $ref:'#/components/parameters/ReleaseId'
- $ref:'#/components/parameters/InstanceId'
- $ref:'#/components/parameters/Rating'
requestBody:
$ref:'#/components/requestBodies/MoveInstance'
security:
- ConsumerKeySecret:[]
- UserToken:[]
- OAuth:[]
responses:
'204':
description:Successfully updated a rating for a specific release instance inside a collection folder of a user.
headers:
X-Discogs-RateLimit:
$ref:'#/components/headers/RateLimit'
X-Discogs-RateLimit-Used:
$ref:'#/components/headers/RateLimitUsed'
X-Discogs-RateLimit-Remaining:
$ref:'#/components/headers/RateLimitRemaining'
'403':
$ref:'#/components/responses/NotAccessable'
'404':
$ref:'#/components/responses/NotFound'
'500':
$ref:'#/components/responses/InternalError'
delete:
tags:
- User Collection
summary:Delete a specified release instance in a specified collection folder of a user.
description:|
Removes an instance of a release from a collection folder of a user.
> important: To move the release to the *Uncategorized* folder instead, use the `POST` method.
This endpoint requires authentication as the collection owner.
operationId:deleteInstanceFromCollectionFolder
parameters:
- $ref:'#/components/parameters/Username'
- $ref:'#/components/parameters/FolderId'
- $ref:'#/components/parameters/ReleaseId'
- $ref:'#/components/parameters/InstanceId'
security:
- ConsumerKeySecret:[]
- UserToken:[]
- OAuth:[]
responses:
'204':
description:Successfully deleted a specific release instance inside a collection folder of a user.
summary:Update a value of a custom field assigned to a release instance.
description:Changes the value of a notes field on a particular instance.
operationId:editFieldsInstance
parameters:
- $ref:'#/components/parameters/Username'
- $ref:'#/components/parameters/FolderId'
- $ref:'#/components/parameters/ReleaseId'
- $ref:'#/components/parameters/InstanceId'
- $ref:'#/components/parameters/FieldId'
- $ref:'#/components/parameters/FieldValue'
security:
- ConsumerKeySecret:[]
- UserToken:[]
- OAuth:[]
responses:
'204':
description:Successfully updated a value of a custom notes field for a release instance in a collection folder.
headers:
X-Discogs-RateLimit:
$ref:'#/components/headers/RateLimit'
X-Discogs-RateLimit-Used:
$ref:'#/components/headers/RateLimitUsed'
X-Discogs-RateLimit-Remaining:
$ref:'#/components/headers/RateLimitRemaining'
'403':
$ref:'#/components/responses/NotAccessable'
'404':
$ref:'#/components/responses/NotFound'
'500':
$ref:'#/components/responses/InternalError'
/users/{username}/collection/fields:
get:
tags:
- User Collection
summary:Get a list of custom fields defined by a user.
description:|
Retrieves a list of collection notes fields defined by a user.
These fields are available on every release in a collection. In case a collection has been made private by its owner, then the endpoints requires authentication as the collection owner. Otherwise only public custom fields will be visible.
operationId:getCustomFields
parameters:
- $ref:'#/components/parameters/Username'
security:
- ConsumerKeySecret:[]
- UserToken:[]
- OAuth:[]
responses:
'200':
description:Successfully retrieved a list of custom fields defined by a user.
headers:
X-Discogs-RateLimit:
$ref:'#/components/headers/RateLimit'
X-Discogs-RateLimit-Used:
$ref:'#/components/headers/RateLimitUsed'
X-Discogs-RateLimit-Remaining:
$ref:'#/components/headers/RateLimitRemaining'
content:
application/json:
schema:
description:A type that contains a list of retrieved custom fields of a user.
type:object
properties:
fields:
description:A list of custom fields.
type:array
items:
$ref:'#/components/schemas/CustomField'
required:
- fields
'403':
$ref:'#/components/responses/NotAccessable'
'404':
$ref:'#/components/responses/NotFound'
'500':
$ref:'#/components/responses/InternalError'
/users/{username}/collection/value:
get:
tags:
- User Collection
summary:Get the estimated monetary value for a collection of a user.
description:|
Returns the estimated minimum, median, and maximum values for a collection of a user.
This endpoint requires authentication as the collection owner.
operationId:getCollectionValue
parameters:
- $ref:'#/components/parameters/Username'
security:
- ConsumerKeySecret:[]
- UserToken:[]
- OAuth:[]
responses:
'200':
description:Successfully retrieved the estimated monetary value for a collection of a user.
summary:Get a list of releases in a wantlist of a user.
description:|
Returnss the list of releases in a wantlist of a user. 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.
operationId:getWantlist
parameters:
- $ref:'#/components/parameters/Username'
- $ref:'#/components/parameters/Page'
- $ref:'#/components/parameters/PerPage'
responses:
'200':
description:Successfully retrieved a list of releases in a wantlist of a user.
summary:Get the listings in an inventory of a seller.
description:|
Returns the list of listings for an inventory of a user.
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.
This endpoints accepts pagination and also, in case of authenticated as an inventory owner, items that not only have the `For Sale` state will be shown as well as other extra fields in those items such as `weight`, `format_quality`, `external_id`, `location`, and `quantity_keys`. Note that the `quantity` field is read-only for *NearMint* users, who will see *1* for all quantity values, regardless of their actual count.
In case the user is authorized, the listing will contain a `in_cart` boolean field indicating whether or not this listing is in their cart.
operationId:getInventory
parameters:
- $ref:'#/components/parameters/Username'
- $ref:'#/components/parameters/InventoryStatus'
- $ref:'#/components/parameters/SortInventory'
- $ref:'#/components/parameters/SortOrder'
- $ref:'#/components/parameters/Page'
- $ref:'#/components/parameters/PerPage'
responses:
'200':
description:Successfully retrieved the list of listings in an inventory of a seller.
headers:
Link:
$ref:'#/components/headers/Link'
X-Discogs-RateLimit:
$ref:'#/components/headers/RateLimit'
X-Discogs-RateLimit-Used:
$ref:'#/components/headers/RateLimitUsed'
X-Discogs-RateLimit-Remaining:
$ref:'#/components/headers/RateLimitRemaining'
content:
application/json:
schema:
description:A type that contains a list of listing in an inventory of a user.
type:object
properties:
pagination:
$ref:'#/components/schemas/Pagination'
listings:
description:A list of listings in an inventory of a user.
summary:Get information about a listing in the marketplace.
description:|
Views the data associated with a listing in the marketplace.
In case of authenticated as an inventory owner, items that not only have the `For Sale` state will be shown as well as other extra fields in those items such as `weight`, `format_quality`, `external_id`, `location`, and `quantity_keys`. Note that the `quantity` field is read-only for *NearMint* users, who will see *1* for all quantity values, regardless of their actual count.
In case the user is authorized, the listing will contain a `in_cart` boolean field indicating whether or not this listing is in their cart.
operationId:getListing
parameters:
- $ref:'#/components/parameters/ListingId'
- $ref:'#/components/parameters/Currency'
responses:
'200':
description:Successfully retrieved a listing in a marketplace.
Edits the data associated with a listing in a marketplace.
In case a status of a listingis not `For Sale`, `Draft`, or `Expired`, it cannot be modified - only deleted. To re-list a Sold listing, a new listing must be created.
This endpoint requires authentication as a listing owner.
operationId:editListing
parameters:
- $ref:'#/components/parameters/ListingId'
requestBody:
$ref:'#/components/requestBodies/Listing'
security:
- ConsumerKeySecret:[]
- UserToken:[]
- OAuth:[]
responses:
'204':
description:Successfully edited a listing from a marketplace.