Skip to content
GitHubLog in
TikTok Search API

TikTok Search API

Searches TikTok by keyword, with platform set to tiktok, and returns a page of videos: id, url, caption as the title, duration, creator handle, publish time and play count. Each url is accepted by the transcript and batch endpoints.

Body parameters

POST/api/v2/transcripts/searchidempotent
curl https://transcriptfetch.com/api/v2/transcripts/search \
  -H "Authorization: Bearer $TRANSCRIPTFETCH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"how transformers work","platform":"tiktok","limit":10}'
Success
{
  "ok": true,
  "request_id": "req_…",
  "data": {
    "kind": "video_list",
    "source": "search",
    "platform": "tiktok",
    "videos": [
      {
        "videoId": "7563520074795994399",
        "url": "https://www.tiktok.com/@explore.scientist/video/7563520074795994399",
        "title": "How does a power transformer work #knowledge #science #tiktok",
        "duration": 72,
        "channel": "@explore.scientist",
        "publishedAt": "2025-10-21T04:01:08Z",
        "stats": {
          "plays": 496600
        }
      },
      {
        "videoId": "7649719917507251488",
        "url": "https://www.tiktok.com/@theengineeringmindset/video/7649719917507251488",
        "title": "How transformers actually work: Two coils, a steel core, and a magnetic field that's pure magic (but science!). #ScienceExplained #HowItWorks #Transformer #STEM #Physics",
        "duration": 92,
        "channel": "@theengineeringmindset",
        "publishedAt": "2026-06-10T11:00:12Z",
        "stats": {
          "plays": 18300
        }
      }
    ],
    "next_cursor": "eyJvIjoxMH0"
  },
  "usage": {
    "credits_spent": 1,
    "balance": 656,
    "bytes": 0
  }
}

Every TikTok endpoint

Same call, other platforms:YouTube Search APIInstagram Search API

Frequently asked questions

How do I search TikTok instead of YouTube?

Send platform tiktok in the body. Without it the search runs on YouTube. Everything else about the call is the same: query, limit and cursor.

Can I filter TikTok results by date, duration or captions?

No. Those filters are YouTube-only and are ignored on TikTok. The rows carry duration, publishedAt and stats.plays, so you can filter on your side after the fetch.

What is in a TikTok search row?

videoId, url, title (the caption), duration in seconds, channel (the creator's @handle), publishedAt and stats.plays. The url goes straight into the transcript or batch endpoint.

How do I transcribe everything a search returns?

Collect the url of each row and send them to the batch endpoint. Caption transcripts cost 1 credit each and videos without captions go to AI Fallback Transcription, billed on delivery.