Discogs

Discogs

Music

You can access JSON-formatted information about Database objects such as Artists, Releases, and Labels. he Discogs API lets developers build their own Discogs-powered applications for the web, desktop, and mobile devices. We hope the API will connect and empower a community of music lovers around the world!

Visit API🔁 Alternatives

🔑 How to get a free Discogs API token

For personal scripts you don't need OAuth — a personal access token takes under a minute.

  1. Create a free Discogs account. Sign up at discogs.com if you don't already have an account.
  2. Open developer settings. Go to discogs.com/settings/developers.
  3. Generate a personal access token. Click "Generate new token" — this is enough for most read requests. (Building an app for other users? Register an application to get a consumer key/secret for OAuth instead.)
  4. Authenticate your requests. Send the header Authorization: Discogs token=YOUR_TOKEN and a descriptive User-Agent with every request to https://api.discogs.com.
Generate your Discogs token →

📚 Documentation & Examples

Everything you need to integrate with Discogs

🚀 Quick Start Examples

Discogs Javascript Examplejavascript
// Discogs API Example
const response = await fetch('https://www.discogs.com/developers/', {
    method: 'GET',
    headers: {
        'Content-Type': 'application/json'
    }
});

const data = await response.json();
console.log(data);

Exploring the Discogs Public API with JavaScript

Discogs is a popular music marketplace where users can buy and sell vinyl, CDs, and other types of music media. Discogs also offers a public API that allows developers to access and interact with the marketplace's data. In this blog post, we will explore the Discogs Public API and provide some examples of how to use it in JavaScript.

Getting Started

Before we can start using the Discogs Public API, we need to obtain an API key. To do this, we need to register an account on the Discogs website and create an application to get a key. Once we have our key, we can start making requests to the API.

Making API Requests in JavaScript

To make API requests in JavaScript, we can use the built-in fetch function. The fetch function returns a Promise that resolves to the response from the API server. We can then use methods like .json() to extract the data from the response.

Here is an example of making a request to get information about a specific release:

fetch('https://api.discogs.com/releases/1', {
  headers: { 'Authorization': 'Discogs key=[YOUR_KEY],secret=[YOUR_SECRET]' }
})
  .then(response => response.json())
  .then(data => console.log(data))
  .catch(error => console.error(error));

In this example, we are using the fetch function to get information about the release with ID 1. We are also including our API key in the headers of the request. The response is then converted to a JSON object and logged to the console.

Searching for Releases

One of the most common use cases for the Discogs API is to search for releases based on certain criteria. Here is an example of using the search API to find all releases by a specific artist:

fetch('https://api.discogs.com/database/search?q=artist:"Radiohead"&type=release&per_page=10', {
  headers: { 'Authorization': 'Discogs key=[YOUR_KEY],secret=[YOUR_SECRET]' }
})
  .then(response => response.json())
  .then(data => console.log(data))
  .catch(error => console.error(error));

In this example, we are searching for releases where the artist name contains the string "Radiohead". We are also specifying that we only want to search for release types, and that we want a maximum of 10 results per page.

Conclusion

The Discogs Public API provides a wealth of information about music releases. With JavaScript, we can easily make requests to the API and process the data that is returned. Hopefully, these examples have given you a good starting point for using the Discogs API in your own projects.

❓ Frequently Asked Questions

Is the Discogs API free?

Yes, completely free. Authenticated requests get 60 requests per minute; unauthenticated requests are limited to 25 per minute.

Do I need OAuth to use the Discogs API?

No — for read access a personal access token from discogs.com/settings/developers is enough. OAuth is only needed when acting on behalf of other users (e.g., editing their collection).

What data does the Discogs API provide?

The full Discogs database: releases, master releases, artists, labels, marketplace listings and price suggestions, plus user collections and wantlists.

Explore More

Best Discogs alternatives (2026)Best Music APIs

Related APIs in Music