# TikTok video search

TikTok video search: inspect inputs, post fields, pagination and limits, then run a local simulated request.

Canonical page: https://datanavoapi.com/en/apis/tiktok/videos/search/

This is a local simulation. Program-generated samples are not live platform data and do not establish provider availability.

## What this capability does

TikTok video search uses /v1/tiktok/videos/search; GET returns data.items with post objects.

This is a local simulation. Program-generated samples are not live platform data and do not establish provider availability.

- Capability: tiktok.videos.search
- Pagination: use the signed cursor from the response and request each page explicitly.

## Input contract

Inspect meanings, examples and conditional rules for the selected method. view and fields control the response without changing the TEST unit price.

- Only send fields defined for this method; unknown fields are rejected before execution.

| Method | Field | Type | Requirement | Meaning | Enum or bound | Example |

| --- | --- | --- | --- | --- | --- | --- |

| GET | query | string | Required | Search terms | — | "space station" |

| GET | sort | string | Optional / conditional | By relevance, by likes, or newest first | ["relevance","popular","latest"] | — |

| GET | published_within | string | Optional / conditional | Only videos posted within this period | ["day","week","month","half_year"] | — |

| GET | cursor | string | Optional / conditional | The `next_cursor` of the previous page. A new page is a new call. | — | — |

| GET | view | string | Optional / conditional | How much of each item: compact (the most used fields, long text cut short), standard, or full (adds `ext`). | ["compact","standard","full"] | — |

| GET | fields | array | Optional / conditional | Return only these fields of each item, by path (`author.name`). | maxItems: 64 | — |

## Try it locally

Use demo to inspect the fields, then explicitly select simulated with a customer test key to exercise settlement. Never put a customer key in a URL.

```json
{
  "capability": "tiktok.videos.search",
  "method": "GET",
  "params": {
    "query": "space station"
  }
}
```

- [Open this capability in the console](https://datanavoapi.com/console/?mode=demo&capability=tiktok.videos.search&method=GET&params=%7B%22query%22%3A%22space+station%22%2C%22sort%22%3A%22relevance%22%7D)

## Output fields and interpretation

The post object permits missing or null values; do not replace missing measurements with zero. This table shows the main structure; the object reference covers nested fields.

| Field | Type | Meaning | Source scope |

| --- | --- | --- | --- |

| id | string \| null | ID; pass it unchanged to the get endpoint | TikTok |

| url | string \| null | Link that opens the post | TikTok |

| type | string \| null | Content format | TikTok |

| title | string \| null | Title | TikTok |

| text | string \| null | Body text | TikTok |

| lang | string \| null | Language of the text (standard view and up) | TikTok |

| published_at | string \| null | When it was published | TikTok |

| author | object \| null | Author | TikTok |

| author.id | string \| null | Author's account ID | TikTok |

| author.username | string \| null | Author's handle | TikTok |

| author.name | string \| null | Author's display name | TikTok |

| author.avatar_url | string \| null | Author's avatar (standard view and up) | TikTok |

| author.verified | boolean \| null | Whether the author is verified (standard view and up) | TikTok |

| author.followers | integer \| null | Author's follower count (standard view and up) | TikTok |

| metrics | object \| null | Engagement counts | TikTok |

| metrics.likes | integer \| null | Likes | TikTok |

| metrics.comments | integer \| null | Comments | TikTok |

| metrics.shares | integer \| null | Shares | TikTok |

| metrics.favorites | integer \| null | Saves | TikTok |

| metrics.views | integer \| null | Views | TikTok |

| metrics.reposts | integer \| null | Reposts | TikTok |

| images | array \| null | Image addresses (standard view and up) | TikTok |

| hashtags | array \| null | Hashtags, without the # (standard view and up) | TikTok |

| mentions | array \| null | Accounts mentioned in the text (standard view and up) | TikTok |

| mentions[].id | string \| null | Account ID (standard view and up) | TikTok |

| mentions[].username | string \| null | Handle (standard view and up) | TikTok |

| mentions[].name | string \| null | Display name (standard view and up) | TikTok |

| is_pinned | boolean \| null | Whether the author pinned it (standard view and up) | TikTok |

| post_id | string \| null | ID of the thread's root post when this is a reply; otherwise null | TikTok |

| parent_id | string \| null | ID of the item it replies to directly; otherwise null | TikTok |

| root_id | string \| null | ID of the first-level reply its thread hangs under | TikTok |

| approximate | array \| null | Which numbers of this item are approximate or lower bounds; absent when all are exact | TikTok |

| approximate[].field | string \| null | Path of the field, such as metrics.views | TikTok |

| approximate[].kind | string \| null | Approximate, or a lower bound | TikTok |

| ext | object | The platform's own fields (full view). | TikTok |

| ext.duration | number \| null | Length of the video, in seconds (full view) | TikTok |

| ext.cover_url | string \| null | Address of the cover image (full view) | TikTok |

| ext.video_url | string \| null | Address the video plays from: a signed address of the platform's that expires, so use it soon; an image post has none (full view) | TikTok |

| ext.collaborators | array \| null | Handles of the co-authors of a collab post other than the one who posted it; an empty list for a post that is not a collab. Brands often collaborate this way, but a collab by itself does not say the post is paid for (full view) | TikTok |

- [Complete object reference](https://datanavoapi.com/en/docs/objects/post/)

## Unavailable fields

These published contract notes describe the capability boundary; fixtures do not establish live availability.

| Field | Reason |

| --- | --- |

| title | platform |

| images | capability |

| author.verified | capability |

| metrics.reposts | capability |

| mentions.username | capability |

| mentions.name | capability |

| post_id | platform |

| parent_id | platform |

| root_id | platform |

| is_pinned | capability |

## Limits and checks

A successful request does not establish full coverage. Preserve the request ID, observation time, parameters and cursor, and inspect the returned items before analysis.

Local simulation uses TEST credits only. Real provider calls, real payments and external email are disabled. Historical reference-site prices are not DataNavoAPI prices.

- Verify media URLs, counts and optional fields individually.

## Related pages

- [TikTok APIs](https://datanavoapi.com/en/apis/tiktok/)
- [TikTok MCP](https://datanavoapi.com/en/mcp/tiktok/)
- [Post fields](https://datanavoapi.com/en/docs/objects/post/)
- [How do I choose data sources for a sentiment workflow?](https://datanavoapi.com/en/answers/bettafish-data-source/)
- [How can ChatGPT access TikTok content?](https://datanavoapi.com/en/answers/can-chatgpt-read-tiktok/)
- [How can public social data support research?](https://datanavoapi.com/en/answers/chinese-social-media-alternative-data/)
- [How do I prepare social data for a Doubao workflow?](https://datanavoapi.com/en/answers/doubao-social-media-data/)

[中文](https://datanavoapi.com/apis/tiktok/videos/search/)
