Skip to main content
This guide is for engineers whose code, scripts, or AI agents call the Crustdata API and are moving some or all of those calls to the CompanyEnrich V2 API. It maps each Crustdata endpoint, lists the behavior that changes in your code, and shows how to check the result on records you already have before you switch traffic.
Crustdata behavior on these pages was checked against Crustdata’s public documentation for API version 2025-11-01 on November 23, 2026. The legacy /screener and /data_lab endpoints are not covered. CompanyEnrich behavior comes from the V2 API reference. The full mapping is also available as JSON at /migrations/crustdata.json.

Field mapping

Every Crustdata company and person field, with its CompanyEnrich counterpart.

Search filters

Translate company and person search conditions.

With a coding agent

Instructions a coding agent follows to migrate your codebase.

Check the fit first

Switch company enrichment in five minutes

This is the shortest path: one enrichment call by domain, moved to the V2 API with the Python SDK.
1

Get an API key

Create a key at app.companyenrich.com/access-keys and export it as COMPANYENRICH_API_KEY. Check it with GET /v2/me, which is free:
2

Install the SDK

The Python SDK needs Python 3.10 or later. There are also SDKs for JavaScript, Ruby, and PHP, and a CLI.
3

Replace the call

4

Update the fields you read

The field mapping covers every other field.
5

Handle no match

Crustdata returns 200 with an empty matches array. CompanyEnrich returns 404, and the SDK raises NotFoundError. Neither API charges for it.

What takes longer

Migrate with a coding agent

A coding agent can do the inventory, the rewrite, and the tests. Give it this prompt in your repository:
See Migrate with a coding agent for what the agent does and the rules it follows.

Move your MCP setup

If your agent uses the Crustdata MCP server, add the CompanyEnrich server. The hosted server is at https://mcp.companyenrich.com/mcp. For example, in Claude Code:
The MCP server guide covers Claude Desktop, Cursor, VS Code, and other clients, and lists the credits each tool uses. Then update any prompts or code that name Crustdata tools: CompanyEnrich tools take plain values, such as a domain or a job title, so your agent does not need to look up autocomplete values first.

Scripts that use the Crustdata CLI

The CompanyEnrich CLI covers the same company and people workflows. Its search flags are named after the CompanyEnrich filters, so rewrite each --filter as a flag, or send the full request body with companyenrich api. A CompanyEnrich lookup that finds nothing exits with code 4, where Crustdata prints an empty matches array. Handle that code in scripts that use set -e, or the script stops at the first unknown domain.

Endpoint mapping

Crustdata enrichment and identify take arrays of one identifier type. CompanyEnrich takes one company or person per request, except batch enrichment, which takes up to 50 domains. Where a Crustdata call takes crustdata_company_ids, send the company’s domain, or the CompanyEnrich ID, instead. Crustdata IDs cannot be converted.

Company

People

Supporting APIs

Request and response differences

Authentication

Response shape

Field selection

Crustdata returns only the sections you list in fields. Company enrichment defaults to basic_info, and search defaults to every field. CompanyEnrich always returns the base record. The company base record includes name, domain, description, industry, size and revenue ranges, location, and social profiles. Add financial, keywords, naicsCodes, technologies, or workforce with expand, and company or education on a person. When you rewrite a call, turn its fields list into an expand list that holds only the expansions your code reads. Each expansion adds credits.

Match confidence

Crustdata returns candidate matches for each identifier, each with a confidence_score, and an empty matches array when there is none. Person lookups also report a match_status of matched, not_found, or redacted. CompanyEnrich has no score:
  • Enrichment by domain looks up that domain.
  • Enrichment by properties requires every property you send to match. If several companies match, it returns the highest-ranked one.
  • A person lookup by work email returns the person, or 404.
Code that accepts or rejects a match by confidence_score needs a new rule, because there is no score to check. For name lookups, send a domain instead, or add a profile URL as linkedinUrl to the name so that both must match.

Status codes

The change that needs code is the missed match: Crustdata reports it inside a 200 response, while CompanyEnrich returns 404. The SDK raises a typed exception for each non-2xx status, such as NotFoundError, PaymentRequiredError, and RateLimitError.

Billing behavior that affects your code

These differences change how you write retries, guards, and tests. Prices for each endpoint are in Credits.
  • No match is free on both APIs. CompanyEnrich enrichment that finds nothing returns 404 and is not charged.
  • An empty search is charged. Crustdata charges per result, so a search with no results costs nothing. CompanyEnrich charges one result’s base price, such as 1 credit for a filter search. Check a new filter with the free count endpoint first.
  • Extra company fields are expansions. Each one you request adds 1 credit per company returned, so request only the ones your code reads.
  • Work emails are a separate call. GET /v2/people/{personId}/email costs 10 credits only when it finds an email your account has not accessed before.
  • Responses report their cost. Read x-credit-cost and x-credit-remaining from the response headers, in place of X-Credits-Used.

Pagination

Crustdata asks for sorts to keep filter-search pages stable. CompanyEnrich has no sorting, so page with the cursor. If your code needs a sorted list, fetch every page, then sort. The Python SDK pages for you with search_all(). A cursor from one API does not work in the other, so restart any paging job from the first page.

Rate limits

Crustdata limits each endpoint by requests per minute, set by your plan, and reports x-ratelimit-limit, x-ratelimit-remaining, and x-ratelimit-reset. CompanyEnrich applies a global limit of 500 requests per minute per IP address and a per-route limit from your plan, reported in x-ratelimit-limit, x-ratelimit-remaining, and x-ratelimit-window. A batch of 50 domains is one request. The SDKs wait and retry on 429. See Rate limits.

Values and URLs

The value translations list every value.

IDs

Crustdata IDs and CompanyEnrich IDs are separate. Crustdata company and person IDs are integers. CompanyEnrich company IDs are UUIDs, and person IDs are 64-bit integers, so keep them in separate columns. Store the CompanyEnrich ID next to the Crustdata ID, and re-key company data on its domain.

Verify parity on your own data

Before you move production traffic, measure CompanyEnrich on records you already have. This makes no Crustdata requests.
1

Check your key and plan

Call GET /v2/me. It is free and returns your balance and plan capabilities.
2

Size your searches for free

Send each translated filter to the company or people count endpoint and compare total with Crustdata’s total_count.
3

Pick a sample

Take 100 to 200 company_data records you already stored from Crustdata. Using stored records means you spend no Crustdata credits. CompanyEnrich charges 1 credit per company found.
4

Compare the fields you read

Run the script below on the sample. It enriches the domains in batches of 50 and sorts each field into equal, differ, only Crustdata, only CompanyEnrich, or both empty. Fields marked lossy in the field mapping differ by definition, so leave them out or compare them by hand.
5

Check searches and people

For each translated search, run the count, then a preview if your plan includes it, then one page. For person lookups, test work emails you already know.
compare.py

Cut over

  • Put the CompanyEnrich path behind a feature flag and keep Crustdata as the fallback until the parity results meet the thresholds you set.
  • Store CompanyEnrich IDs next to Crustdata IDs.
  • Log x-credit-cost per call while both paths run.
  • Move reads first, then writes to stored records, then remove the Crustdata calls, keys, and MCP configuration you no longer use.

When to keep Crustdata

Keep Crustdata, or another source, for these workloads:
  • Person enrichment and identify by profile URL, and lookups by Google Scholar URL.
  • Personal emails, phone numbers, and bulk contact enrichment.
  • Live search, live profile retrieval, and work-history verification.
  • Job postings, social posts, web search and fetch, watches and webhooks, and agent search.
  • Company sections such as web traffic, SEO, reviews, news, followers, hiring, and key people inside the company record.
  • Searches that need OR across different fields, sorting, radius or polygon areas, person locations below country level, SIC codes, skills, or technology categories.
You can run both APIs side by side and route each call by the endpoint mapping.

What you can add after migrating

Semantic company search

Search companies with a plain-language description instead of filters.

Similar companies

Find lookalikes of up to 10 seed domains.

Company headcount

Headcount by department, with monthly history.

MCP server

Give AI agents access to the same data.

Common questions

No. Store the CompanyEnrich ID alongside the Crustdata ID, and re-key company data on its domain.
No. CompanyEnrich enriches a person by work email with POST /v2/people/enrich, and people search returns full records. Keep Crustdata for profile URL lookups.
No. The base record always comes back. List only the paid expansions your code reads in expand.
Send the same filter to the free count endpoint. Search responses do not include a total.
No. Results come in relevance order. Sort them in your code.
No. Batch and bulk enrichment work on every plan.