{"id":17956367,"url":"https://github.com/b0o/spotify-export","last_synced_at":"2025-06-30T11:33:43.172Z","repository":{"id":40717272,"uuid":"267712102","full_name":"b0o/spotify-export","owner":"b0o","description":"Export a listing of your saved tracks as JSON","archived":false,"fork":false,"pushed_at":"2022-06-25T13:07:38.000Z","size":250,"stargazers_count":5,"open_issues_count":7,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-19T07:04:11.373Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/b0o.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-05-28T22:43:08.000Z","updated_at":"2022-12-17T03:14:12.000Z","dependencies_parsed_at":"2022-07-29T05:18:02.521Z","dependency_job_id":null,"html_url":"https://github.com/b0o/spotify-export","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b0o%2Fspotify-export","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b0o%2Fspotify-export/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b0o%2Fspotify-export/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b0o%2Fspotify-export/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/b0o","download_url":"https://codeload.github.com/b0o/spotify-export/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245385458,"owners_count":20606651,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-10-29T10:37:33.495Z","updated_at":"2025-03-25T02:31:20.884Z","avatar_url":"https://github.com/b0o.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Spotify Export\n==============\n\nExport a listing of your saved tracks as JSON.\n\nUsage\n-----\n\n1. Install this tool locally\n- 1. `git clone https://github.com/b0o/spotify-export`\n- 2. `cd spotify-export`\n- 3. `npm install`\n\n2. Navigate to the [Spotify Web Player](https://open.spotify.com/) and sign in\n\n3. Obtain your auth token\n- 1. Open your browser's devtools\n- 2. Select the Network tab\n- 3. Refresh the page\n- 4. Find any request to the domain `api.spotify.com`\n- 5. Select the request, then under *Request Headers* find the `authorization: Bearer ...` header\n- 6. Right click and copy the header\n\n4. Run `index.js`, passing your auth token, and redirect stdout to a file:\n\n```\n$ ./index.js \"authorization: Bearer \u003ctoken\u003e\" \u003e spotify-saved-songs.json\n```\n\n5. You can use [jq](https://github.com/stedolan/jq) to transform the JSON output as desired, e.g:\n\n```\n$ jq -r '.[] | \"\\(.track.artists | map(.name) | join(\", \")) — \\(.track.name)\"' spotify-saved-songs.json\nPhotay — Warmth in the Coldest Acre\nPhotay — Existential Celebration\nPhotay — Pressure\nOl' Burger Beats — Bare Horisont - Instrumental\nJames Blake — Love What Happened Here\nEli Keszler — Measurement Doesn’t Change The System At All\nAphex Twin — Alberto Balsalm\nRobbie Basho — Clair de lune (For Twelve-String) [Live]\nMount Kimbie, James Blake — How We Got By\nMount Kimbie — Delta\n...\n```\n\nLicense\n-------\n\u0026copy; 2020 Maddison Hellstrom\n\nReleased under the GNU General Public License, version 3.0 or later.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb0o%2Fspotify-export","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fb0o%2Fspotify-export","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb0o%2Fspotify-export/lists"}