curl --request POST \
--url https://api.crustdata.com/person/search/autocomplete \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-api-version: <x-api-version>' \
--data '
{
"field": "experience.employment_details.current.title",
"query": "CEO",
"limit": 5
}
'{
"suggestions": [
{
"value": "CEO",
"document_count": 1046463
},
{
"value": "Founder & CEO",
"document_count": 168935
},
{
"value": "ceo",
"document_count": 81666
}
]
}Returns field value suggestions with document counts for person search fields. Accepts the same field names as seen in /person/search response schema. Useful for building search UIs with type-ahead functionality and showing how many profiles match each value.
curl --request POST \
--url https://api.crustdata.com/person/search/autocomplete \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-api-version: <x-api-version>' \
--data '
{
"field": "experience.employment_details.current.title",
"query": "CEO",
"limit": 5
}
'{
"suggestions": [
{
"value": "CEO",
"document_count": 1046463
},
{
"value": "Founder & CEO",
"document_count": 168935
},
{
"value": "ceo",
"document_count": 81666
}
]
}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 limit for autocomplete suggestions.
Request body for autocomplete suggestions on person search fields.
The dataset API field name to get suggestions for. Must be a field from the /person/search response schema (e.g., 'basic_profile.headline', 'basic_profile.current_title', 'experience.employment_details.current.title').
"basic_profile.headline"
The search query text (can be empty to get top values by frequency)
"VP"
Maximum number of suggestions to return
1 <= x <= 100Optional filters to narrow down suggestions. Filter field names use the same dataset API field names.
Show child attributes
{
"field": "experience.employment_details.current.company_name",
"type": "=",
"value": "Google"
}Autocomplete suggestions with document counts
Response containing autocomplete suggestions with document counts.
Show child attributes
[
{ "value": "CEO", "document_count": 1046463 }
]Was this page helpful?