interface to the Discogs API 🎵
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
R
man
.Rbuildignore
.gitignore
.travis.yml
CODE_OF_CONDUCT.md
DESCRIPTION
LICENSE
LICENSE.md
NAMESPACE
NEWS.md
README.Rmd
README.md
discogger.Rproj

README.md

discogger discogger Logo

lifecycle Travis build status

Tools for working with the Discogs API in R.

Discogs Developers Site: https://www.discogs.com/developers

Install

Development version

devtools::install_github('ewenme/discogger')

Authenticate

  1. Create a Discogs API v2 application
  2. Generate a personal access token from your API application page
  3. Set your credentials in the System Environment variable DISCOGS_API_TOKEN by calling the discogs_api_token() function and entering your Discogs application personal access token when prompted.

Use

library(discogger)
library(tidyverse)

Who released the most Dance Mania records?

# get dance mania records listed on discogs
dm_recs <- discogs_label_releases(label_id = 314)

dm_recs$content %>%
  group_by(artist) %>%
  summarise(n_releases = n_distinct(catno)) %>%
  arrange(desc(n_releases)) %>%
  top_n(10)
## # A tibble: 26 x 2
##    artist                                                       n_releases
##    <chr>                                                             <int>
##  1 Various                                                               4
##  2 The House Master Boyz* And 'The Rude Boy Of House' Farley '…          2
##  3 The House Master Boyz* And The Rude Boy Of House                      2
##  4 Chilly T                                                              1
##  5 Criminal House                                                        1
##  6 Cynthia MT*                                                           1
##  7 D.J. Funk*                                                            1
##  8 Da Posse Featuring Martell                                            1
##  9 Dave Ross Featuring Kitay                                             1
## 10 Duane & Co.                                                           1
## # ... with 16 more rows

Contribute

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.