querystring必須
Search keyword (required), e.g. "food"
https://api.sandbase.ai/v1/api/douyin/index/item-querySearch Douyin Index videos by keyword with filters for post date, duration, category, and label type. Returns video metadata and performance metrics.
[
{
"data": {
"data": []
}
}
]例を選択すると、その入力と結果がプレイグラウンドに読み込まれます。
Searches Douyin Index videos by keyword and returns a list of matching videos with creator name, follower count, like count, duration, post time and a video link. It needs one input, query. Optional filters narrow results by post date, duration, category and quality tag.
美食 and open each one through its url.isLowFansButHot next to fans.index or likes to see which posts perform best.duration_type and compare the results.curl -X POST "https://api.sandbase.ai/v1/api/douyin/index/item-query" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"query": "美食"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
query | string | Yes | Search keyword (required), e.g. "food" |
category_id | string | No | Category ID (string), default "0"=all |
date_type | integer | No | Publish date filter, default 0=any |
duration_type | integer | No | Duration filter, default 0=any |
label_type | integer | No | Video type (quality tag), default 0=any |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": [
{
"avatarUrl": "https://p3-byteindex-sign.byteimg.com/aweme-avatar/tos-cn-i-0813c000-ce_osD7MQgO…",
"createTime": "2026-10-30 23:34:15",
"duration": 72,
"fans": 13248,
"index": "657817",
"isHighFansRiseRate": 0,
"isHighLikeRate": 1,
"isHighPlayOverRate": 0,
"isLowFansButHot": 1,
"itemId": "7702484601909857590",
"likes": "226165",
"nickname": "明食记"
}
]
}
| Field | Meaning |
|---|---|
data[].itemId | ID of the video, as a string. It is the last part of the video url. |
data[].title | Video caption, including its hashtags. |
data[].url | Link to the video page on Douyin. |
data[].nickname / data[].avatarUrl | Display name and avatar image link of the creator. |
data[].fans | Follower count of the creator, as a number. |
data[].likes | Like count of the video. It comes back as a string. |
data[].index | Index score of the video for this search, as a string. Higher values appear for videos that do better. |
data[].duration | Length of the video. Values like 72 and 274 suggest seconds, but the response does not state the unit. |
data[].createTime | Post time of the video, in YYYY-MM-DD HH:MM:SS format. |
data[].isHighLikeRate / data[].isHighFansRiseRate / data[].isHighPlayOverRate / data[].isLowFansButHot | Flags set to 1 when the video carries that tag, and 0 when it does not. The names describe a high like rate, high follower growth, high play completion, and a hot video from a low-follower account. |
date_type, label_type and duration_type at 0 and category_id at "0" for an unfiltered search. Pass category_id as a string.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
開発を始める
統一認証と使用状況の追跡を備えたプラットフォームAPIエンドポイントです。
curl -X POST "https://api.sandbase.ai/v1/api/douyin/index/item-query" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "sandbase",
"date_type": 0,
"label_type": 0,
"category_id": "0",
"duration_type": 0
}'SandBaseのAPIキーをサーバー環境に設定してください。リクエストはBearer認証を使用します。
export SANDBASE_API_KEY="YOUR_API_KEY"キーはサーバー側で管理してください。ブラウザコードに公開しないでください。
querystring必須Search keyword (required), e.g. "food"
category_idstringCategory ID (string), default "0"=all
デフォルト: "0"
date_typeintegerPublish date filter, default 0=any
デフォルト: 0
duration_typeintegerDuration filter, default 0=any
デフォルト: 0
label_typeintegerVideo type (quality tag), default 0=any
デフォルト: 0
このAPIの保存済みサンプルレスポンスです。表示時にライブリクエストは行われません。
[
{
"data": {
"data": []
}
}
]さらに探索
| API | 価格 | レスポンス |
|---|---|---|
Douyin | $0.001 / 回 | JSON |
Douyin | $0.001 / 回 | JSON |
Douyin | $0.001 / 回 | JSON |
Douyin | $0.001 / 回 | JSON |
Douyin | $0.001 / 回 | JSON |
Douyin | $0.001 / 回 | JSON |
質問
Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/douyin/index/item-query に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。
1回あたり $0.001。各組織には UTC 日ごとに 100 回の無料呼び出しが付与され、この API を含む対象の SandBase API 全体で共有されます。それ以降は、各呼び出しが SandBase 残高からこの料金で課金されます。サブスクリプションはありません。
必須: query (string)。 任意: category_id (string), date_type (integer), duration_type (integer) と label_type (integer)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。
同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。
いいえ。Douyin Index Video Search は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。Douyin の API アクセスを別途申請する必要はありません。