{"id":25841592,"url":"https://github.com/chronicle-app/chronicle-spotify","last_synced_at":"2026-05-14T03:33:10.209Z","repository":{"id":62559497,"uuid":"482606565","full_name":"chronicle-app/chronicle-spotify","owner":"chronicle-app","description":"Spotify importer for chronicle-etl","archived":false,"fork":false,"pushed_at":"2024-04-30T19:51:57.000Z","size":23,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-13T13:22:11.789Z","etag":null,"topics":["archiving","chronicle-etl","chronicle-plugin","cli","data-liberation","music","personal-data","spotify","spotify-api"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chronicle-app.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-04-17T18:48:40.000Z","updated_at":"2024-04-30T19:51:54.000Z","dependencies_parsed_at":"2022-11-03T12:00:24.966Z","dependency_job_id":null,"html_url":"https://github.com/chronicle-app/chronicle-spotify","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/chronicle-app/chronicle-spotify","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chronicle-app%2Fchronicle-spotify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chronicle-app%2Fchronicle-spotify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chronicle-app%2Fchronicle-spotify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chronicle-app%2Fchronicle-spotify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chronicle-app","download_url":"https://codeload.github.com/chronicle-app/chronicle-spotify/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chronicle-app%2Fchronicle-spotify/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33009479,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-14T02:00:06.663Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["archiving","chronicle-etl","chronicle-plugin","cli","data-liberation","music","personal-data","spotify","spotify-api"],"created_at":"2025-03-01T05:29:46.507Z","updated_at":"2026-05-14T03:33:10.196Z","avatar_url":"https://github.com/chronicle-app.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Chronicle::Spotify\n[![Gem Version](https://badge.fury.io/rb/chronicle-spotify.svg)](https://badge.fury.io/rb/chronicle-spotify)\n\nExtract your Spotify history using the command line with this plugin for [chronicle-etl](https://github.com/chronicle-app/chronicle-etl).\n\n## Usage\n\n### 1. Install Chronicle-ETL and this plugin\n\n```sh\n# Install chronicle-etl and this plugin\n$ gem install chronicle-etl\n$ chronicle-etl plugins:install spotify\n```\n\n### 2. Create a Spotify App\nTo get access to the Spotify API, you must first create an app. Press the \"Create an app\" button in the [Developer Dashboard](https://developer.spotify.com/dashboard/applications).\n\nIn the app's setting, in the `Redirect URIs` field, add `http://localhost:4567/auth/spotify/callback`. After your app has been saved, grab the `client_id` and `client_secret` credentials and save them to chronicle-etl secrets:\n\n```sh\n$ chronicle-etl secrets:set spotify client_id\n$ chronicle-etl secrets:set spotify client_secret\n```\n\n### 3. Authorize Spotify\n\nNext, we need an access token for accessing your data. We can use the authorization flow:\n\n```sh\n$ chronicle-etl authorizations:new spotify\n```\n\nThis will open a browser window to authorize on spotify.com. When the flow is complete, access/refresh tokens will be saved in the chronicle secret system under the \"spotify\" namespace. It'll be available automatically whenever you use this plugin.\n\n### 4. Use the the plugin\n```sh\n# Extract recent limits\n$ chronicle-etl --extractor spotify:listen --limit 10\n\n# Extract liked tracks from the last week\n$ chronicle-etl --extractor spotify:like --since 1w\n# Transform as Chronicle Schema\n$ chronicle-etl --extractor spotify:like --since 1w --schema chronicle\n\n# Extract saved albums\n$ chronicle-etl --extractor spotify:saved-album --limit 10\n\n# Display a table of album names you've liked in last week\n$ chronicle-etl --extractor spotify:saved-album --since 1w --schema chronicle --loader table --fields end_time object.name\n```\n\n## Available Connectors\n### Extractors\n\nAll the extractors expect `uid`, `access_token` and `refresh_token` to be available in your Chronicle secrets. After doing the authorization flow, you can verify that they exist using: `$ chronicle-etl secrets:list spotify`\n\n#### `like`\n\nExtractor for your Spotify liked tracks\n\n#### `saved-album`\n\nExtractor for your Spotify saved albums\n#### `listen`\n\nExtractor for your recent listens. Due to API limitations, only your 50 most recent \n\n## Roadmap\n- extractor for playlist activity ([#3](https://github.com/chronicle-app/chronicle-spotify/issues/3))\n- incorporate more Spotify metadata into the transformed records\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchronicle-app%2Fchronicle-spotify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchronicle-app%2Fchronicle-spotify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchronicle-app%2Fchronicle-spotify/lists"}