node-firmapi
v0.1.0
Published
FirmAPI library to use in your NodeJS projects
Downloads
5
Maintainers
Readme
FirmAPI NodeJS Library
This is an unofficial FirmAPI library for NodeJS.
Install
To install the most recent release from npm, run:
npm install node-firmapi
Usage
Get an API key
You need an API key to make it work. Go get your API key from FirmAPI if you don't have one.
Sandbox mode
To try out the API, you should use the library in sandbox mode. You can do that by adding true
as a second argument when initializing the library.
var firmapi = new FirmAPI('your api key', true);
Search for companies
You can search for a company by providing its name.
var FirmAPI = require('node-firmapi');
var firmapi = new FirmAPI('your api key');
firmapi.search('criteo', function(err, data, page) {
// Check if err == null and return data
});
Or you can search for all companies in a specific location.
var FirmAPI = require('node-firmapi');
var firmapi = new FirmAPI('your api key');
firmapi.search({postal_code: 75009}, function(err, data, page) {
// Check if err == null and return data
});
More informations on this in the documentation.
Get a company
You can get more informations about a company when you have its SIREN.
var FirmAPI = require('node-firmapi');
var firmapi = new FirmAPI('your api key');
firmapi.get(480470152, function(err, data) {
// Check if err == null and return data
});