{"id":25177535,"url":"https://github.com/franciscoknebel/spotify-wrapper-api","last_synced_at":"2025-04-04T02:40:45.758Z","repository":{"id":57367860,"uuid":"100136479","full_name":"FranciscoKnebel/spotify-wrapper-api","owner":"FranciscoKnebel","description":"A Spotify Web API Wrapper, built in JS.","archived":false,"fork":false,"pushed_at":"2017-08-18T05:19:20.000Z","size":151,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-03T09:36:05.929Z","etag":null,"topics":["spotify","spotify-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/FranciscoKnebel.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":"2017-08-12T20:34:09.000Z","updated_at":"2017-08-19T04:35:00.000Z","dependencies_parsed_at":"2022-08-23T20:10:58.894Z","dependency_job_id":null,"html_url":"https://github.com/FranciscoKnebel/spotify-wrapper-api","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FranciscoKnebel%2Fspotify-wrapper-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FranciscoKnebel%2Fspotify-wrapper-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FranciscoKnebel%2Fspotify-wrapper-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FranciscoKnebel%2Fspotify-wrapper-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FranciscoKnebel","download_url":"https://codeload.github.com/FranciscoKnebel/spotify-wrapper-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247112739,"owners_count":20885605,"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":["spotify","spotify-wrapper-api"],"created_at":"2025-02-09T14:25:47.506Z","updated_at":"2025-04-04T02:40:45.741Z","avatar_url":"https://github.com/FranciscoKnebel.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spotify Wrapper API\n\n[![Build Status](https://travis-ci.org/FranciscoKnebel/spotify-wrapper-api.svg?branch=master)](https://travis-ci.org/FranciscoKnebel/spotify-wrapper-api) [![Coverage Status](https://coveralls.io/repos/github/FranciscoKnebel/spotify-wrapper-api/badge.svg?branch=master)](https://coveralls.io/github/FranciscoKnebel/spotify-wrapper-api?branch=master)\n\nA wrapper to work with the [Spotify Web API](https://developer.spotify.com/web-api/).\n\n## Browser Support\n\nThis library relies on [Fetch API](https://fetch.spec.whatwg.org/). 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--- | --- | --- | --- | --- |\n39+ ✔ | 42+ ✔ | 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.\nFor environments that don't support fetch, you'll need to provide a [polyfill](https://github.com/github/fetch) for browser or [polyfill](https://github.com/bitinn/node-fetch) for Node.\n\n## Installation\n\n```sh\n$ npm install spotify-wrapper-api --save\n```\n\n## How to use\n\n### ES6\n\n```js\n// to import a specific method\nimport SpotifyWrapper from 'spotify-wrapper-api';\n\nconst spotify = new SpotifyWrapper({\n  token: 'YOUR_TOKEN_HERE'\n});\n\n// using  method\nspotify.search.artists('The Beatles');\n```\n\n### CommonJS\n\n```js\nconst spotifyWrapper = require('spotify-wrapper-api');\n\nconst spotify = new SpotifyWrapper({\n  token: 'YOUR_TOKEN_HERE'\n});\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 scope as `SpotifyWrapper`. Example usage as follows:\n\n```js\n\nconst spotify = new SpotifyWrapper({\n  token: 'YOUR_TOKEN_HERE'\n});\n\nconst albums = spotify.search.albums('Choosen Artist');\n```\n\n## Methods\n\n\u003e Here are listed all methods that the library provides.\n\n- Search\n\t- albums\n\t- artists\n\t- tracks\n\t- playlists\n- Album\n\t- getAlbum\n\t- getAlbums\n\t- getTracks\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('The Beatles')\n  .then(data =\u003e {\n    // do what you want with the data\n  })\n```\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\nspotify.search.artists('The Beatles')\n  .then(data =\u003e {\n    // do what you want with the data\n  })\n```\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('Drive')\n  .then(data =\u003e {\n    // do what you want with the data\n  })\n```\n\n### search.playlists(query)\n\n\u003e Search for informations about Playlist 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.playlists('Happy')\n  .then(data =\u003e {\n    // do what you want with the data\n  })\n```\n\n### album.getAlbum(id)\n\n\u003e Search for informations about a specific Album with provided id. Test in [Spotify Web Console](https://developer.spotify.com/web-api/console/get-album/).\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 with the data\n  })\n```\n\n### album.getAlbums(ids)\n\n\u003e Search for informations about some Albums with all id's. Test in [Spotify Web Console](https://developer.spotify.com/web-api/console/get-several-albums/).\n\n**Arguments**\n\n| Argument | Type    | Options           |\n|----------|---------|-------------------|\n|`ids`   |*Array of strings* | ['id1', 'id2']|\n\n**Example**\n\n```js\nspotify.album.getAlbums(['4aawyAB9vmqN3uQ7FjRGTy', '1A2GTWGtFfWp7KSQTwWOyo'])\n  .then(data =\u003e {\n    // do what you want with the data\n  })\n```\n\n### album.getTracks(id)\n\n\u003e Search for all tracks in a specific Album with provided id. Test in [Spotify Web Console](https://developer.spotify.com/web-api/console/get-album-tracks/).\n\n**Arguments**\n\n| Argument | Type    | Options           |\n|----------|---------|-------------------|\n|`id`   |*string* | 'Specific id'|\n\n**Example**\n\n```js\nspotify.album.getTracks('4aawyAB9vmqN3uQ7FjRGTy')\n  .then(data =\u003e {\n    // do what you want with the data\n  })\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 to us.\n\n## Versioning\n\nWe use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/FranciscoKnebel/spotify-wrapper-api/tags).\n\n## Authors\n\n| ![Francisco Knebel](https://gravatar.com/avatar/441e3faab920a73e7ca59f65fdaf0b82?s=150)|\n|:---------------------:|\n|  [Francisco Knebel](https://github.com/FranciscoKnebel/)   |\n\nSee also the list of [contributors](https://github.com/FranciscoKnebel/spotify-wrapper-api/contributors) who participated in this project.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffranciscoknebel%2Fspotify-wrapper-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffranciscoknebel%2Fspotify-wrapper-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffranciscoknebel%2Fspotify-wrapper-api/lists"}