[ DEPRECATED ] Don't use it anymore..
The splashbase.co api's policies changed. This package is now obsolete.
Module based on splashbase.co's API. It uses async and node-fetch.
Quickly search over thousands free high quality images from travelcoffeebook, startupstockphotos, littlevisuals, gratisography, getrefe, jaymantri, superfamous, mazwai, unsplash, snapographic, moveast, snapwiresnaps, newoldstock, splitshire, camarama, mmt, lifeofpix, crowthestone, skitterphoto..
Don't mind of any account creation, api url, api token, api authorization. Install the package and let's search !
$ npm install splashbase-api-interface
var imageBank = require('splashbase-api-interface');
imageBank.search('sky', (error, results) => {
console.log(results);
});
In below cases callback function will be called with 2 parameters :
- error (string) : a short message when error occurs else null
- results (array) : url's images (so can be empty)
Here instead of an array the second parameter sent to your callback will be true which mean that the API is available.
imageBank.check(callback);
imageBank.search(keyword, callback);
imageBank.last(callback);
The API's limit is 20, so a size parameter of 50 will be caped at 20.
imageBank.random(size, callback);
- Unicity of random images
- Return X last images instead of 10 lasts