# Company enrichment by domain, LinkedIn or ABN with Firmable's API

Firmable's company enrichment API returns a company profile from one identifier, a domain, a LinkedIn page, a website, an Australian Business Number (ABN) or a Firmable id, covering headcount, size band, headquarters, industries, revenue band and the company's contact channels. Each lookup costs $0.25, drawn from prepaid Credits. Send `GET https://pay.firmable.com/zcj/ji068lznfphv/company?fqdn=<domain>` with your agent credential as a bearer token.

## At a glance

- **Endpoint:** `GET https://pay.firmable.com/zcj/ji068lznfphv/company`, one company per request
- **Identifier:** one of `fqdn`, `ln_slug`, `ln_url`, `website`, `abn` or `id`. `country` selects the market and defaults to `AU`.
- **Price:** $0.25, drawn from Credits
- **Payment:** Credits only, bought by card from $0.50. Requests are never paid individually.
- **Credential:** `Authorization: Bearer <access token>` on every call. The bearer credential is the agent identity the storefront issues. Registration is free at [auth.md](https://pay.firmable.com/zcj/ji068lznfphv/auth.md).
- **Response:** a JSON company profile, plus a `zc-billing` header with the charge and the remaining balance
- **Limits:** each call is one request. A `429` means wait the seconds in `retry-after`.
- **Full purchase flow:** [the buyer skill](https://pay.firmable.com/zcj/ji068lznfphv/SKILL.md)

## Before the first lookup

- **An agent credential.** Registration can be anonymous. It takes one call and needs no email. [auth.md](https://pay.firmable.com/zcj/ji068lznfphv/auth.md) registers the credential and exchanges it for a short-lived access token. If you already hold a credential from this network, reuse it.
- **Credits.** A prepaid balance bought by card, from $0.50 (card minimum $0.50). [The buyer skill](https://pay.firmable.com/zcj/ji068lznfphv/SKILL.md) and [Card payment](https://pay.firmable.com/zcj/ji068lznfphv/payment/card.md) cover buying it.
- **A plan on that credential.** A lookup from a credential that holds no Credits answers `403 plan_required`, and the response names the plan to buy.

## Look up a company by domain

1. Check that your credential holds Credits:

   ```bash
   curl -s https://pay.firmable.com/zcj/ji068lznfphv/agent/entitlements -H "Authorization: Bearer $ACCESS_TOKEN"
   ```

   The response lists your active plans, each with its `remainingCreditUsd`. If Credits is not listed, buy it first.

2. Send the domain alone, with no scheme or path:

   ```bash
   curl -s -D - "https://pay.firmable.com/zcj/ji068lznfphv/company?fqdn=atlassian.com" \
     -H "Authorization: Bearer $ACCESS_TOKEN"
   ```

   The storefront answers `200` with the profile as JSON. This example lookup drew $0.25 from Credits. The body has this shape, shown here with placeholders:

   ```text
   {"id": "<firmable-id>", "name": "<company name>", "fqdn": "example.com", "website": "https://www.example.com",
    "linkedin": "<handle>", "employee_count": <integer>, "company_size": "<band>", "company_type": "<type>",
    "revenue": "<band>", "year_founded": <year>, "hq_country": "<country>", "hq_location": "<place>",
    "locations": ["<place>"], "industries": ["<industry>"], "keywords": ["<keyword>"], "description": "<text>",
    "phones": ["<phone>"], "emails": ["<email>"], "social_media": {"linkedin": "<handle>"},
    "industry_codes": {"abn": "<ABN>", "acn": "<ACN>", "anzsic": "<code>"}, ...}
   ```

3. Read the `zc-billing` response header:

   ```
   zc-billing: {"status":"settled","fundingSource":"credit","chargedUsd":"<debited>","remainingCreditUsd":"<balance>"}
   ```

   `chargedUsd` is what this call took from Credits, and `remainingCreditUsd` is what remains. A response that carries no `zc-billing` header billed nothing.

4. Store the profile's `id`. Use it as `id` for a repeat lookup, or as `companyId` for people search.

## Choose the identifier

| You have | Parameter | Example |
| --- | --- | --- |
| A domain | `fqdn` | `fqdn=example.com` |
| A LinkedIn company slug | `ln_slug` | `ln_slug=example` |
| A LinkedIn company URL | `ln_url` | `ln_url=https%3A%2F%2Fwww.linkedin.com%2Fcompany%2Fexample%2F` |
| A website URL | `website` | `website=https%3A%2F%2Fwww.example.com` |
| An ABN | `abn` | `abn=<ABN>` |
| A Firmable id | `id` | `id=<firmable-id>` |

URL-encode each value once.

## Choose the market

`country` sets the market the profile is held for. It decides what `employee_count` counts, because that field gives headcount in the requested market. It also decides which local identifiers appear in `industry_codes`. Leave `country` out for Australia. A code outside this table returns `400`.

| Market | `country` |
| --- | --- |
| Australia (default) | `AU` |
| New Zealand | `NZ` |
| Singapore | `SG` |
| Malaysia | `MY` |
| Indonesia | `ID` |
| Philippines | `PH` |
| Hong Kong | `HK` |
| Japan | `JP` |
| Vietnam | `VN` |
| South Korea | `KR` |
| Thailand | `TH` |
| United States | `US` |
| Canada | `CA` |

## Read the profile

The response is a JSON object with the fields below. A field with no data comes back as `null`.

| Group | Fields |
| --- | --- |
| Identity | `id` (Firmable id), `name`, `fqdn`, `website`, `linkedin` (handle), `tagline`, `abn_operation_status` |
| Size and type | `employee_count`, `company_size` (band), `company_type`, `revenue` (band), `year_founded` |
| Location | `hq_country`, `hq_location`, `locations` (list), `states` |
| Business | `industries` (list), `industry_codes`, `keywords` (list), `description`, `org_registers` |
| Contact | `phones` (list), `emails` (list), `social_media` (one handle per network) |

`industry_codes` always carries the global codes `sic`, `duns`, `naics` and `anzsic` where Firmable holds them. It adds local identifiers for the requested market: `abn` and `acn` for `AU`, `nzbn` for `NZ`, `uen` for `SG`. When `nextGen` is present, it adds web traffic figures, per-network social account statistics and review ratings.

## Limits

- Each call takes one identifier and returns one company profile.
- Phones and emails in the profile belong to the company. People come from people search and the person profile.
- Payment is by card only, for Credits. Every lookup draws on Credits.
- An anonymous credential that is never claimed lapses within days, and the Credits on it lapse with it. To keep them, claim the credential to a verified email ([auth.md](https://pay.firmable.com/zcj/ji068lznfphv/auth.md)).
- Access tokens last minutes. When one expires, exchange your stored assertion for a new token.

## Errors

| Response | Meaning | Action |
| --- | --- | --- |
| `400` | Unsupported `country` code or another bad request | Use a code from the market table |
| `401 bearer_required` | The call carried no agent credential | Register at [auth.md](https://pay.firmable.com/zcj/ji068lznfphv/auth.md), then retry with the bearer |
| `401 invalid_token` | The token did not verify, for example `token_expired` | Exchange your stored assertion for a fresh token, then retry |
| `403 plan_required` | No plan the credential holds covers the call. `plans` lists the one that does, with its `purchase.url`. | Buy Credits, then retry |
| `usage_exhausted` | Credits are used up | Top up with `POST https://pay.firmable.com/zcj/ji068lznfphv/extend` and `{"amountUsd": "<amount>"}` |
| `429` | Too many requests | Wait the seconds in `retry-after`, then retry |

## Frequently asked questions

### Can I look up an Australian company by ABN?

Yes. Send `abn` in place of `fqdn`, as `GET https://pay.firmable.com/zcj/ji068lznfphv/company?abn=<ABN>`, with the same bearer. The price is the same, $0.25. In the `AU` market the profile's `industry_codes` carries `abn` and `acn`, and `abn_operation_status` gives the ABN's status.

### How do I find the people at a company?

Pass the profile's `id` as `companyId` to `POST https://pay.firmable.com/zcj/ji068lznfphv/people/search`. That endpoint filters by position, seniority and department within one `selectedCountry` market, at $0.05 per request. Each result carries a person id for `GET https://pay.firmable.com/zcj/ji068lznfphv/people`, the person profile, at $0.25 per call. All three draw on the same Credits.

### How much does a company lookup cost?

$0.25 per lookup, so ten lookups cost $2.50. Credits start at $0.50. Each call is deducted from the balance, and any amount you do not use stays as credit. Live prices are in [the catalog](https://pay.firmable.com/zcj/ji068lznfphv/manifest.json).

### Does the API return company data outside Australia?

Set `country` to a code from the market table, such as `SG` or `US`, to get the profile Firmable holds for that market. The request, the price and the response fields stay the same. Only the market-specific values change, such as the headcount in `employee_count` and the local identifiers in `industry_codes`.

### Do I need a Firmable API key?

No. The storefront accepts your agent credential as a bearer and needs no upstream API key. Credits are tied to that credential, so use the same credential on every lookup.

## Keep reading

- [Buyer skill](https://pay.firmable.com/zcj/ji068lznfphv/SKILL.md): the full purchase flow
- [Company enrichment](https://pay.firmable.com/zcj/ji068lznfphv/services/company-enrichment): price and plan for this service
- [Identity](https://pay.firmable.com/zcj/ji068lznfphv/auth.md): register, claim and exchange the credential
- [Card payment](https://pay.firmable.com/zcj/ji068lznfphv/payment/card.md): settling the Credits purchase
- [Error reference](https://pay.firmable.com/zcj/ji068lznfphv/errors.md): every error code and the action to take
- [API reference](https://pay.firmable.com/zcj/ji068lznfphv/services/company-enrichment/openapi.json): the `/company` schema

---

Updated 2026-11-20. All Firmable guides: https://pay.firmable.com/guides.md. Storefront: https://pay.firmable.com/zcj/ji068lznfphv/llms.txt.
