Wrapper around Cobalt Intelligence services, such as the Secretary of State API.
npm install cobalt-int-sdknpm install --save cobalt-int-sdk
const sosApi = new SosApi(process.env.cobaltIntApiKey);
const details = await sosApi.getBusinessDetails(businessName, state);
const liveData = true;
const details = await sosApi.getBusinessDetails(businessName, state, liveData);
`
$3
This is allows you to search by business name and state.
`
const sosApi = new SosApi(process.env.cobaltIntApiKey);
const details = await sosApi.getBusinessDetails('Pizza McPizza LLC', 'missouri');
console.log('details', details);
`
$3
This is allows you to search by the secretary of state id and state.
`
const sosApi = new SosApi(process.env.cobaltIntApiKey);
const details = await sosApi.getBusinessDetailsBySosId('723472347', 'idaho');
console.log('details', details);
`
$3
This function allows you to just get a list of businesses with that searchQuery.
It can accept a liveData parameter.
`
const sosApi = new SosApi(process.env.cobaltIntApiKey);
const results = await sosApi.getListBySearchQuery('pizza', 'wy');
console.log('Results', results);
`
$3
This function allows you to send a business name and search all available states for instances of this business.
`
const sosApi = new SosApi(process.env.cobaltIntApiKey);
const results = await sosApi.searchAllStatesByBusinessName('pizza hut llc');
console.log('Results', results);
`
$3
Tested on Node v12.4.0 and NPM v6.9.0.
$3
npm install --save cobalt-int-sdk`