# Search companies by industry, location and size with Bytemine's API

Bytemine's company search API returns company records from its company graph of 10M companies, filtered by industry, NAICS code, location, employee count, website and keywords. Each company returned costs $0.01, so `page_size` sets the most a call can cost. Send `POST https://agents.bytemine.ai/zcj/8xfsx03wo9si/functions/v1/api-gateway/b2b-search` with your filters, pay the 402 price quote and send the same request again; no account or API key is needed.

## At a glance

- **Endpoint:** `POST https://agents.bytemine.ai/zcj/8xfsx03wo9si/functions/v1/api-gateway/b2b-search`, JSON body
- **Filters:** `query`, `industry`, `naics_code`, `country`, `state`, `city`, `min_employees`, `max_employees`, `has_website`, `keywords`. No field is marked required.
- **Paging:** `page` (default 1) and `page_size` (default 20, max 100)
- **Price:** $0.01, billed per company returned, not per request or per page
- **Payment:** each request answers with a 402 price quote, paid from a wallet over x402 or MPP. No account or API key is needed.
- **Response:** one record per company, with the page served and the total number of matching companies
- **Full purchase flow:** [the buyer skill](https://agents.bytemine.ai/zcj/8xfsx03wo9si/SKILL.md)

## Choose the company search filters

The filters decide which companies make the list. Narrow the list before you page through it, because every record returned is a charge.

| To match | Field | Value |
| --- | --- | --- |
| Company name or a keyword | `query` | string |
| Industry name | `industry` | string, such as `"Information Technology and Services"` |
| NAICS classification | `naics_code` | string, such as `"5112"` |
| Words in the company description | `keywords` | string |
| Country | `country` | country code, such as `"US"`, `"GB"`, `"DE"` |
| US state | `state` | two-letter code, such as `"CA"` |
| City | `city` | string |
| Employee count range | `min_employees`, `max_employees` | integers |
| Only companies with a website | `has_website` | `true` |

## Search companies and page through results

1. Send the search with your filters and a `page_size`:

   ```bash
   curl -i -X POST https://agents.bytemine.ai/zcj/8xfsx03wo9si/functions/v1/api-gateway/b2b-search \
     -H 'Content-Type: application/json' \
     -d '{"industry": "Software", "country": "US", "min_employees": 200, "max_employees": 1000, "has_website": true, "page_size": 10, "page": 1}'
   ```

   The storefront answers `402 Payment Required`, with the amount in `payment.amountUsd`.

2. Pay the challenge with an x402 or MPP client and send the identical request with the proof attached. The proof pays for this request only; a changed body needs a new 402. [The buyer skill](https://agents.bytemine.ai/zcj/8xfsx03wo9si/SKILL.md) covers each rail.

3. Read the companies from the `200` response. Each record carries the company's `name`, `website`, `description`, `linkedin_url`, `employee_count`, `founded_year`, `country_name`, `industries`, `naics_codes` and `specialties`, with further firmographic and location fields. The response lists the records under `companies`, with `page`, `page_size` and `total_companies` at the top level. A search for software companies of 200 to 1,000 employees in the US, with `page_size` set to 3, returned three company records and paid $0.03.

4. Get the next page by sending the same filters with `page` raised by one:

   ```json
   {"industry": "Software", "country": "US", "min_employees": 200, "max_employees": 1000, "has_website": true, "page_size": 10, "page": 2}
   ```

   Each page is its own paid call with its own 402.

## Control what a search costs

A call returns at most `page_size` companies, so it bills at most `page_size` records.

| `page_size` | Most one call bills |
| --- | --- |
| 1 | $0.01 |
| 20, the default | $0.20 |
| 100, the maximum | $1 |
| 500 companies over five pages of 100 | $5 in total |

The 402 can quote a ceiling, the most the call can cost, and only the companies actually returned are charged. A paid response's `zc-billing` header shows what was authorized and what was charged.

Card pays a pay-as-you-go call only when it costs $0.50 or more. For smaller pages, pay over x402 or MPP, or buy Credits and let searches draw down the balance. Credits start at $0.50, and at $0.50 by card; buying them needs an agent credential from [auth.md](https://agents.bytemine.ai/zcj/8xfsx03wo9si/auth.md), and [the buyer skill](https://agents.bytemine.ai/zcj/8xfsx03wo9si/SKILL.md) has the steps.

## Limits

- Company records only. The request takes company filters and no person filters.
- One page per call, at most 100 companies.
- A paid request that times out may still have delivered. Check before paying again.

## Other company data services

| Need | Service | Price |
| --- | --- | --- |
| One company's full profile by name, domain, LinkedIn URL or id | [Company Enrichment](https://agents.bytemine.ai/zcj/8xfsx03wo9si/services/company-enrichment) | $0.01, only on a successful match |
| Companies similar to up to 10 seed domains | [Company Lookalikes](https://agents.bytemine.ai/zcj/8xfsx03wo9si/services/company-lookalikes) | $0.50 |
| A target profile from a plain-language description | [ICP Builder](https://agents.bytemine.ai/zcj/8xfsx03wo9si/services/icp-builder) | $0.50 |
| The technology a company runs, or companies running a technology | [Technographics](https://agents.bytemine.ai/zcj/8xfsx03wo9si/services/technographics) | $0.01, $0.01 |
| Content read live from a company's own site | [Live Company Intelligence](https://agents.bytemine.ai/zcj/8xfsx03wo9si/services/live-company-intelligence) | $0.01; structured extraction $0.02 |
| An intent score per company | [Buying Intent Score](https://agents.bytemine.ai/zcj/8xfsx03wo9si/services/buying-intent) | $0.01 |
| Funding, acquisition and hiring records | [Signals](https://agents.bytemine.ai/zcj/8xfsx03wo9si/services/signals) | $0.01, $0.01, $0.01 |

## Errors

| Response | Meaning | Action |
| --- | --- | --- |
| `402` with no `reason` | The price quote for this call | Pay it and retry the same request, or stop |
| `400 invalid_request` | The JSON body is malformed | Fix the body and send again |
| `settlement_failed` | The payment did not settle; `settlementReason` says why | Fix the wallet, then send a fresh request for a new 402 |
| `409 payment_request_mismatch` | A payment was reused for a different request | Pay the 402 for the new body instead |
| `payment_consumed` | The payment was already settled | Check whether the earlier retry delivered before paying again |

After payment, the storefront passes through the API's own status codes and errors.

## Frequently asked questions

### Does Bytemine's company search API need an account or API key?

No. A search is paid per call: the storefront answers with a 402 price quote, you pay it over x402 or MPP and resend the request. An agent identity is needed only to buy Credits.

### How much does a company search cost?

$0.01 for each company the call returns. A call bills at most `page_size` companies, so a page of 20 costs at most $0.20 and a page of 100 at most $1. The 402 states the amount before you pay, and the `zc-billing` header reports what was charged.

### Can I find companies by NAICS code and employee count?

Yes. Set `naics_code` to a code such as `5112`, and `min_employees` and `max_employees` to the headcount range. They can be sent in one request with `industry`, the location fields and `keywords`.

### Can I pay for a company search by card?

Card pays a single pay-as-you-go call only when it costs $0.50 or more. For smaller pages, pay over x402 or MPP, or buy Credits, which start at $0.50 by card, and let each search draw down the balance.

### How do I get every page of a company list?

Send the same filters with `page` raised by one for each page. Each page is a separate paid call, billed for the companies it returns.

## Keep reading

- [Buyer skill](https://agents.bytemine.ai/zcj/8xfsx03wo9si/SKILL.md): the full purchase flow
- [How to pay](https://agents.bytemine.ai/zcj/8xfsx03wo9si/payment.md): rails, ceiling pricing and Credits
- [Company Search service](https://agents.bytemine.ai/zcj/8xfsx03wo9si/services/company-search): prices by plan
- [Company Search API reference](https://agents.bytemine.ai/zcj/8xfsx03wo9si/services/company-search/openapi.json): request and response schema
- [Error reference](https://agents.bytemine.ai/zcj/8xfsx03wo9si/errors.md): every error code

---

Updated 2026-10-16. All Bytemine guides: https://agents.bytemine.ai/guides.md. Storefront: https://agents.bytemine.ai/zcj/8xfsx03wo9si/llms.txt.
