# Douyin Video Search (V1) API

> Search Douyin videos by keyword: descriptions, authors and play, like, comment and share counts, with sort, publish-time, duration and content-type filters.

Source: https://www.sandbase.ai/apis/douyin/search/video-search-v1
API reference: https://www.sandbase.ai/apis/douyin/search/video-search-v1/docs

## Facts

- Provider: Douyin
- Type: Data API
- Endpoint: `POST https://api.sandbase.ai/v1/api/douyin/search/video-search-v1`
- Price: $0.01 per call
- Free allowance: 100 calls per organization per UTC day, shared across eligible APIs
- Capabilities: api, douyin
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

`POST https://api.sandbase.ai/v1/api/douyin/search/video-search-v1` with `Authorization: Bearer $SANDBASE_API_KEY` and the parameters as a JSON body.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `backtrace` | string | no |  |
| `content_type` | string | no |  |
| `cursor` | integer | no |  |
| `filter_duration` | string | no |  |
| `keyword` | string | no |  |
| `publish_time` | string | no |  |
| `search_id` | string | no |  |
| `sort_type` | string | no |  |

## FAQ

### How do I use the Douyin Video Search (V1) API?

Send a POST request to https://api.sandbase.ai/v1/api/douyin/search/video-search-v1 with your SandBase API key in the Authorization header (Bearer) and the parameters as a JSON body. You can also try it in the Playground on this page without writing code.

### How much does the Douyin Video Search (V1) API cost?

$0.01 per call. Every organization gets 100 free calls per UTC day, shared across eligible SandBase APIs including this one; after that each call is billed at this price from your SandBase balance. There is no subscription.

### What parameters does the Douyin Video Search (V1) API accept?

No parameters are required. Optional: backtrace (string), content_type (string), cursor (integer), filter_duration (string), keyword (string) and publish_time (string) and 2 more. The Parameters table and the Playground on this page list every field.

### What does the Douyin Video Search (V1) API return?

A JSON response returned in the same HTTP request (synchronous). The README on this page includes a sample response.

### Do I need a Douyin developer account or API key?

No. Douyin Video Search (V1) runs through SandBase, so one SandBase API key covers this endpoint and every other API and model in the catalog. You do not need to apply for Douyin API access separately.

## README

### Douyin Video Search API (V1)

Search Douyin's video results for a keyword, with the same filters as the app.

#### Use cases

- Find videos about a product or topic.
- Discover creators for campaigns.
- Track video volume for a keyword.

#### Request

```bash
curl -X POST "https://api.sandbase.ai/v1/api/douyin/search/video-search-v1" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"keyword": "猫咪"}'
```

#### Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `cursor` | integer | No | Pagination cursor (0 for the first page, use the last response cursor for subsequent pages) |
| `keyword` | string | No | Search keyword, e.g., "Artificial Intelligence" |
| `backtrace` | string | No | Backtrace identifier used for pagination(obtained from the last response) |
| `search_id` | string | No | Search ID used for pagination(obtained from the last response) |
| `sort_type` | string | No | Sorting method |
| `content_type` | string | No | Content type filter |
| `publish_time` | string | No | Publish time filter |
| `filter_duration` | string | No | Video duration filter |

#### Example response

Real response for the request above, trimmed to the main fields. User names and long IDs are masked.

```json
{
  "cursor": 10,
  "has_more": 1,
  "search_id": "<search_id>",
  "data": [
    {
      "type": 1,
      "aweme_info": {
        "aweme_id": "7626222853277534707",
        "create_time": 1775618376,
        "desc": "据说这是猫咪无法抗拒的声音！你家猫听到会有什么反应？快试了来告诉我～  #猫咪男高音 #蓝金渐层#…",
        "author": {
          "nickname": "<user>",
          "sec_uid": "<sec_uid>"
        },
        "statistics": {
          "play_count": 0,
          "digg_count": 62040,
          "comment_count": 3678,
          "share_count": 21334,
          "collect_count": 12233
        }
      }
    }
  ]
}
```

#### Notes

- For the next page, pass back `cursor`, `search_id` and `backtrace`.

#### Related APIs

- [Douyin General Search](/model/douyin/search/general-search-v1): Search Douyin (Chinese TikTok) from the app's general search tab and get videos with descriptions, authors and play, like, comment and share counts.
- [Douyin Search Suggestions](/model/douyin/search/search-suggest): Get Douyin search autocomplete suggestions for a keyword: the related queries users see while typing in the Douyin app.
- [Douyin Video Search](/model/douyin/search/video-search-v2): Search Douyin videos by keyword and get descriptions, authors and play, like, comment and share counts.
