Skip to main content
POST
https://api.crustdata.com
/
dataset
/
social_post
/
search
/
autocomplete
curl --request POST \
  --url https://api.crustdata.com/dataset/social_post/search/autocomplete \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-api-version: <x-api-version>' \
  --data '
{
  "filter_type": "industry",
  "query": "tech",
  "count": 5
}
'
{
  "results": [
    "Technology, Information and Internet",
    "IT Services and IT Consulting",
    "Biotechnology Research",
    "Information Technology & Services",
    "Computer Hardware Manufacturing"
  ]
}

Authorizations

Authorization
string
header
required

Bearer token authentication. Pass your API key as Authorization: Bearer <your_api_key>.

Headers

x-api-version
enum<string>
required

API version to use for request routing and response shape.

Available options:
2025-11-01

Body

application/json

The filter field to autocomplete and a partial query string.

Request payload for /dataset/social_post/search/autocomplete. Returns suggestions for a given filter field based on a partial query string.

filter_type
enum<string>
required

The filter field to get autocomplete suggestions for.

Available options:
industry,
region,
title,
school
Example:

"industry"

query
string
required

Partial text to search for in the filter field values.

Example:

"tech"

count
integer
default:10

Maximum number of suggestions to return.

Required range: 1 <= x <= 100
Example:

5

start
integer
default:0

Pagination offset for paging through suggestions.

Example:

0

Response

Autocomplete suggestions matching the query

Autocomplete suggestions returned for a filter field query.

results
string[] | null

Matching suggestion strings for the queried filter field.

Example:
[
"Technology, Information and Internet",
"IT Services and IT Consulting",
"Biotechnology Research"
]