TikTok Search Content
Search for comprehensive results matching a keyword. Parameters: - `keyword` (required): Search term. - `offset` (optional, default 0): Starting position for pagination. - `count` (optional, default 20): Number of results requested. - `sort_type` (optional, default 0): 0 for relevance; 1 for most likes. - `publish_time` (optional, default 0): Publication-time filter in days: 0 for no limit, or 1, 7, 30, 90, or 180 days. Returns the search response, including its result data.
Pricing
| Condition | Charge |
|---|---|
| Each call | 2.07 credits/call |
2.07 credits/call Charges are per query. A successful query is billed even if it returns no results.
Parameters
Optional parameters use the platform defaults when omitted.
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
count | integer | No | 数量/Number | 20 |
offset | integer | No | 偏移量/Offset | 0 |
keyword | string | Yes | 关键词/Keyword | — |
sort_type | integer | No | 排序类型/Sort type | 0 |
publish_time | integer | No | 发布时间/Publish time | 0 |
Invocation example
Copy the request and explore its response example.
/agent-api/v1/tool/executeX-Api-Keycurl --request POST \
--url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_tiktok_search_content' \
--header "X-Api-Key: $AGENTEARTH_API_KEY" \
--header 'Content-Type: application/json' \
--data-raw '{
"params": {
"count": 5,
"keyword": "overseas student scam",
"sort_type": 1
}
}'{
"code": 200,
"data": {
"ad_info": {},
"backtrace": "ad_cursor%3D10%3Bcurrent_page%3D1",
"components": null,
"cursor": 10,
"data": [
{
"aweme_info": {
"added_sound_music_info": {
"album": "",
"allow_offline_music_to_detail_page": false,
"artists": [],
"audition_duration": 60,
"author": "yanissitoo",
"author_deleted": false
}
}
}
]
},
"docs": "https://api.tikhub.io/#/TikTok-App-V3-API/fetch_general_search_result_api_v1_tiktok_app_v3_fetch_general_search_result_get",
"message": "Request successful. This request will incur a charge."
}This example shows part of the response. Copied content is valid JSON.

