# LeadOcean · Company count

Find companies, people and contact details with LeadOcean · Company count from Alexandria through one Spiral API key. Count companies that match a company search, for free, with breakdowns by industry, headcount, headquarters country, headquarters state, and NAICS. The same filters as companies/search, without a page. total is null when a filter could not be applied; totalWithheld names it. Nothing is charged. It runs in the background and returns structured JSON. Pay as you go, with no subscription.

- Provider: Alexandria
- Category: Lead Gen
- Runs: In the background
- Returns: json
- Tool id: `alexandria` / `leadocean/companies/count`
- Page: https://spiral.ai/tools/alexandria/leadocean/companies/count

## Pricing

$0.013 per call.

## Limits

- Longest queue wait: 1 hour
- Run deadline: 5 minutes
- Longest run, end to end: 225 minutes
- Largest inline input: 1 MB
- Largest input file: 2 GB
- Largest output: 5 GB

## Input

| Field | Kind | Allowed | Default | Description |
| --- | --- | --- | --- | --- |
| `q` | text |  | — | Free text over the company name and description. |
| `sic` | list |  | — | SIC codes. |
| `name` | list |  | — | Company name phrase. Wrap a value in [brackets] for an exact name. |
| `slim` | true or false |  | — | Accepted by the count route. The response is the totals, not company rows. |
| `naics` | list |  | — | NAICS codes. Any code the company carries. |
| `domain` | list |  | — | Company website domains, without a scheme or path. |
| `fields` | list |  | — | Accepted by the count route. The response is the totals, not company rows. |
| `hqCity` | list |  | — | Headquarters city keywords. |
| `hqState` | list |  | — | Headquarters state or region. A code such as TX also matches Texas. |
| `industry` | list |  | — | Company industry. Send LeadOcean's exact industry label. |
| `keywords` | list |  | — | Phrases in the company description, specialties, tags, and name, or an exact industry label. |
| `linkedin` | list |  | — | Company LinkedIn URLs. |
| `hqCountry` | list |  | — | Headquarters country. ISO 3166-1 alpha-2 codes. |
| `investors` | list |  | — | Lead investor name keywords. |
| `maxFounded` | number |  | — | Latest year founded. Records with no figure are left out. |
| `maxFunding` | number |  | — | Total funding raised, in USD, upper bound. |
| `maxRevenue` | number |  | — | Annual revenue ceiling, in USD. Records with no figure are left out. |
| `minFounded` | number |  | — | Earliest year founded. Records with no figure are left out. |
| `minFunding` | number |  | — | Total funding raised, in USD, lower bound. |
| `minRevenue` | number |  | — | Annual revenue floor, in USD. Records with no figure are left out. |
| `companyType` | list |  | — | Legal type of the company. |
| `excludeName` | list |  | — | Company name phrases to exclude. |
| `fundingType` | list |  | — | Type of the most recent funding round. |
| `hqContinent` | list |  | — | Continent of the headquarters. |
| `naicsSector` | list |  | — | Two-digit NAICS sector. |
| `maxEmployees` | number |  | — | Company headcount, upper bound. Records with no figure are left out. |
| `minEmployees` | number |  | — | Company headcount, lower bound. Records with no figure are left out. |
| `minFollowers` | number |  | — | Minimum company LinkedIn followers. 0 means no minimum. |
| `naicsPrimary` | list |  | — | The one NAICS code the company is filed under. |
| `technologies` | list |  | — | Technologies detected on the company website. |
| `employeeRange` | list |  | — | Headcount bracket, such as 51-200. |
| `hqSalesRegion` | list |  | — | Commercial region of the headquarters. |
| `excludeIndustry` | list |  | — | Industries to exclude. Send LeadOcean's exact industry label. |
| `excludeKeywords` | list |  | — | Company keywords, or exact industry labels, to exclude. |
| `maxLastFundingYear` | number |  | — | Funded no later than this year. |
| `minLastFundingYear` | number |  | — | Funded no earlier than this year. |
| `hasMailableContacts` | true or false |  | — | True keeps companies with a verified, catch_all_valid, or catch_all email on at least one person. |
| `technologyCategories` | list |  | — | What a detected technology is for. Send LeadOcean's category label. |

## Example

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "alexandria",
    "model": "leadocean/companies/count",
    "input": {
      "q": "<q>"
    }
  }'
```

Try it in the Playground: https://spiral.ai/start?provider=alexandria&model=leadocean%2Fcompanies%2Fcount

## Common questions

### LeadOcean · Company count

**How much does LeadOcean · Company count cost?**

$0.013 per call. You pay as you go from one Spiral balance, with no subscription, and a failed run is not charged.

**How do I use LeadOcean · Company count through an API?**

Send `POST /v1/runs` with `"provider": "alexandria"`, `"model": "leadocean/companies/count"` and the input fields on this page, using one Spiral API key. It runs in the background: poll the run, or name a webhook to be told when it finishes.

**Do I need an account with Alexandria to use LeadOcean · Company count?**

No. Spiral runs it on its own Alexandria account and charges your Spiral balance.

**Can my AI agent use LeadOcean · Company count?**

Yes. Agents find and run it through Spiral's MCP server, CLI or agent skill, with the same API key.

