TikTok Scraper

Get TikTok Top Search

Searches TikTok's 'Top' results by query — returns both videos and photo carousels, unlike keyword search which only returns videos. Returns `items`, an array of objects each with `id`, `desc` (caption), `content_type` (video or photo carousel), `statistics` (play_count, digg_count/likes, comment_count, share_count), `video` info, and `images` for carousels. Paginate with `cursor`. TikTok may return duplicate results.

1 creditNo API key needed

Endpoint

Parameters

NameTypeRequiredNote
querystring · requiredstringrequired

Keyword to search for

limitnumber · optionalnumberoptional

Maximum number of results to return from this request. Leave empty for everything this request returns. This trims the response — it does not fetch more; use the returned cursor for the next batch. The price is the same either way.

cursornumber · optionalnumberoptional

Cursor to get more videos. Get 'cursor' from previous response.

regionstring · optionalstringoptional

Note, this doesn't filter the tiktoks only in a specfic region, it puts the proxy there. Use it in case you want to scrape posts only available for some country. Use 2 letter country codes like US, GB, FR, etc

sort_bystring · optionalstringoptional

Sort by

One of: relevance, most-liked, date-posted

publish_timestring · optionalstringoptional

Time Frame TikTok was posted

One of: yesterday, this-week, this-month, last-3-months, last-6-months, all-time

Response schema

{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "properties": {
    "items": {
      "type": "array"
    },
    "cursor": {
      "type": "number"
    },
    "limitApplied": {
      "type": "boolean",
      "description": "True when a Limit trimmed the results; there were more in this response."
    }
  },
  "additionalProperties": true
}

Get started

How to use this tool

  1. Connect your AI

    Add Connie to ChatGPT, Claude or Slack once, and this tool comes with it. There’s no API key or account to set up.

  2. Ask for the outcome

    Describe what you need in plain words. Your AI runs this tool when the job calls for it, along with any others it needs.

  3. Make it a workflow

    Add it as a step in a workflow that runs the same way every time, on a schedule or when something happens.

  4. Stay in control

    Choose whether it runs on its own or asks first. When it asks, you see an Allow or Deny card before any credits are spent.