TIKTOK API
Search Suggestions
Retrieve search suggestions from TikTok with a single API request.
GET
/api/data/v1/tiktok/search/suggestions1credit base cost
Request parameters
Up to 1 creditSearch query to get suggestions for
Region code for suggestions
Live requests use your prepaid balance. Cached responses cost zero where supported.
curl --request GET \
--url 'https://fetchgoblin.com/api/data/v1/tiktok/search/suggestions?query=dogs' \
--header 'x-api-key: YOUR_FETCHGOBLIN_API_KEY'Response
Example{
"success": true,
"suggestions": [
{
"text": "dogs cute",
"position": 0,
"language": "en",
"score": 0.011535803
}
],
"credits_charged": 1,
"credits_remaining": 1000,
"request_id": "00000000-0000-4000-8000-000000000000"
}Example data from the API specification. Run a request to retrieve current data.
Response shape
This schema describes the documented data shape. Some platform fields may be absent or null. The response also includes your FetchGoblin request ID and current credit balance.
View JSON Schema +
{
"type": "object",
"properties": {
"success": {
"type": "boolean"
},
"suggestions": {
"type": "array",
"items": {
"type": "object",
"properties": {
"text": {
"type": "string"
},
"position": {
"type": "integer"
},
"language": {
"type": "string"
},
"score": {
"type": "number"
}
}
}
},
"credits_charged": {
"type": "integer",
"minimum": 0,
"description": "FetchGoblin credits charged for this request."
},
"credits_remaining": {
"type": "integer",
"description": "Your FetchGoblin credit balance after this request."
},
"request_id": {
"type": "string",
"format": "uuid",
"description": "FetchGoblin request identifier."
}
}
}