TikTok Search Music

2.07 credits/call
ae_tiktok_search_music

Search for music that matches a keyword. The keyword is required. Optional parameters are offset (default 0; use the cursor from a previous response as the next offset when available), count (default 20; do not exceed 20), filter_by (0 = all, 1 = title, 2 = author; default 0), sort_type (0 = relevance, 1 = most used, 2 = newest, 3 = shortest duration, 4 = longest duration; default 0), and region (default US; provide a supported region code). The response contains the music search results in its data field, along with response metadata when available.

AudioEntertainment
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
regionstringNo地区/RegionUS
keywordstringYes关键词/Keyword—
filter_byintegerNo过滤类型/Filter type0
sort_typeintegerNo排序类型/Sort type0

Invocation example

Parameter template

Generated from the parameter configuration. Replace the sample values before use.

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_music' \
  --header "X-Api-Key: $AGENTEARTH_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "params": {
    "keyword": "xxx"
  }
}'

No response example available yet.