Discogs Scraper avatar

Discogs Scraper

Pricing

from $2.00 / 1,000 results

Go to Apify Store
Discogs Scraper

Discogs Scraper

Scrapes the Discogs music database — releases, masters, artists and labels with year, country, format, genre and collector counts.

Pricing

from $2.00 / 1,000 results

Rating

0.0

(0)

Developer

Mina

Mina

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

11 days ago

Last modified

Features

Limited permissions

Share

What does Discogs Scraper do?

Discogs Scraper searches the Discogs music database and saves releases, masters (one entry per album), artists or labels. Each release comes with its year, country, record labels and catalogue number, format (such as Vinyl, LP, CD or Reissue), genres and styles, barcodes, a link to the Discogs page, and the number every collector looks at: how many Discogs users have it and how many want it. Search by artist, album or label name, narrow the results with filters such as genre, year, country or format, or use the filters alone to browse a slice of the catalogue. No Discogs account is needed.

Try it with the prefilled search: open the Actor, click Start, and up to 200 nirvana releases arrive in the Output tab. Because it runs on the Apify platform, you also get API access, scheduled runs, integrations (Google Sheets, Make, Zapier, webhooks) and run monitoring, so there is nothing to set up.

Why scrape Discogs?

  • Record dealing and collecting: compare want_count with have_count to spot records that many collectors want but few own.
  • Discographies: map a label's or an artist's catalogue with formats, countries, years and catalogue numbers.
  • Pressing research: see which pressings of an album exist, in which countries and years, and on which formats.
  • Music and market research: study a genre, style or era across thousands of records instead of album by album.
  • Catalogue enrichment: add years, labels, catalogue numbers, barcodes and genres to a record shop's stock list or your own collection.

How to scrape Discogs

  1. Type what you are looking for into Search terms, one per line: an artist, an album or a label (for example nirvana).
  2. Choose What to return: Releases (every pressing separately), Masters (one entry per album), Artists or Labels.
  3. Optionally narrow the results with the Filters: genre, style, year, country, format, label or artist. You can also leave Search terms empty and search by filters alone.
  4. Set Max results per search (200 by default) and, if you have one, paste your Discogs token.
  5. Click Start, then download the results when the run finishes.

Input

Everything is set on the Input tab. In JSON, the input looks like this:

{
"search_terms": ["nirvana", "pearl jam"],
"result_type": "release",
"genre": "Rock",
"year": "1991",
"country": "US",
"format": "Vinyl",
"max_results_per_search": 200
}
FieldTypeDefaultWhat it does
search_termsarray of strings[]What to search for, one term per line. A term repeated in any letter case is searched once. Leave empty to search by the filters alone.
result_typestringreleaserelease (every pressing and reissue), master (one per album), artist or label.
genrestringnoneGenre, such as Rock, Jazz or Electronic.
stylestringnoneNarrower style, such as Grunge, Bebop or Techno.
yearstringnoneA single year, such as 1975.
countrystringnoneCountry of release, such as UK, US or Japan.
formatstringnoneFormat, such as Vinyl, CD or Cassette.
labelstringnoneRecord label, such as Blue Note.
artiststringnoneOnly results by this artist.
max_results_per_searchinteger200Results to save for each search term, from 1 up.
api_tokenstringnoneYour personal Discogs token. Optional; stored as a secret.

The filters apply to every search term. Give at least one search term or one filter: with neither, the Actor has nothing to search for and stops without results.

Output

One row per result, in the order Discogs returns them. This is what a release row looks like (illustrative values, from a run without a token):

{
"result_type": "release",
"id": "7445961",
"title": "Nirvana - Nirvana",
"year": 2015,
"country": "Europe",
"labels": ["DGC", "Sub Pop"],
"catalog_number": "0602547378781",
"formats": ["Vinyl", "LP", "Reissue"],
"genres": ["Rock"],
"styles": ["Grunge", "Alternative Rock"],
"barcode": ["602547378781", "BIEM/SDRM"],
"have_count": 22612,
"want_count": 1754,
"master_id": "42375",
"image": "",
"url": "https://www.discogs.com/release/7445961-Nirvana-Nirvana",
"position": 1,
"query": "nirvana"
}

With a Discogs token, image holds a link to the cover. Artist and label rows have the same fields, but the release details (year, labels, formats, collector counts and so on) stay empty.

You can download the dataset in various formats such as JSON, HTML, CSV, or Excel, or read it through the Apify API.

Data fields

FieldTypeDescription
result_typestringrelease, master, artist or label.
idstringDiscogs id of the release, master, artist or label.
titlestringFor releases and masters, Artist - Title; for artists and labels, the name.
yearinteger or nullYear of release.
countrystring or nullCountry of release, such as US, UK or Europe.
labelsarrayRecord labels listed for the release.
catalog_numberstring or nullCatalogue number.
formatsarrayThe format and its details, such as Vinyl, LP, Reissue or Compilation.
genresarrayGenres, such as Rock.
stylesarrayNarrower styles, such as Grunge.
barcodearrayUp to 5 barcodes and other identifiers Discogs lists for the release.
have_countinteger or nullHow many Discogs users have it in their collection.
want_countinteger or nullHow many Discogs users have it on their wantlist.
master_idstring or nullId of the master (album) the release belongs to.
imagestring or nullLink to the cover image. Empty without a Discogs token.
urlstringThe page on Discogs.
positionintegerRank of the result within its search, from 1.
querystring or nullThe search term the result was found for. Null for a search by filters alone.

How much does it cost to scrape Discogs?

You pay per result saved to the dataset; see the Pricing tab for the exact price. Each run also has a tiny charge when it starts. Searches that find nothing save no rows, so they add nothing more. Max results per search caps what each search can cost, and the Actor stops by itself when a run reaches the maximum cost you set for it.

Tips for scraping Discogs

  • Add a Discogs token for speed and cover images. Without one, Discogs allows 25 requests a minute, so the Actor waits about 3 seconds between requests. With a token it waits about 1 second, which makes runs roughly twice as fast, and Discogs also sends the cover images. You can create a personal token in your Discogs account under Settings → Developers.
  • Each request brings back up to 100 results, so the default 200 results per search take two requests.
  • Releases or masters? Releases list every pressing separately, so a popular album appears many times (different countries, years and reissues). Choose Masters for one row per album.
  • Browse by filters alone. Leave Search terms empty and set, for example, Genre Jazz and Year 1975. Raise Max results per search to get more than 200; the Actor reads at most 200 pages of 100 results per search.
  • Use Discogs's own names in filters, as the Discogs site shows them, such as Electronic or Hip Hop.
  • Combining several searches? Results are de-duplicated within each search, but the same record can turn up under two search terms, so de-duplicate on id.
  • Large runs take longer rather than fail. When Discogs's allowance runs out, the Actor waits for the next minute and carries on.

FAQ, disclaimers, and support

Do I need a Discogs account? No. The Actor works without one. A token from a free Discogs account only makes it faster and adds cover images.

Is it legal to scrape Discogs? The Actor reads Discogs's public catalogue: release details and collector counts that anyone can look up. It collects no data about individual Discogs users. Make sure your use of the data follows Discogs's terms of use. Web data scraping is legal in many cases, but if you are unsure, consult a lawyer.

Why is image empty? Discogs sends cover images only to callers with a token. Add your Discogs token to get them.

Why did a search give nothing? Either nothing on Discogs matched it, or Discogs did not answer after 5 attempts. Such a search is listed in the FAILED_INPUTS record of the run's key-value store with the reason, and nothing is charged for it. If Discogs refuses your token, every search is listed with that reason: check the token, or clear it to run without one. The run only fails when every search failed with an error.

Why are year, format and collector counts empty for artists and labels? Discogs sends only the name, id, image and link for artist and label results.

Found a bug or need another field? Open an issue on the Issues tab and it will be looked at. Need a custom scraper or a different output format? Get in touch through the Issues tab too.