curl --request POST \
--url https://api.crustdata.com/company/search/autocomplete \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-api-version: <x-api-version>' \
--data '
{
"field": "basic_info.industries",
"query": "tech",
"limit": 5
}
'{
"suggestions": [
{
"value": "Technology, Information and Media",
"document_count": 2074162
},
{
"value": "Technology, Information and Internet",
"document_count": 1373419
},
{
"value": "Information Technology & Services",
"document_count": 196383
},
{
"value": "Biotechnology Research",
"document_count": 51297
},
{
"value": "Technical and Vocational Training",
"document_count": 35871
}
]
}Returns field value suggestions with document counts for company search fields. Useful for discovering valid filter values before building search queries. Accepts field names from the /company/search response schema using dot notation.
curl --request POST \
--url https://api.crustdata.com/company/search/autocomplete \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-api-version: <x-api-version>' \
--data '
{
"field": "basic_info.industries",
"query": "tech",
"limit": 5
}
'{
"suggestions": [
{
"value": "Technology, Information and Media",
"document_count": 2074162
},
{
"value": "Technology, Information and Internet",
"document_count": 1373419
},
{
"value": "Information Technology & Services",
"document_count": 196383
},
{
"value": "Biotechnology Research",
"document_count": 51297
},
{
"value": "Technical and Vocational Training",
"document_count": 35871
}
]
}API key passed as a Bearer token in the Authorization header.
API version to use. Must match a supported version (e.g., "2025-11-01").
"2025-11-01"
Field name, query text, and optional filters for autocomplete
Request body for autocomplete suggestions on company search fields.
The dataset API field name to get suggestions for. Must be a field from the /company/search response schema (e.g., 'basic_info.name', 'basic_info.industries', 'locations.hq_country').
"basic_info.industries"
The search query text (can be empty to get top values by frequency)
"tech"
Maximum number of suggestions to return
1 <= x <= 100Optional filters to narrow down suggestions
Show child attributes
{
"field": "locations.hq_country",
"type": "=",
"value": "USA"
}Autocomplete suggestions with document counts
Response containing autocomplete suggestions with document counts.
List of autocomplete suggestions
Show child attributes
[
{
"value": "Technology, Information and Media",
"document_count": 2074162
}
]Was this page helpful?