TikTok Search Content

2.07 credits/call
ae_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.

Social
2.07 credits/call

Pricing

2.07 credits/call
ConditionCharge
Each call2.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.

ParameterTypeRequiredDescriptionDefault
countintegerNo数量/Number20
offsetintegerNo偏移量/Offset0
keywordstringYes关键词/Keyword—
sort_typeintegerNo排序类型/Sort type0
publish_timeintegerNo发布时间/Publish time0

Invocation example

Copy the request and explore its response example.

POST/agent-api/v1/tool/executeX-Api-Key
Request coderequest.sh
curl --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
  }
}'
Response exampleresponse.json
JSONPartial content
{
  "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.