{"id":15170703,"url":"https://github.com/lflimeira/sdk-spotify","last_synced_at":"2026-01-23T05:36:56.939Z","repository":{"id":99276868,"uuid":"109536222","full_name":"lflimeira/sdk-spotify","owner":"lflimeira","description":"A project created with the focus to study TDD in JavaScript, following the course \"JS com TDD na Prática\".","archived":false,"fork":false,"pushed_at":"2018-07-15T18:15:02.000Z","size":279,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-24T20:13:35.386Z","etag":null,"topics":["automated-testing","chai","husky","javascript","js","mochajs","nyc","tdd"],"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/lflimeira.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-11-04T22:56:45.000Z","updated_at":"2018-03-31T23:48:44.000Z","dependencies_parsed_at":"2023-04-15T15:31:05.715Z","dependency_job_id":null,"html_url":"https://github.com/lflimeira/sdk-spotify","commit_stats":null,"previous_names":["lflimeira/js-tdd-studies"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/lflimeira/sdk-spotify","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lflimeira%2Fsdk-spotify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lflimeira%2Fsdk-spotify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lflimeira%2Fsdk-spotify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lflimeira%2Fsdk-spotify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lflimeira","download_url":"https://codeload.github.com/lflimeira/sdk-spotify/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lflimeira%2Fsdk-spotify/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28681009,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T04:33:33.518Z","status":"ssl_error","status_checked_at":"2026-01-23T04:33:30.433Z","response_time":59,"last_error":"SSL_read: 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":["automated-testing","chai","husky","javascript","js","mochajs","nyc","tdd"],"created_at":"2024-09-27T08:21:43.874Z","updated_at":"2026-01-23T05:36:56.914Z","avatar_url":"https://github.com/lflimeira.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/lflimeira/js-tdd-studies.svg?branch=master)](https://travis-ci.org/lflimeira/js-tdd-studies) [![Coverage Status](https://coveralls.io/repos/github/lflimeira/js-tdd-studies/badge.svg?branch=master)](https://coveralls.io/github/lflimeira/js-tdd-studies?branch=master)\n\n# Spotify SDK\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/). 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--- | --- | --- | --- | --- |\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. 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## Installation\n\n```sh\n$ npm install sdk-spotify --save\n```\n\n## How to use\n\n### ES6\n\n```js\n// to import a specific method\nimport { method } from 'spotify-wrapper';\n\n// to import everything\nimport * as spotifyWrapper from 'spotify-wrapper';\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`. Follow an example:\n\n```js\nconst albums = spotifyWrapper.searchAlbums('Choosen Artist');\n```\n\n## Methods\n\n\u003e Follow the methods that the library provides.\n\n### search(query, types)\n\n\u003e Search for informations about artists, albums, tracks or playlists. Test in [Spotify Web Console](https://developer.spotify.com/web-api/console/get-search-item/).\n\n**Arguments**\n\n| Argument | Type              | Options                                 |\n|----------|-------------------|-----------------------------------------|\n|`query`   |*string*           | 'Any search query'                      |\n|`type`    |*Array of strings* | ['artist', 'album', 'track', 'playlist']|\n\n**Example**\n\n```js\nsearch('Incubus', ['artist', 'album'])\n  .then(data =\u003e {\n    // do what you want with the data\n  })\n```\n\n### searchAlbums(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\nsearchAlbums('Incubus')\n  .then(data =\u003e {\n    // do what you want with the data\n  })\n```\n\n### searchArtists(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\nsearchArtists('Incubus')\n  .then(data =\u003e {\n    // do what you want with the data\n  })\n```\n\n### searchTracks(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\nsearchTracks('Drive')\n  .then(data =\u003e {\n    // do what you want with the data\n  })\n```\n\n### searchPlaylists(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\nsearchPlaylists('Happy Day')\n  .then(data =\u003e {\n    // do what you want with the data\n  })\n```\n\n### 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\ngetAlbum('4aawyAB9vmqN3uQ7FjRGTy')\n  .then(data =\u003e {\n    // do what you want with the data\n  })\n```\n\n### 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\ngetAlbum(['4aawyAB9vmqN3uQ7FjRGTy', '1A2GTWGtFfWp7KSQTwWOyo'])\n  .then(data =\u003e {\n    // do what you want with the data\n  })\n```\n\n### getAlbumTracks(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\ngetAlbum('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/your/project/tags).\n\n## Authors\n\n| ![Felipe Limeira](https://avatars0.githubusercontent.com/u/7549765?s=200\u0026v=4)|\n|:---------------------:|\n|  [Felipe Limeira](https://github.com/lflimeira/)   |\n\n\u003c!-- See also the list of [contributors](https://github.com/willianjusten/spotify-wrapper/contributors) who participated in this project. --\u003e\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%2Flflimeira%2Fsdk-spotify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flflimeira%2Fsdk-spotify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flflimeira%2Fsdk-spotify/lists"}