This service will do a companies house lookup for a registered UK company
npm install companies-house-api-es6npm install --save companies-house-api-es6Then you will need to include the library
~~~js
const CHA = require('companies-house-api-es6');
const cha = new CHA('YOUR_API_KEY');
~~~
Here is an example
~~~js
cha.searchForCompanyById(companyID).then(result => {
console.log(result);
}).catch(err => {
console.log(err);
});
~~~
For a full list of response formats please visit Companies House BETA API Docs
~~~js
searchForCompanyById(id)
//These methods can take an optional second argument which
//is an integer limit of how many results you want back
searchForCompanyByGenericTerm(query)
searchAll(query)
searchForOfficer(query)
searchForDisqualifiedOfficer(query)
~~~
~~~js
returnProfileBy(companyNumber)
~~~