Autocomplete
Autocomplete keywords
Auto complete the keyword search.
Cost: 1 credit per request if a result is returned.
Query Parameters
apiToken?string | null
Header Parameters
x-api-token?string | null
querystring
Beginning of the keyword
Example
"softw"
limit?integer
Number of keywords to return. Default is 5 if not specified, maximum is 15.
Default
5
Example
5
Range
1 <= value <= 15
Response Body
curl -X POST "https://api.ocean.io/v2/autocomplete/keywords?apiToken=string" \
-H "x-api-token: string" \
-H "Content-Type: application/json" \
-d '{
"query": "softw"
}'
{
"keywords": "software"
}
{
"detail": "Conflicting API tokens provided in query parameters and headers"
}
{
"detail": "Insufficient credits"
}
{
"detail": "API token should be provided in headers or query parameters"
}
Empty
{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}