0.0.3 • Published 8 years ago

pitchfork-api-search v0.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
8 years ago

Pitchfork API Search

NodeJS client to search Pitchfork database for artists and reviews

Be aware that Pitchfork has no official API and this module is based on the endpoints available through reverse engineering of their new React website. It's not guaranteed to stay available for free or to be stable

To use Pitchfork API Search, first include it in your NodeJS app:

//ES5
var P4KSearch = require('pitchfork-search-api');

//ES6
import P4KSearch from 'pitchfork-search-api';

Note: if you want to use ES6 with NodeJS, be sure to run it with Babel CLI babel-node

The exported function accept two arguments, an options object and a callback

//ES5
P4KSearch({
  query: 'vampire weekend' // your search keyword
}, function(results) {
  // do something with results...
  console.log(results);
});

//ES6
P4KSearch({
  query: 'vampire weekend'
}, (results) => {
  // do something with results...
});
0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago

0.0.0

8 years ago