README
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...
});