Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rajikaimal/spotifyr
Spotify data fetcher
https://github.com/rajikaimal/spotifyr
javascript nodejs spotify
Last synced: 10 days ago
JSON representation
Spotify data fetcher
- Host: GitHub
- URL: https://github.com/rajikaimal/spotifyr
- Owner: rajikaimal
- License: mit
- Created: 2016-08-14T18:20:45.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-06-10T11:37:56.000Z (over 6 years ago)
- Last Synced: 2024-10-05T17:41:17.757Z (about 1 month ago)
- Topics: javascript, nodejs, spotify
- Language: JavaScript
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# spotifyr [![Build Status](https://travis-ci.org/rajikaimal/spotifyr.svg?branch=master)](https://travis-ci.org/rajikaimal/spotifyr)
Retrieve data from spotify public REST API for a search item
> works without authentication
## Install
```
npm install --save spotifyr
```## Usage
```js
const spotifyr = require('spotifyr');spotifyr('avicii', 'artist', function(error, response) {
if(error) {
console.log(error);
} else {
console.log(response);
}
});
```## API
### search(query, type, callback)
Returns json data for requested query
#### query
Type: `string`
Query for requesting data
#### type
Type: `string`
Valid types : album, artist, playlist, track
#### callback
Type: `function`
Takes two arguments, error and response respectively
## License
MIT © [Rajika Imal](https://rajikaimal.github.io)