This page collects examples for Company Autocomplete. Each example is a full working request you can copy, paste, and adapt. For the core walkthrough (first request, response shape, request fields), see Company Autocomplete. For supported fields, operators, and errors, see Autocomplete reference.Documentation Index
Fetch the complete documentation index at: https://docs.crustdata.com/llms.txt
Use this file to discover all available pages before exploring further.
Replace
YOUR_API_KEY in each example with your actual API key. All
requests require the x-api-version: 2025-11-01 header.Autocomplete company names
Usebasic_info.name to surface company names matching a partial string.
Get the most common values for a field
Use an empty string forquery when you want the most frequent values
instead of a text match. This is useful when you are exploring a field for
the first time.
Narrow suggestions with filters
Autocomplete can scope results to a subset of companies. Thefilters field
accepts either:
- a single condition with
field,type, andvalue - a logical group with
opandconditions
and/or groups. Filter values can be strings,
numbers, or booleans, and array values can contain strings or numbers — pass
numeric values as numbers rather than strings where the underlying field is
numeric.
Full workflow: Autocomplete → Search → Enrich
This is the canonical end-to-end Company API workflow. You do not know the exact industry value the Search API expects. Autocomplete discovers it, Search finds matching companies, and Enrich fills in the details.Step 1: Discover valid industry values
suggestions[0].value → "Software Development". Use this
exact string in your Search filter.
If empty: If suggestions is [], your query did not match any indexed
values. Try a broader term (for example, "tech" instead of
"software engineering").
Step 2: Search for matching companies
companies[].crustdata_company_id values →
[12345, 67890, 628895]. Pass these to Enrich.
If empty: If companies is [], no companies matched your filters.
Broaden your conditions or re-run autocomplete to verify filter values.
To get more results: Pass next_cursor as cursor in the next request.
Stop paginating when next_cursor is null. See
Pagination & sorting.
Step 3: Enrich the top matches
response[i].matches[0].company_data.
If a match is empty: If matches is [] for an identifier, that company
was not found. The request still succeeds (200 OK) for the other
identifiers. See
Partial batch failure.
Next steps
- Autocomplete reference — supported fields, operators, errors, API summary.
- Company Search — use the discovered value in a structured company search.
- Company Enrich — enrich a company after you find it.

