Skip to content
💽 An archive of my Spotify playlists.
JavaScript
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
lib
.gitignore
LICENSE
README.md
package-lock.json
package.json
playlists.json

README.md

💽 Spotify Playlist Archive

An archive of my Spotify playlists and the tooling to generate it.

Requirements

Install

npm install

Usage

node bin/ output-path.json

# CLI help
node bin/ --help

Environment Variables

You'll need to provide three environment variables:

Variable
SPOTIFY_USERNAME
SPOTIFY_CLIENT_ID
SPOTIFY_CLIENT_SECRET

Output

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"
                    ]
                },
                ...
You can’t perform that action at this time.