got extension for Iconfinder API
$ npm install --save if-got
const ifGot = require('if-got');
ifGot('icons/search', {query: {query: 'app'}}).then(res => {
console.log(res.body.total_count);
});Or:
const ifGot = require('if-got');
ifGot('https://api.iconfinder.com/v2/icons/search', {query: {query: 'app'}}).then(res => {
console.log(res.body.total_count);
});Supporting APIs same as got even stream API, but GET method is only supported now.
MIT © Jimmy Moon