@ksolo/spotify-search
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

spotfiy-wrapper.js

Node wrapper for spotify for searching artists and tracks

How to get started

//import in api
const spotify = require("./spotify-wrapper");

//Add your client id and secret key - you can get it from https://developer.spotify.com/dashboard/
const clientID = "****";
const secretKey = "****";

//Set credentials - spotify api is a singleton so if you get new credentials you can reset it
spotify.setCredentials(clientID, secretKey);

//Search from any artist, song or album
spotify
  .search("drake")
  .then((res) => console.log(res))
  .catch((e) => console.log(e));

Package Sidebar

Install

npm i @ksolo/spotify-search

Weekly Downloads

17

Version

1.0.0

License

MIT

Unpacked Size

15.3 kB

Total Files

16

Last publish

Collaborators

  • ksolo