AnyAPITikTokSocial

TikTok Keyword Search

anyapi.tiktok.search.videos

Search TikTok by keyword and get matching videos (caption, views, likes, comments, shares) as normalized JSON.

Price
$0.0012/successAt list price
Success rate
—No success-rate data yetNo success-rate data yet
Latency p50
——
Last verified
Sep 19, 2026Verified working
POSThttps://toolswitch.dev/v1/tools/anyapi.tiktok.search.videosBeta
  • Uses platform quota
  • Synchronous response
  • Reads public data

Parameters

ParameterTypeRequiredDescriptionExample
Request body (JSON)
querystringRequiredThe keyword to search TikTok for.cooking
cursorstringOptionalPagination cursor from a previous response.
sortBy—OptionalSort order. Use the canonical JSON integer 0 for relevance, 1 for most liked, or 2 for newest first; legacy numeric strings remain accepted.0
datePosted—OptionalTime frame filter. Use a canonical JSON integer that is nonnegative; common values are 0 for any time, 1 for the past 24 hours, 7 for the past week, and 30 for the past month. Legacy numeric strings remain accepted.0
  • Request body (JSON)
  • querystringRequired

    The keyword to search TikTok for.

    Example: cooking

  • cursorstringOptional

    Pagination cursor from a previous response.

  • sortBy—Optional

    Sort order. Use the canonical JSON integer 0 for relevance, 1 for most liked, or 2 for newest first; legacy numeric strings remain accepted.

    Example: 0

  • datePosted—Optional

    Time frame filter. Use a canonical JSON integer that is nonnegative; common values are 0 for any time, 1 for the past 24 hours, 7 for the past week, and 30 for the past month. Legacy numeric strings remain accepted.

    Example: 0

Code samples

Replace $TOOLSWITCH_KEY with the key you created in the console.

Beta
curl -X POST 'https://toolswitch.dev/v1/tools/anyapi.tiktok.search.videos' \
  -H "X-Toolswitch-Key: $TOOLSWITCH_KEY" \
  -H "Content-Type: application/json" \
  --data-raw '{"query":"cooking","sortBy":0,"datePosted":0}'

This gateway API is in beta; its URL and authentication may change. The example parameters are sample data. Calls are billed at $0.0012/success, including the service fee.