o_author_idstring必須
Creator ID
https://api.sandbase.ai/v1/api/douyin/xingtu-v2/author-spread-videosGet Author Spread Videos on Douyin. Returns the platform data as structured JSON.
出力はここに表示されます
入力を完了してから[実行]をクリックしてください。
Returns a list of a Douyin creator's spread videos, with title, duration, publish time and engagement stats for each video. It needs the creator ID in o_author_id. platform_source and platform_channel both default to 1 (Douyin, short video).
interact_rate to find the content that drew the most engagement.curl -X POST "https://api.sandbase.ai/v1/api/douyin/xingtu-v2/author-spread-videos" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"o_author_id": "7112600044674482187", "platform_source": 1, "platform_channel": 1}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
o_author_id | string | Yes | Creator ID |
platform_channel | integer | No | Platform channel, 1 for short video |
platform_source | integer | No | Platform source, 1 for Douyin |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"base_resp": {
"status_code": 0,
"status_message": ""
},
"spread_videos": [
{
"author_id": "78050876812",
"cover_uri": "tos-cn-i-0813c001/oYABexOFAf75I3BBLPADUIQGUAnG1ApEsve2jt",
"create_time": "1735039831",
"duration": 272.044,
"id": "7451907165419359488",
"stats": {
"avg_watch_dura": "0",
"comment_cnt": "22784",
"favorite_cnt": "55867",
"interact_rate": 0.0319,
"like_cnt": "567682",
"share_cnt": "378214",
"watch_cnt": "30308258"
},
"title": "头皮发麻#美妆 #好物分享 #化妆日常",
"url": "https://www.iesdouyin.com/share/video/7451907165419359488/?region=CN&mid=7451907…",
"video_id": "v0300fg10000ctl7nkfog65pgevhdio0"
}
]
}
| Field | Meaning |
|---|---|
spread_videos[].id | ID of the video. |
spread_videos[].video_id | Second video identifier, a string that starts with v0300. |
spread_videos[].title | Video caption, including its hashtags. |
spread_videos[].create_time | Publish time as a Unix timestamp in seconds, returned as a string. |
spread_videos[].duration | Length of the video. The values (for example 272.044) look like seconds. |
spread_videos[].stats.watch_cnt | Number of views the video has. |
spread_videos[].stats.like_cnt / spread_videos[].stats.comment_cnt / spread_videos[].stats.share_cnt / spread_videos[].stats.favorite_cnt | Counts of likes, comments, shares and favorites. They come back as strings. |
spread_videos[].stats.interact_rate | Interaction rate of the video as a decimal number, for example 0.0319. |
spread_videos[].url | Share link to the video on Douyin. |
spread_videos[].author_id | ID of the author the video belongs to. |
o_author_id is the creator ID used by Xingtu. If you only have a Douyin ID, look it up with Douyin XingTu kolId by Douyin ID.author_id inside each video (for example 78050876812) differs from the o_author_id you send in the request.avg_watch_dura was "0" for every video in this response, so do not rely on it.$0.002 per successful call. Failed calls are not charged.
開発を始める
統一認証と使用状況の追跡を備えたプラットフォームAPIエンドポイントです。
curl -X POST "https://api.sandbase.ai/v1/api/douyin/xingtu-v2/author-spread-videos" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"o_author_id": "7112600044674482187",
"platform_source": 1,
"platform_channel": 1
}'SandBaseのAPIキーをサーバー環境に設定してください。リクエストはBearer認証を使用します。
export SANDBASE_API_KEY="YOUR_API_KEY"キーはサーバー側で管理してください。ブラウザコードに公開しないでください。
o_author_idstring必須Creator ID
platform_sourceintegerPlatform source, 1 for Douyin
デフォルト: 1
platform_channelintegerPlatform channel, 1 for short video
デフォルト: 1
このAPIの保存済みサンプルレスポンスです。表示時にライブリクエストは行われません。
保存済みレスポンスはまだ公開されていません。PlaygroundでAPIを実行し、レスポンスを確認してください。
さらに探索
| API | 価格 | レスポンス |
|---|---|---|
Douyin | $0.002 / 回 | JSON |
Douyin | $0.002 / 回 | JSON |
Douyin | $0.002 / 回 | JSON |
Douyin | $0.01 / 回 | JSON |
Douyin | $0.003 / 回 | JSON |
Douyin | $0.001 / 回 | JSON |
質問
Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/douyin/xingtu-v2/author-spread-videos に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。
1回あたり $0.002、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。
必須: o_author_id (string)。 任意: platform_source (integer) と platform_channel (integer)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。
同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。
いいえ。Douyin Author Spread Videos は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。Douyin の API アクセスを別途申請する必要はありません。