An archive of my Spotify playlists and the tooling to generate it.
- Spotify API client credentials
- Spotify username
- Node 8+
npm install
node bin/ output-path.json
# CLI help
node bin/ --help
You'll need to provide three environment variables:
Variable |
---|
SPOTIFY_USERNAME |
SPOTIFY_CLIENT_ID |
SPOTIFY_CLIENT_SECRET |
The playlist data will be output as JSON at the provided path. The Spotify API is rate limited, so it might take a second if you have a lot of playlists.
{
"username": "camwiegert",
"timestamp": "2019-10-22T03:38:21.645Z",
"playlists": [
{
"name": "Sick Jamz",
"tracks": [
{
"title": "Not",
"album": "Two Hands",
"artists": [
"Big Thief"
]
},
...