field, an operator type, and a value, combined with and and or groups. CompanyEnrich V2 search takes a flat filter object in which every filter must match. Most conditions translate to one filter, but the field names, value formats, and operators differ. This page shows each pattern and the conditions that have no equivalent.
A translation that silently drops a condition returns, and charges for, the wrong records. Translate each condition, and check the result with the free count endpoint.
How the two search models differ
Translate a search in four steps
1
Flatten the conditions
Write down each condition with its field, operator, and value. Note every
or group: an or across different fields cannot be sent as one CompanyEnrich search.2
Map each condition
Find the pattern for the field in the tables below. A pattern applies whatever the operator’s shape:
= with one value and in with a list translate the same way, and != and not_in become notIn. Convert values with the value translations, and look up IDs and names with the free geo, industry, keyword, technology, and position endpoints.3
4
Fetch one page
Run the search with a small
pageSize and check the records against what you expect. An empty search still costs one result’s base price.fields list has no counterpart, because results are full company records. Funding is an expansion, so the request adds expand only because the code reads fundingStage.
Company search patterns
People search patterns
Person filters such asdomain, position, seniority, and department match the person’s current job. Conditions on the employer, such as its size, industry, or headquarters country, go in a company query, which takes the company search filters. Past jobs go in pastExperience.
Conditions that do not translate
- OR across different fields. Run one search per branch and merge the results on
id. OR across values of one field works: send an array, orin. - Sorting. Sort the records in your code. To reproduce a top list, such as the largest companies, count the matches for free, fetch every page, then sort.
- Radius and polygon searches. Filter by the countries, states, or cities in the area.
- Person location below country level. Filter cities and regions in your code, on
location.address. - Followers, hiring, web traffic, reviews, SIC codes, and technology categories.
- Skills, certifications, honors, connections, research and developer profiles, and contact availability.
- Text operators on any field.
(.)and[.]translate only where CompanyEnrich has a text filter:queryfor names,keywords, andposition. - Null checks, except the 13 company features
requirecovers, such asanyFundingandlinkedin. post_processingexclusions. Drop the excluded profiles or names in your code.
Totals and pagination
Search responses do not include a total. The free count endpoints returntotal, the number of matching records, and count, the number your plan lets you retrieve.
Pages hold 1 to 100 results, set with pageSize, against up to 1,000 for a filter-only Crustdata search. Pass the nextCursor of one page as cursor to get the next, until nextCursor is omitted. A cursor expires 24 hours after the first page. A Crustdata cursor does not work on CompanyEnrich, so restart any paging job from the first page.
When a description works better than filters
If your code or agent sends a rankedsearch.query to Crustdata, send the same text as a semantic search:
interpretation. It costs 2 credits per company returned instead of 1. For companies like ones you already know, use a lookalike search, which takes up to 10 seed domains and costs 5 per company.
Related pages
Migration overview
Endpoint mapping, request and response differences, and the parity check.
Field mapping
Every field, with value translations.
Company Search API filters
Every company filter and its matching rules.
People Search API filters
Every people filter and the company query.