> ## Documentation Index
> Fetch the complete documentation index at: https://creatorinsights.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# TikTok Top

Default TikTok tool for niche-based popular/viral inspiration, matching the dashboard API source operation. Pass a focused natural topic of one or two meaningful terms with spaces, not a hashtag or instruction. Remove request filler such as find, show, best, top, viral, trending, videos and TikTok while preserving exact product, company and creator names. Put publish\_time, sort\_by and region in their separate arguments. Results can include photo carousels: retain videos when requested. For a videos-only search use search\_tiktok\_keyword.

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. Search with the exact creator, product, topic or short content phrase. Keep important entity names intact. Put supported date, sorting and region choices in their separate arguments, not natural-language instructions inside query. Evaluate engagement, production quality and audience fit from returned data; those criteria are not guaranteed search filters. See the Search Locations & Credits guide for query examples. Scraper responses preserve their public source field names by default (trim omitted or true) while removing only noisy, heavy, or unsafe fields. Set trim=false for the full sanitized source response.

Intelligence uses plan credits; niche searches start at 2, other ordinary fetches at 1, and applicable options can cost more.

> [!NOTE]
>
> region is optional. Explicit country codes are normalized to two uppercase letters. When omitted, no country override is sent; Creator Insights does not choose a fixed country. A request location does not restrict results to creators or posts from that country. Keep the same query, region and other filters when paginating. See [Search locations & credits](https://creatorinsights.mintlify.site/search-locations-and-credits.md).

> [!NOTE]
>
> Examples use illustrative values. The playground sends a real request. Intelligence can consume plan credits. Publishing examples save drafts.

## Endpoint

**GET** `https://api.creatorinsights.in/v1/tiktok/search`

**Content type:** Query parameters; no JSON request body.

**Authentication:** `x-api-key: YOUR_SAVED_API_KEY`

**MCP tool:** `search_tiktok_top`. See [MCP Setup](https://creatorinsights.mintlify.site/mcp-setup.md) for AI clients.

## Request parameters

**x-workspace-id** `string`

Active workspace ID or current name in your organization. Optional header alternative to passing workspace in the query.

**query** `string` *required*

Keyword to search for

**publish\_time** `string`

Time Frame TikTok was posted Allowed values: `yesterday`, `this-week`, `this-month`, `last-3-months`, `last-6-months`, `all-time`.

**sort\_by** `string`

Sort by Allowed values: `relevance`, `most-liked`, `date-posted`.

**region** `string`

Optional two-letter proxy country code, such as US, GB or FR. This selects the request location, not the country where creators or posts originate. When omitted, no country override is sent; Creator Insights does not select a fixed country. Availability and results depend on the platform.

**cursor** `number`

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

**workspace** `string`

Workspace ID or current name in the authenticated organization. Required for paid requests when the organization has more than one active workspace. The selected workspace receives this request charge.

**trim** `boolean` (default: true)

Defaults to true: preserve public source field names, metrics, and public media URLs while removing only noisy, heavy, or unsafe fields. Set false for the full sanitized source response; credentials, transport headers/context, internal credit data, and upstream-provider identity are always removed.

## Request example

Send these arguments as URL query parameters.

```json theme={null}
{
  "query": "solar panels",
  "region": "US",
  "publish_time": "this-month",
  "sort_by": "relevance",
  "workspace": "YOUR_WORKSPACE_ID_OR_CURRENT_NAME"
}
```

```bash cURL theme={null}
curl --get 'https://api.creatorinsights.in/v1/tiktok/search' \
  -H "x-api-key: $CREATOR_INSIGHTS_API_KEY" \
  --data-urlencode 'query=solar panels' \
  --data-urlencode 'region=US' \
  --data-urlencode 'publish_time=this-month' \
  --data-urlencode 'sort_by=relevance' \
  --data-urlencode 'workspace=YOUR_WORKSPACE_ID_OR_CURRENT_NAME'
```

```javascript Node.js theme={null}
const parameters = {
  "query": "solar panels",
  "region": "US",
  "publish_time": "this-month",
  "sort_by": "relevance",
  "workspace": "YOUR_WORKSPACE_ID_OR_CURRENT_NAME"
};
const url = new URL('https://api.creatorinsights.in/v1/tiktok/search');
for (const [name, value] of Object.entries(parameters)) url.searchParams.set(name, String(value));
const response = await fetch(url, { headers: { 'x-api-key': process.env.CREATOR_INSIGHTS_API_KEY } });
const raw = await response.text();
let result;
try { result = JSON.parse(raw); } catch { throw new Error('Non-JSON response: ' + response.status); }
if (!response.ok || result.success === false) throw new Error(result.message || result.error || 'Request failed');
console.log(result.data);
```

```python Python theme={null}
import json, os, requests

arguments = json.loads("{\"query\":\"solar panels\",\"region\":\"US\",\"publish_time\":\"this-month\",\"sort_by\":\"relevance\",\"workspace\":\"YOUR_WORKSPACE_ID_OR_CURRENT_NAME\"}")
response = requests.get("https://api.creatorinsights.in/v1/tiktok/search",
    headers={"x-api-key": os.environ["CREATOR_INSIGHTS_API_KEY"]},
    params=arguments, timeout=120)
response.raise_for_status()
result = response.json()
print(result["data"])
```

## Response example

HTTP 200. Illustrative values; optional fields can be omitted, null, or empty. Additional platform fields may be returned.

```json Success theme={null}
{
  "success": true,
  "data": {
    "success": true,
    "items": [
      {
        "id": "1234567890123456789",
        "desc": "Example creator content",
        "content_type": "example",
        "create_time": "example",
        "desc_language": "en",
        "region": "US",
        "is_top": 1,
        "statistics": {
          "aweme_id": "1234567890123456789",
          "collect_count": 120,
          "comment_count": 120,
          "digg_count": 120,
          "download_count": 120,
          "forward_count": 120,
          "lose_comment_count": 120,
          "lose_count": 120,
          "play_count": 120,
          "repost_count": 120,
          "share_count": 120,
          "whatsapp_share_count": 120
        },
        "video": {
          "ai_dynamic_cover": {
            "data_size": 1,
            "height": 1920,
            "uri": "example",
            "url_list": [
              "https://example.com/sample"
            ],
            "url_prefix": null,
            "width": 1080
          },
          "ai_dynamic_cover_bak": {
            "data_size": 1,
            "height": 1920,
            "uri": "example",
            "url_list": [
              "https://example.com/sample"
            ],
            "url_prefix": null,
            "width": 1080
          },
          "big_thumbs": [],
          "bit_rate": [],
          "bit_rate_audio": [],
          "cdn_url_expired": 1,
          "cla_info": {
            "caption_infos": null,
            "captions_type": 1,
            "creator_edited_caption_id": 1,
            "enable_auto_caption": 1,
            "has_original_audio": 1,
            "hide_original_caption": false,
            "is_author_dubbing_qualified": false,
            "no_caption_reason": 1,
            "no_caption_reason_v2": 1,
            "vertical_positions": null
          },
          "cover": {
            "data_size": 1,
            "height": 1920,
            "uri": "example",
            "url_list": [
              "https://example.com/sample"
            ],
            "url_prefix": null,
            "width": 1080
          },
          "download_addr": {
            "height": 1920,
            "uri": "",
            "url_list": [],
            "url_prefix": null,
            "width": 1080
          },
          "duration": 30,
          "dynamic_cover": {
            "data_size": 1,
            "height": 1920,
            "uri": "example",
            "url_list": [
              "https://example.com/sample"
            ],
            "url_prefix": null,
            "width": 1080
          },
          "has_watermark": false,
          "height": 1920,
          "is_bytevc1": 1,
          "meta": "example",
          "origin_cover": {
            "data_size": 1,
            "height": 1920,
            "uri": "example",
            "url_list": [
              "https://example.com/sample"
            ],
            "url_prefix": null,
            "width": 1080
          },
          "play_addr": {
            "height": 1920,
            "uri": "https://example.com/sample",
            "url_key": "1234567890123456789",
            "url_list": [
              "https://example.com/sample"
            ],
            "url_prefix": null,
            "width": 1080
          },
          "ratio": "example",
          "tags": null,
          "width": 1080
        },
        "author": {
          "accept_private_policy": false,
          "account_labels": null,
          "ad_cover_url": null,
          "advance_feature_item_order": null,
          "advanced_feature_info": null,
          "authority_status": 1,
          "avatar_168x168": {
            "height": 1920,
            "uri": "example",
            "url_list": [
              "https://example.com/sample"
            ],
            "url_prefix": null,
            "width": 1080
          },
          "avatar_300x300": {
            "height": 1920,
            "uri": "example",
            "url_list": [
              "https://example.com/sample"
            ],
            "url_prefix": null,
            "width": 1080
          },
          "avatar_larger": {
            "height": 1920,
            "uri": "example",
            "url_list": [
              "https://example.com/sample"
            ],
            "url_prefix": null,
            "width": 1080
          },
          "avatar_medium": {
            "height": 1920,
            "uri": "example",
            "url_list": [
              "https://example.com/sample"
            ],
            "url_prefix": null,
            "width": 1080
          },
          "avatar_thumb": {
            "height": 1920,
            "uri": "example",
            "url_list": [
              "https://example.com/sample"
            ],
            "url_prefix": null,
            "width": 1080
          },
          "avatar_uri": "example",
          "aweme_count": 120,
          "bold_fields": null,
          "can_message_follow_status_list": [
            1
          ],
          "can_set_geofencing": null,
          "cha_list": null,
          "comment_setting": 1,
          "commerce_user_level": 1,
          "cover_url": null,
          "custom_verify": "",
          "cv_level": "",
          "download_prompt_ts": 1,
          "enabled_filter_all_comments": false,
          "enterprise_verify_reason": "",
          "events": null,
          "fb_expire_time": 1767225600,
          "follow_status": 1,
          "follower_count": 120,
          "follower_status": 1,
          "followers_detail": null,
          "following_count": 120,
          "friends_status": 1,
          "geofencing": null,
          "hide_search": false,
          "homepage_bottom_toast": null,
          "ins_id": "",
          "is_ad_fake": false,
          "is_block": false,
          "is_discipline_member": false,
          "is_mute": 1,
          "is_mute_lives": 1,
          "is_mute_non_story_post": 1,
          "is_mute_story": 1,
          "is_star": false,
          "item_list": null,
          "live_agreement": 1,
          "live_commerce": false,
          "live_verify": 1,
          "mention_status": 1,
          "mutual_relation_avatars": null,
          "name_field": "Example creator content",
          "need_points": null,
          "need_recommend": 1,
          "nickname": "Example creator content",
          "platform_sync_info": null,
          "prevent_download": false,
          "relative_users": null,
          "reply_with_video_flag": 1,
          "room_id": 1,
          "search_highlight": null,
          "search_user_desc": "Example creator content",
          "search_user_name": "Example creator content",
          "sec_uid": "example_id",
          "secret": 1,
          "shield_comment_notice": 1,
          "shield_digg_notice": 1,
          "shield_edit_field_info": null,
          "shield_follow_notice": 1,
          "short_id": "1234567890123456789",
          "show_image_bubble": false,
          "special_account": {
            "special_account_list": null
          },
          "special_lock": 1,
          "status": 1,
          "stitch_setting": 1,
          "story_status": 1,
          "total_favorited": 1,
          "type_label": null,
          "uid": "1234567890123456789",
          "unique_id": "example_id",
          "user_canceled": false,
          "user_mode": 1,
          "user_now_pack_info": {},
          "user_period": 1,
          "user_profile_guide": null,
          "user_rate": 1,
          "user_spark_info": {},
          "user_tags": null,
          "verification_type": 1,
          "verify_info": "",
          "video_icon": {
            "height": 1920,
            "uri": "",
            "url_list": [],
            "url_prefix": null,
            "width": 1080
          },
          "white_cover_url": null,
          "with_commerce_entry": false,
          "with_shop_entry": false
        },
        "images": [
          "https://media.example.com/sample.jpg"
        ],
        "music": {
          "author": "example",
          "duration": 30,
          "id": 1,
          "title": "Example creator content",
          "play_url": "https://media.example.com/sample.mp4",
          "matched_song": {
            "author": "example",
            "id": "1234567890123456789",
            "title": "Example creator content"
          }
        },
        "is_eligible_for_commission": false,
        "is_paid_partnership": false,
        "is_ad": false,
        "url": "https://example.com/sample",
        "shop_product_url": null
      }
    ],
    "cursor": 1
  },
  "credits_charged": 2
}
```

## Response fields

**success** `boolean` *required*

Whether this operation succeeded. Also check HTTP status and nested platform statuses.

**data** `object` *required*

Operation-specific payload. See the nested field table and response example below.

**credits\_charged** `number`

Creator Insights plan credits for this call; the example is illustrative.

| Field | Type | Description |
| - | - | - |
| `success` | boolean | Example response field. Availability depends on the record and selected options. |
| `data` | object | Public source field names are preserved by default when trim is omitted or true; only noisy, heavy, or unsafe fields are removed. Set trim=false for the full sanitized source response. Fields vary with source availability; unavailable metrics are null. |
| `data.success` | boolean | Example response field. Availability depends on the record and selected options. |
| `data.items` | array | List of returned entries; may be empty. |
| `data.items[].id` | string | Example response field. Availability depends on the record and selected options. |
| `data.items[].desc` | string | Example response field. Availability depends on the record and selected options. |
| `data.items[].content_type` | string | Example response field. Availability depends on the record and selected options. |
| `data.items[].create_time` | string | Example response field. Availability depends on the record and selected options. |
| `data.items[].desc_language` | string | Example response field. Availability depends on the record and selected options. |
| `data.items[].region` | string | Example response field. Availability depends on the record and selected options. |
| `data.items[].is_top` | integer | Example response field. Availability depends on the record and selected options. |
| `data.items[].statistics` | object | Nested object. Expand the response schema for its fields. |
| `data.items[].statistics.aweme_id` | string | Example response field. Availability depends on the record and selected options. |
| `data.items[].statistics.collect_count` | integer | Example response field. Availability depends on the record and selected options. |
| `data.items[].statistics.comment_count` | integer | Example response field. Availability depends on the record and selected options. |
| `data.items[].statistics.digg_count` | integer | Example response field. Availability depends on the record and selected options. |
| `data.items[].statistics.download_count` | integer | Example response field. Availability depends on the record and selected options. |
| `data.items[].statistics.forward_count` | integer | Example response field. Availability depends on the record and selected options. |
| `data.items[].statistics.lose_comment_count` | integer | Example response field. Availability depends on the record and selected options. |
| `data.items[].statistics.lose_count` | integer | Example response field. Availability depends on the record and selected options. |
| `data.items[].statistics.play_count` | integer | Example response field. Availability depends on the record and selected options. |
| `data.items[].statistics.repost_count` | integer | Example response field. Availability depends on the record and selected options. |
| `data.items[].statistics.share_count` | integer | Example response field. Availability depends on the record and selected options. |
| `data.items[].statistics.whatsapp_share_count` | integer | Example response field. Availability depends on the record and selected options. |
| `data.items[].video` | object | Nested object. Expand the response schema for its fields. |
| `data.items[].video.ai_dynamic_cover` | object | Nested object. Expand the response schema for its fields. |
| `data.items[].video.ai_dynamic_cover_bak` | object | Nested object. Expand the response schema for its fields. |
| `data.items[].video.big_thumbs` | array | List of returned entries; may be empty. |
| `data.items[].video.bit_rate` | array | List of returned entries; may be empty. |
| `data.items[].video.bit_rate_audio` | array | List of returned entries; may be empty. |
| `data.items[].video.cdn_url_expired` | integer | Example response field. Availability depends on the record and selected options. |
| `data.items[].video.cla_info` | object | Nested object. Expand the response schema for its fields. |
| `data.items[].video.cover` | object | Nested object. Expand the response schema for its fields. |
| `data.items[].video.download_addr` | object | Nested object. Expand the response schema for its fields. |
| `data.items[].video.duration` | integer | Example response field. Availability depends on the record and selected options. |
| `data.items[].video.dynamic_cover` | object | Nested object. Expand the response schema for its fields. |
| `data.items[].video.has_watermark` | boolean | Example response field. Availability depends on the record and selected options. |
| `data.items[].video.height` | integer | Example response field. Availability depends on the record and selected options. |
| `data.items[].video.is_bytevc1` | integer | Example response field. Availability depends on the record and selected options. |
| `data.items[].video.meta` | string | Example response field. Availability depends on the record and selected options. |
| `data.items[].video.origin_cover` | object | Nested object. Expand the response schema for its fields. |
| `data.items[].video.play_addr` | object | Nested object. Expand the response schema for its fields. |
| `data.items[].video.ratio` | string | Example response field. Availability depends on the record and selected options. |
| `data.items[].video.tags` | value | Null in the illustrative response. No concrete type is asserted; may be unavailable or populated for another record. |
| `data.items[].video.width` | integer | Example response field. Availability depends on the record and selected options. |
| `data.items[].author` | object | Nested object. Expand the response schema for its fields. |
| `data.items[].author.accept_private_policy` | boolean | Example response field. Availability depends on the record and selected options. |
| `data.items[].author.account_labels` | value | Null in the illustrative response. No concrete type is asserted; may be unavailable or populated for another record. |
| `data.items[].author.ad_cover_url` | value | Null in the illustrative response. No concrete type is asserted; may be unavailable or populated for another record. |
| `data.items[].author.advance_feature_item_order` | value | Null in the illustrative response. No concrete type is asserted; may be unavailable or populated for another record. |
| `data.items[].author.advanced_feature_info` | value | Null in the illustrative response. No concrete type is asserted; may be unavailable or populated for another record. |
| `data.items[].author.authority_status` | integer | Example response field. Availability depends on the record and selected options. |
| `data.items[].author.avatar_168x168` | object | Nested object. Expand the response schema for its fields. |
| `data.items[].author.avatar_300x300` | object | Nested object. Expand the response schema for its fields. |
| `data.items[].author.avatar_larger` | object | Nested object. Expand the response schema for its fields. |
| `data.items[].author.avatar_medium` | object | Nested object. Expand the response schema for its fields. |
| `data.items[].author.avatar_thumb` | object | Nested object. Expand the response schema for its fields. |
| `data.items[].author.avatar_uri` | string | Example response field. Availability depends on the record and selected options. |
| `data.items[].author.aweme_count` | integer | Example response field. Availability depends on the record and selected options. |
| `data.items[].author.bold_fields` | value | Null in the illustrative response. No concrete type is asserted; may be unavailable or populated for another record. |
| `data.items[].author.can_message_follow_status_list` | array | List of returned entries; may be empty. |
| `data.items[].author.can_set_geofencing` | value | Null in the illustrative response. No concrete type is asserted; may be unavailable or populated for another record. |
| `data.items[].author.cha_list` | value | Null in the illustrative response. No concrete type is asserted; may be unavailable or populated for another record. |
| `data.items[].author.comment_setting` | integer | Example response field. Availability depends on the record and selected options. |
| `data.items[].author.commerce_user_level` | integer | Example response field. Availability depends on the record and selected options. |
| `data.items[].author.cover_url` | value | Null in the illustrative response. No concrete type is asserted; may be unavailable or populated for another record. |
| `data.items[].author.custom_verify` | string | Example response field. Availability depends on the record and selected options. |
| `data.items[].author.cv_level` | string | Example response field. Availability depends on the record and selected options. |
| `data.items[].author.download_prompt_ts` | integer | Example response field. Availability depends on the record and selected options. |
| `data.items[].author.enabled_filter_all_comments` | boolean | Example response field. Availability depends on the record and selected options. |
| `data.items[].author.enterprise_verify_reason` | string | Example response field. Availability depends on the record and selected options. |
| `data.items[].author.events` | value | Null in the illustrative response. No concrete type is asserted; may be unavailable or populated for another record. |
| `data.items[].author.fb_expire_time` | integer | Example response field. Availability depends on the record and selected options. |
| `data.items[].author.follow_status` | integer | Example response field. Availability depends on the record and selected options. |
| `data.items[].author.follower_count` | integer | Example response field. Availability depends on the record and selected options. |
| `data.items[].author.follower_status` | integer | Example response field. Availability depends on the record and selected options. |
| `data.items[].author.followers_detail` | value | Null in the illustrative response. No concrete type is asserted; may be unavailable or populated for another record. |
| `data.items[].author.following_count` | integer | Example response field. Availability depends on the record and selected options. |
| `data.items[].author.friends_status` | integer | Example response field. Availability depends on the record and selected options. |
| `data.items[].author.geofencing` | value | Null in the illustrative response. No concrete type is asserted; may be unavailable or populated for another record. |
| `data.items[].author.hide_search` | boolean | Example response field. Availability depends on the record and selected options. |
| `data.items[].author.homepage_bottom_toast` | value | Null in the illustrative response. No concrete type is asserted; may be unavailable or populated for another record. |
| `data.items[].author.ins_id` | string | Example response field. Availability depends on the record and selected options. |
| `data.items[].author.is_ad_fake` | boolean | Example response field. Availability depends on the record and selected options. |
| `data.items[].author.is_block` | boolean | Example response field. Availability depends on the record and selected options. |
| `data.items[].author.is_discipline_member` | boolean | Example response field. Availability depends on the record and selected options. |
| `data.items[].author.is_mute` | integer | Example response field. Availability depends on the record and selected options. |
| `data.items[].author.is_mute_lives` | integer | Example response field. Availability depends on the record and selected options. |
| `data.items[].author.is_mute_non_story_post` | integer | Example response field. Availability depends on the record and selected options. |
| `data.items[].author.is_mute_story` | integer | Example response field. Availability depends on the record and selected options. |
| `data.items[].author.is_star` | boolean | Example response field. Availability depends on the record and selected options. |
| `data.items[].author.item_list` | value | Null in the illustrative response. No concrete type is asserted; may be unavailable or populated for another record. |
| `data.items[].author.live_agreement` | integer | Example response field. Availability depends on the record and selected options. |
| `data.items[].author.live_commerce` | boolean | Example response field. Availability depends on the record and selected options. |
| `data.items[].author.live_verify` | integer | Example response field. Availability depends on the record and selected options. |
| `data.items[].author.mention_status` | integer | Example response field. Availability depends on the record and selected options. |
| `data.items[].author.mutual_relation_avatars` | value | Null in the illustrative response. No concrete type is asserted; may be unavailable or populated for another record. |
| `data.items[].author.name_field` | string | Example response field. Availability depends on the record and selected options. |
| `data.items[].author.need_points` | value | Null in the illustrative response. No concrete type is asserted; may be unavailable or populated for another record. |
| `data.items[].author.need_recommend` | integer | Example response field. Availability depends on the record and selected options. |
| `data.items[].author.nickname` | string | Example response field. Availability depends on the record and selected options. |
| `data.items[].author.platform_sync_info` | value | Null in the illustrative response. No concrete type is asserted; may be unavailable or populated for another record. |
| `data.items[].author.prevent_download` | boolean | Example response field. Availability depends on the record and selected options. |
| `data.items[].author.relative_users` | value | Null in the illustrative response. No concrete type is asserted; may be unavailable or populated for another record. |
| `data.items[].author.reply_with_video_flag` | integer | Example response field. Availability depends on the record and selected options. |
| `data.items[].author.room_id` | integer | Example response field. Availability depends on the record and selected options. |
| `data.items[].author.search_highlight` | value | Null in the illustrative response. No concrete type is asserted; may be unavailable or populated for another record. |
| `data.items[].author.search_user_desc` | string | Example response field. Availability depends on the record and selected options. |
| `data.items[].author.search_user_name` | string | Example response field. Availability depends on the record and selected options. |
| `data.items[].author.sec_uid` | string | Example response field. Availability depends on the record and selected options. |
| `data.items[].author.secret` | integer | Example response field. Availability depends on the record and selected options. |
| `data.items[].author.shield_comment_notice` | integer | Example response field. Availability depends on the record and selected options. |
| `data.items[].author.shield_digg_notice` | integer | Example response field. Availability depends on the record and selected options. |
| `data.items[].author.shield_edit_field_info` | value | Null in the illustrative response. No concrete type is asserted; may be unavailable or populated for another record. |
| `data.items[].author.shield_follow_notice` | integer | Example response field. Availability depends on the record and selected options. |
| `data.items[].author.short_id` | string | Example response field. Availability depends on the record and selected options. |
| `data.items[].author.show_image_bubble` | boolean | Example response field. Availability depends on the record and selected options. |
| `data.items[].author.special_account` | object | Nested object. Expand the response schema for its fields. |
| `data.items[].author.special_lock` | integer | Example response field. Availability depends on the record and selected options. |
| `data.items[].author.status` | integer | Example response field. Availability depends on the record and selected options. |
| `data.items[].author.stitch_setting` | integer | Example response field. Availability depends on the record and selected options. |
| `data.items[].author.story_status` | integer | Example response field. Availability depends on the record and selected options. |
| `data.items[].author.total_favorited` | integer | Example response field. Availability depends on the record and selected options. |
| `data.items[].author.type_label` | value | Null in the illustrative response. No concrete type is asserted; may be unavailable or populated for another record. |
| `data.items[].author.uid` | string | Example response field. Availability depends on the record and selected options. |
| `data.items[].author.unique_id` | string | Example response field. Availability depends on the record and selected options. |
| `data.items[].author.user_canceled` | boolean | Example response field. Availability depends on the record and selected options. |
| `data.items[].author.user_mode` | integer | Example response field. Availability depends on the record and selected options. |
| `data.items[].author.user_now_pack_info` | object | Nested object. Expand the response schema for its fields. |
| `data.items[].author.user_period` | integer | Example response field. Availability depends on the record and selected options. |
| `data.items[].author.user_profile_guide` | value | Null in the illustrative response. No concrete type is asserted; may be unavailable or populated for another record. |
| `data.items[].author.user_rate` | integer | Example response field. Availability depends on the record and selected options. |
| `data.items[].author.user_spark_info` | object | Nested object. Expand the response schema for its fields. |
| `data.items[].author.user_tags` | value | Null in the illustrative response. No concrete type is asserted; may be unavailable or populated for another record. |
| `data.items[].author.verification_type` | integer | Example response field. Availability depends on the record and selected options. |
| `data.items[].author.verify_info` | string | Example response field. Availability depends on the record and selected options. |
| `data.items[].author.video_icon` | object | Nested object. Expand the response schema for its fields. |
| `data.items[].author.white_cover_url` | value | Null in the illustrative response. No concrete type is asserted; may be unavailable or populated for another record. |
| `data.items[].author.with_commerce_entry` | boolean | Example response field. Availability depends on the record and selected options. |
| `data.items[].author.with_shop_entry` | boolean | Example response field. Availability depends on the record and selected options. |
| `data.items[].images` | array | List of returned entries; may be empty. |
| `data.items[].music` | object | Nested object. Expand the response schema for its fields. |
| `data.items[].music.author` | string | Example response field. Availability depends on the record and selected options. |
| `data.items[].music.duration` | integer | Example response field. Availability depends on the record and selected options. |
| `data.items[].music.id` | integer | Example response field. Availability depends on the record and selected options. |
| `data.items[].music.title` | string | Example response field. Availability depends on the record and selected options. |
| `data.items[].music.play_url` | string | Example response field. Availability depends on the record and selected options. |
| `data.items[].music.matched_song` | object | Nested object. Expand the response schema for its fields. |
| `data.items[].is_eligible_for_commission` | boolean | Example response field. Availability depends on the record and selected options. |
| `data.items[].is_paid_partnership` | boolean | Example response field. Availability depends on the record and selected options. |
| `data.items[].is_ad` | boolean | Example response field. Availability depends on the record and selected options. |
| `data.items[].url` | string | Example response field. Availability depends on the record and selected options. |
| `data.items[].shop_product_url` | value | Null in the illustrative response. No concrete type is asserted; may be unavailable or populated for another record. |
| `data.cursor` | integer | Example response field. Availability depends on the record and selected options. |
| `credits_charged` | number | Example response field. Availability depends on the record and selected options. |

The interactive schema includes deeper nested fields. Sample fields are descriptive, not a promise that every record includes them.

## n8n and JSON tool endpoint

**POST** `https://api.creatorinsights.in/api/v1/tools/search_tiktok_top`. Use Header Auth with `x-api-key` and body content type JSON. This alias returns the n8n envelope below; included operations can report zero credits\_deducted.

```bash theme={null}
curl -X POST 'https://api.creatorinsights.in/api/v1/tools/search_tiktok_top' \
  -H "x-api-key: $CREATOR_INSIGHTS_API_KEY" \
  -H 'Content-Type: application/json' \
  --data '{"query":"solar panels","region":"US","publish_time":"this-month","sort_by":"relevance","workspace":"YOUR_WORKSPACE_ID_OR_CURRENT_NAME"}'
```

```json theme={null}
{
  "status": true,
  "tool": "search_tiktok_top",
  "credits_deducted": 2,
  "data": {
    "success": true,
    "items": [
      {
        "id": "1234567890123456789",
        "desc": "Example creator content",
        "content_type": "example",
        "create_time": "example",
        "desc_language": "en",
        "region": "US",
        "is_top": 1,
        "statistics": {
          "aweme_id": "1234567890123456789",
          "collect_count": 120,
          "comment_count": 120,
          "digg_count": 120,
          "download_count": 120,
          "forward_count": 120,
          "lose_comment_count": 120,
          "lose_count": 120,
          "play_count": 120,
          "repost_count": 120,
          "share_count": 120,
          "whatsapp_share_count": 120
        },
        "video": {
          "ai_dynamic_cover": {
            "data_size": 1,
            "height": 1920,
            "uri": "example",
            "url_list": [
              "https://example.com/sample"
            ],
            "url_prefix": null,
            "width": 1080
          },
          "ai_dynamic_cover_bak": {
            "data_size": 1,
            "height": 1920,
            "uri": "example",
            "url_list": [
              "https://example.com/sample"
            ],
            "url_prefix": null,
            "width": 1080
          },
          "big_thumbs": [],
          "bit_rate": [],
          "bit_rate_audio": [],
          "cdn_url_expired": 1,
          "cla_info": {
            "caption_infos": null,
            "captions_type": 1,
            "creator_edited_caption_id": 1,
            "enable_auto_caption": 1,
            "has_original_audio": 1,
            "hide_original_caption": false,
            "is_author_dubbing_qualified": false,
            "no_caption_reason": 1,
            "no_caption_reason_v2": 1,
            "vertical_positions": null
          },
          "cover": {
            "data_size": 1,
            "height": 1920,
            "uri": "example",
            "url_list": [
              "https://example.com/sample"
            ],
            "url_prefix": null,
            "width": 1080
          },
          "download_addr": {
            "height": 1920,
            "uri": "",
            "url_list": [],
            "url_prefix": null,
            "width": 1080
          },
          "duration": 30,
          "dynamic_cover": {
            "data_size": 1,
            "height": 1920,
            "uri": "example",
            "url_list": [
              "https://example.com/sample"
            ],
            "url_prefix": null,
            "width": 1080
          },
          "has_watermark": false,
          "height": 1920,
          "is_bytevc1": 1,
          "meta": "example",
          "origin_cover": {
            "data_size": 1,
            "height": 1920,
            "uri": "example",
            "url_list": [
              "https://example.com/sample"
            ],
            "url_prefix": null,
            "width": 1080
          },
          "play_addr": {
            "height": 1920,
            "uri": "https://example.com/sample",
            "url_key": "1234567890123456789",
            "url_list": [
              "https://example.com/sample"
            ],
            "url_prefix": null,
            "width": 1080
          },
          "ratio": "example",
          "tags": null,
          "width": 1080
        },
        "author": {
          "accept_private_policy": false,
          "account_labels": null,
          "ad_cover_url": null,
          "advance_feature_item_order": null,
          "advanced_feature_info": null,
          "authority_status": 1,
          "avatar_168x168": {
            "height": 1920,
            "uri": "example",
            "url_list": [
              "https://example.com/sample"
            ],
            "url_prefix": null,
            "width": 1080
          },
          "avatar_300x300": {
            "height": 1920,
            "uri": "example",
            "url_list": [
              "https://example.com/sample"
            ],
            "url_prefix": null,
            "width": 1080
          },
          "avatar_larger": {
            "height": 1920,
            "uri": "example",
            "url_list": [
              "https://example.com/sample"
            ],
            "url_prefix": null,
            "width": 1080
          },
          "avatar_medium": {
            "height": 1920,
            "uri": "example",
            "url_list": [
              "https://example.com/sample"
            ],
            "url_prefix": null,
            "width": 1080
          },
          "avatar_thumb": {
            "height": 1920,
            "uri": "example",
            "url_list": [
              "https://example.com/sample"
            ],
            "url_prefix": null,
            "width": 1080
          },
          "avatar_uri": "example",
          "aweme_count": 120,
          "bold_fields": null,
          "can_message_follow_status_list": [
            1
          ],
          "can_set_geofencing": null,
          "cha_list": null,
          "comment_setting": 1,
          "commerce_user_level": 1,
          "cover_url": null,
          "custom_verify": "",
          "cv_level": "",
          "download_prompt_ts": 1,
          "enabled_filter_all_comments": false,
          "enterprise_verify_reason": "",
          "events": null,
          "fb_expire_time": 1767225600,
          "follow_status": 1,
          "follower_count": 120,
          "follower_status": 1,
          "followers_detail": null,
          "following_count": 120,
          "friends_status": 1,
          "geofencing": null,
          "hide_search": false,
          "homepage_bottom_toast": null,
          "ins_id": "",
          "is_ad_fake": false,
          "is_block": false,
          "is_discipline_member": false,
          "is_mute": 1,
          "is_mute_lives": 1,
          "is_mute_non_story_post": 1,
          "is_mute_story": 1,
          "is_star": false,
          "item_list": null,
          "live_agreement": 1,
          "live_commerce": false,
          "live_verify": 1,
          "mention_status": 1,
          "mutual_relation_avatars": null,
          "name_field": "Example creator content",
          "need_points": null,
          "need_recommend": 1,
          "nickname": "Example creator content",
          "platform_sync_info": null,
          "prevent_download": false,
          "relative_users": null,
          "reply_with_video_flag": 1,
          "room_id": 1,
          "search_highlight": null,
          "search_user_desc": "Example creator content",
          "search_user_name": "Example creator content",
          "sec_uid": "example_id",
          "secret": 1,
          "shield_comment_notice": 1,
          "shield_digg_notice": 1,
          "shield_edit_field_info": null,
          "shield_follow_notice": 1,
          "short_id": "1234567890123456789",
          "show_image_bubble": false,
          "special_account": {
            "special_account_list": null
          },
          "special_lock": 1,
          "status": 1,
          "stitch_setting": 1,
          "story_status": 1,
          "total_favorited": 1,
          "type_label": null,
          "uid": "1234567890123456789",
          "unique_id": "example_id",
          "user_canceled": false,
          "user_mode": 1,
          "user_now_pack_info": {},
          "user_period": 1,
          "user_profile_guide": null,
          "user_rate": 1,
          "user_spark_info": {},
          "user_tags": null,
          "verification_type": 1,
          "verify_info": "",
          "video_icon": {
            "height": 1920,
            "uri": "",
            "url_list": [],
            "url_prefix": null,
            "width": 1080
          },
          "white_cover_url": null,
          "with_commerce_entry": false,
          "with_shop_entry": false
        },
        "images": [
          "https://media.example.com/sample.jpg"
        ],
        "music": {
          "author": "example",
          "duration": 30,
          "id": 1,
          "title": "Example creator content",
          "play_url": "https://media.example.com/sample.mp4",
          "matched_song": {
            "author": "example",
            "id": "1234567890123456789",
            "title": "Example creator content"
          }
        },
        "is_eligible_for_commission": false,
        "is_paid_partnership": false,
        "is_ad": false,
        "url": "https://example.com/sample",
        "shop_product_url": null
      }
    ],
    "cursor": 1
  }
}
```

## Errors

Handle non-2xx responses before mapping data. Error codes vary with the cause; these are representative examples. A 429 response may be plain text. Never treat a queued post as published or blindly retry a partial publication.

```json theme={null}
{
  "success": false,
  "error": "UNAUTHORIZED",
  "message": "Missing or invalid API key"
}
```

| HTTP status | Meaning |
| - | - |
| 400 | Invalid arguments |
| 401 | Missing or invalid API key |
| 402 | Insufficient Creator Insights plan credits |
| 403 | Subscription or permission required |
| 404 | Resource not found |
| 409 | Conflicting request, idempotency key, or unfinished upload |
| 410 | Managed media expired; upload the file again |
| 413 | Media too large |
| 415 | Unsupported media type |
| 422 | Account selection, connection, or platform payload needs attention |
| 500 | Authentication or server error |
| 503 | Service temporarily unavailable or operation failed; inspect saved status before retrying |
| 429 | Rate limit; inspect response headers and retry later. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.