Look up a FIRMS code
const url = 'https://api.firmsapi.com/v1/firms/E430';const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.firmsapi.com/v1/firms/E430 \ --header 'x-api-key: <x-api-key>'Returns the facility, including deleted codes and flagged placeholders, plus the other codes registered at the same address.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”4-character FIRMS code.
4-character FIRMS code.
Responses
Section titled “ Responses ”OK
object
object
4-character FIRMS code.
Deleted codes stay in the data so you can tell why a filing failed.
object
True for “DO NOT USE” placeholders and CBP test records.
Other FIRMS codes at the same physical address.
object
object
Example
{ "data": { "code": "E430", "name": "MAHER TERMINAL", "status": "active", "type": { "code": "03", "label": "Pier or terminal" }, "port": { "code": "4601", "name": "Newark/Elizabeth" }, "same_address": [ { "status": "active", "type": { "code": "03", "label": "Pier or terminal" } } ] }, "meta": { "mode": "live" }}Invalid request (not counted).
object
object
Stable, machine-readable error code.
docs always; billing, buy_pack, upgrade when they help.
object
Example
{ "error": { "code": "quota_exceeded" }, "meta": { "mode": "live" }}Missing, invalid or revoked API key.
object
object
Stable, machine-readable error code.
docs always; billing, buy_pack, upgrade when they help.
object
Example
{ "error": { "code": "quota_exceeded" }, "meta": { "mode": "live" }}Not found (counted: it is a lookup result).
object
object
Stable, machine-readable error code.
docs always; billing, buy_pack, upgrade when they help.
object
Example
{ "error": { "code": "quota_exceeded" }, "meta": { "mode": "live" }}Monthly quota, call packs and overage cap used up (quota_exceeded).
object
object
Stable, machine-readable error code.
docs always; billing, buy_pack, upgrade when they help.
object
Example
{ "error": { "code": "quota_exceeded" }, "meta": { "mode": "live" }}