{"id":13630005,"url":"https://github.com/jpedroschmitz/simple-spotify-wrapper","last_synced_at":"2026-03-01T20:32:28.639Z","repository":{"id":34297768,"uuid":"174993030","full_name":"jpedroschmitz/simple-spotify-wrapper","owner":"jpedroschmitz","description":":loud_sound: A small and awesome wrapper to get general information from the Spotify Web API.","archived":false,"fork":false,"pushed_at":"2023-01-04T00:42:40.000Z","size":689,"stargazers_count":3,"open_issues_count":16,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-05T18:46:51.332Z","etag":null,"topics":["javascript","library","spotify","spotify-web-api","tdd","wrapper-api"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jpedroschmitz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-03-11T12:13:11.000Z","updated_at":"2023-03-24T20:28:54.000Z","dependencies_parsed_at":"2023-01-15T06:03:02.862Z","dependency_job_id":null,"html_url":"https://github.com/jpedroschmitz/simple-spotify-wrapper","commit_stats":null,"previous_names":["jpedroschmitz/spotify-wrapper"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jpedroschmitz/simple-spotify-wrapper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpedroschmitz%2Fsimple-spotify-wrapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpedroschmitz%2Fsimple-spotify-wrapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpedroschmitz%2Fsimple-spotify-wrapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpedroschmitz%2Fsimple-spotify-wrapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jpedroschmitz","download_url":"https://codeload.github.com/jpedroschmitz/simple-spotify-wrapper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpedroschmitz%2Fsimple-spotify-wrapper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29983167,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T16:35:47.903Z","status":"ssl_error","status_checked_at":"2026-03-01T16:35:44.899Z","response_time":124,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["javascript","library","spotify","spotify-web-api","tdd","wrapper-api"],"created_at":"2024-08-01T22:01:27.011Z","updated_at":"2026-03-01T20:32:28.623Z","avatar_url":"https://github.com/jpedroschmitz.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# Simple Spotify Wrapper\n\n[![Build Status](https://travis-ci.org/jpedroschmitz/simple-spotify-wrapper.svg?branch=master)](https://travis-ci.org/jpedroschmitz/simple-spotify-wrapper) [![Coverage Status](https://coveralls.io/repos/github/jpedroschmitz/spotify-wrapper/badge.svg?branch=master)](https://coveralls.io/github/jpedroschmitz/spotify-wrapper?branch=master)\n\nA small and awesome wrapper to get general information from the [Spotify Web API](https://developer.spotify.com/documentation/web-api/).\n\n\n## Installation\n\nYou can install the library using `npm`:\n\n```sh\n$ npm i simple-spotify-wrapper\n```\n\nor using `yarn`:\n\n```sh\n$ yarn add simple-spotify-wrapper\n```\n\n## How to use\n\n### ES6\n\n```js\n// import the library\nimport SpotifyWrapper from 'simple-spotify-wrapper';\n\n// create a instance\nconst spotify = new SpotifyWrapper({\n  token: 'PUT YOUR TOKEN HERE'\n});\n\nconst albums = spotify.search.albums('Choose your artist');\nalbums.then(data =\u003e console.log(data.albums));\n```\n\n### CommonJS\n\n```js\nvar spotifyWrapper = require('spotify-wrapper');\n```\n\n### UMD in Browser\n\n```html\n\u003c!-- to import non-minified version --\u003e\n\u003cscript src=\"spotify-wrapper.umd.js\"\u003e\u003c/script\u003e\n\n\u003c!-- to import minified version --\u003e\n\u003cscript src=\"spotify-wrapper.umd.min.js\"\u003e\u003c/script\u003e\n```\n\nAfter that the library will be available to the Global as `SpotifyWrapper`. Check this example:\n\n```js\nconst spotify = new SpotifyWrapper({\n    token: 'PUT YOUR TOKEN HERE'\n});\nconst albums = spotify.search.albums('Choose your artist');\nalbums.then(data =\u003e console.log(data.albums.items));\n```\n\n## Methods\n\nBelow are all the methods that the library provide:\n\n- [search.artists(query)](#searchartistsquery)\n- [search.albums(query)](#searchalbumsquery)\n- [search.tracks(query)](#searchtracksquery)\n- [search.playlists(query)](#searchplaylistsquery)\n- [album.getAlbum(id)](#albumgetalbumid)\n- [album.getAlbums(ids)](#albumgetalbumsids)\n- [album.getTracks(id)](#albumgettracksid)\n\n### search.artists(query)\n\n\u003e Search for informations about Artists with provided query. Test in [Spotify Web Console](https://developer.spotify.com/web-api/console/get-search-item/) with type defined as *artist*.\n\n**Arguments**\n\n| Argument | Type    | Options           |\n|----------|---------|-------------------|\n|`query`   |*string* | 'Any search query'|\n\n\n**Example**\n\n```js\nsearch.artists('Isadora Pompeo')\n  .then(data =\u003e {\n    // do what you want here\n  })\n```\n\n#### [⇯ go back](#methods)\n\n### search.albums(query)\n\n\u003e Search for informations about Albums with provided query. Test in [Spotify Web Console](https://developer.spotify.com/web-api/console/get-search-item/) with type defined as *album*.\n\n**Arguments**\n\n| Argument | Type    | Options           |\n|----------|---------|-------------------|\n|`query`   |*string* | 'Any search query'|\n\n\n**Example**\n\n```js\nspotify.search.albums('Isadora Pompeo')\n  .then(data =\u003e {\n    // do what you want here\n  })\n```\n\n#### [⇯ go back](#methods)\n\n### search.tracks(query)\n\n\u003e Search for informations about Tracks with provided query. Test in [Spotify Web Console](https://developer.spotify.com/web-api/console/get-search-item/) with type defined as *track*.\n\n**Arguments**\n\n| Argument | Type    | Options           |\n|----------|---------|-------------------|\n|`query`   |*string* | 'Any search query'|\n\n\n**Example**\n\n```js\nspotify.search.tracks('Isadora Pompeo')\n  .then(data =\u003e {\n    // do what you want here\n  })\n```\n\n#### [⇯ go back](#methods)\n\n### search.playlists(query)\n\n\u003e Search for informations about Playlists with provided query. Test in [Spotify Web Console](https://developer.spotify.com/web-api/console/get-search-item/) with type defined as *playlist*.\n\n**Arguments**\n\n| Argument | Type    | Options           |\n|----------|---------|-------------------|\n|`query`   |*string* | 'Any search query'|\n\n\n**Example**\n\n```js\nspotify.search.tracks('Isadora Pompeo')\n  .then(data =\u003e {\n    // do what you want here\n  })\n```\n\n#### [⇯ go back](#methods)\n\n### album.getAlbum(id)\n\n\u003e Search for informations about a specific Album with a id.\n\n**Arguments**\n\n| Argument | Type    | Options           |\n|----------|---------|-------------------|\n|`id`      |*string* | 'Specific id'|\n\n\n**Example**\n\n```js\nspotify.album.getAlbum('4aawyAB9vmqN3uQ7FjRGTy')\n  .then(data =\u003e {\n    // do what you want here\n  })\n```\n\n#### [⇯ go back](#methods)\n\n### album.getAlbums(ids)\n\n\u003e Search for informations about a specific Album with their ids.\n\n**Arguments**\n\n| Argument | Type    | Options           |\n|----------|---------|-------------------|\n|`ids`      |*Array of strings* | ['id1', 'id2'] |\n\n\n**Example**\n\n```js\nspotify.album.getAlbums(['4aawyAB9vmqN3uQ7FjRGTy', '1A2GTWGtFfWp7KSQTwWOyo'])\n  .then(data =\u003e {\n    // do what you want here\n  })\n```\n\n#### [⇯ go back](#methods)\n\n### album.getTracks(id)\n\n\u003e Search for all tracks from a specific album.\n\n**Arguments**\n\n| Argument | Type    | Options           |\n|----------|---------|-------------------|\n|`id`      |*string* | 'Specific id'|\n\n\n**Example**\n\n```js\nspotify.album.getTracks('4aawyAB9vmqN3uQ7FjRGTy')\n  .then(data =\u003e {\n    // do what you want here\n  })\n```\n\n#### [⇯ go back](#methods)\n\n## Browser Support\n\nThis library relies on [Fetch API](https://fetch.spec.whatwg.org/). And this API is supported in the following browsers.\n\n![Chrome](https://cloud.githubusercontent.com/assets/398893/3528328/23bc7bc4-078e-11e4-8752-ba2809bf5cce.png) | ![Firefox](https://cloud.githubusercontent.com/assets/398893/3528329/26283ab0-078e-11e4-84d4-db2cf1009953.png) | ![Opera](https://cloud.githubusercontent.com/assets/398893/3528330/27ec9fa8-078e-11e4-95cb-709fd11dac16.png) | ![Safari](https://cloud.githubusercontent.com/assets/398893/3528331/29df8618-078e-11e4-8e3e-ed8ac738693f.png) | ![IE](https://cloud.githubusercontent.com/assets/398893/3528325/20373e76-078e-11e4-8e3a-1cb86cf506f0.png) |\n--- | --- | --- | --- | --- |\n42+ ✔ | 39+ ✔ | 29+ ✔ | 10.1+ ✔ | Nope ✘ |\n\n## Dependencies\n\nThis library depends on [fetch](https://fetch.spec.whatwg.org/) to make requests to the Spotify Web API. For environments that don't support fetch, you'll need to provide a [polyfill](https://github.com/github/fetch) to browser or [polyfill](https://github.com/bitinn/node-fetch) to node.\n\n## Testing\n\nTo run the tests you can use the following command inside the project folder:\n\n```sh\nnpm test\n```\n\nOr if you want to test the coverage use:\n\n```sh\nnpm run test:coverage\n```\n\n## Projects using the library\n\n\u003e If you want to submit your application read the [CONTRIBUTING.md](CONTRIBUTING.md) for more details.\n\n- [Spotify Player](https://github.com/jpedroschmitz/spotify-player)\n\n## Upcoming methods :)\n\nIf you want to help in the project or see the upcoming methods check this [link](https://github.com/jpedroschmitz/simple-spotify-wrapper/issues/1).\n\n\n## Contributing\n\nPlease read [CONTRIBUTING.md](CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests.\n\n## Project License\n\nThis project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details.\n\n## Authors\n\n| ![João Pedro Schmitz](https://avatars2.githubusercontent.com/u/26466516?v=3\u0026s=150)|\n|:---------------------:|\n|  [João Pedro Schmitz](https://github.com/jpedroschmitz/)   |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpedroschmitz%2Fsimple-spotify-wrapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjpedroschmitz%2Fsimple-spotify-wrapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpedroschmitz%2Fsimple-spotify-wrapper/lists"}