oAuthorIdstring必須
Xingtu author ID
https://api.sandbase.ai/v1/api/douyin/xingtu/author-homepage-videos-v1Get Author Homepage Videos V1 on Douyin. Returns the platform data as structured JSON.
出力はここに表示されます
入力を完了してから[実行]をクリックしてください。
Returns a page of videos from a Douyin author's Xingtu homepage, with title, engagement counts, and rates for each video. It needs the Xingtu author ID in oAuthorId.
finish_rate and interact_rate across an author's videos to find the content that holds attention best.pagination.videoType to check how each type performs.curl -X POST "https://api.sandbase.ai/v1/api/douyin/xingtu/author-homepage-videos-v1" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"oAuthorId": "7386881810501730341", "page": 1, "videoType": "ALL", "onlyAssign": false}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
oAuthorId | string | Yes | Xingtu author ID |
onlyAssign | boolean | No | Only return assigned videos |
page | integer | No | Page number, starts from 1, 20 items per page |
videoType | string | No | PERSONAL/XINGTU / Traffic type: ALL/PERSONAL/XINGTU |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"base_resp": {
"status_code": 0,
"status_message": ""
},
"items": [
{
"comment_cnt": "2376",
"content_theme_labels": [],
"cover_uri": "tos-cn-i-0813c000-ce/oUKnEYF9AgQvhS5dJADAIyue7CVg7FDBAeECfU",
"create_time": "1792928944",
"duration": 761.334,
"finish_rate": 0.116147,
"interact_rate": 0.063783,
"item_id": "7700571178000135673",
"like_cnt": "234612",
"title": "在大量的聊天中发现了少量的化妆技巧 #vlog #宝妈 #发疯文学 #精神状态 #化妆",
"url": "https://www.iesdouyin.com/share/video/7700571178000135673/?region=CN&mid=7700571…",
"video_id": "v2800fgi0000dbeumffog65m66333310"
}
],
"pagination": {
"has_more": true,
"limit": 20,
"page": 1,
"total_count": 55
}
}
| Field | Meaning |
|---|---|
items[].item_id / items[].video_id | Identifiers for the video. item_id is a numeric string that also appears in the share url. video_id is a separate string ID. |
items[].title | Video caption, including its hashtags. |
items[].create_time | Creation time of the video as a Unix timestamp in seconds, returned as a string. |
items[].duration | Length of the video. The values look like seconds (for example 761.334). |
items[].watch_cnt / items[].like_cnt / items[].comment_cnt | View, like and comment counts for the video. They are returned as strings. |
items[].finish_rate / items[].interact_rate | Completion rate and interaction rate for the video, as decimals (for example 0.116147). |
items[].url | Share link to the video on Douyin. |
items[].cover_uri | Path of the video cover image. content_theme_labels lists theme labels and can be empty. |
pagination.page / pagination.limit | Current page number and the number of items per page. |
pagination.has_more / pagination.total_count | has_more shows whether another page exists. total_count is the total number of videos for this query. |
page while pagination.has_more is true.videoType accepts ALL, PERSONAL or XINGTU. Set onlyAssign to true to return only assigned videos.$0.02 per successful call. Failed calls are not charged.
開発を始める
統一認証と使用状況の追跡を備えたプラットフォームAPIエンドポイントです。
curl -X POST "https://api.sandbase.ai/v1/api/douyin/xingtu/author-homepage-videos-v1" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"page": 1,
"oAuthorId": "7386881810501730341",
"videoType": "ALL",
"onlyAssign": false
}'SandBaseのAPIキーをサーバー環境に設定してください。リクエストはBearer認証を使用します。
export SANDBASE_API_KEY="YOUR_API_KEY"キーはサーバー側で管理してください。ブラウザコードに公開しないでください。
oAuthorIdstring必須Xingtu author ID
pageintegerPage number, starts from 1, 20 items per page
デフォルト: 1
videoTypestringPERSONAL/XINGTU / Traffic type: ALL/PERSONAL/XINGTU
デフォルト: "ALL"
onlyAssignbooleanOnly return assigned videos
デフォルト: false
このAPIの保存済みサンプルレスポンスです。表示時にライブリクエストは行われません。
保存済みレスポンスはまだ公開されていません。PlaygroundでAPIを実行し、レスポンスを確認してください。
さらに探索
| API | 価格 | レスポンス |
|---|---|---|
Douyin | $0.02 / 回 | JSON |
Douyin | $0.02 / 回 | JSON |
Douyin | $0.02 / 回 | JSON |
Douyin | $0.02 / 回 | JSON |
Douyin | $0.02 / 回 | JSON |
Douyin | $0.02 / 回 | JSON |
質問
Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/douyin/xingtu/author-homepage-videos-v1 に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。
1回あたり $0.02、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。
必須: oAuthorId (string)。 任意: page (integer), videoType (string) と onlyAssign (boolean)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。
同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。
いいえ。Douyin Author Homepage Videos V1 は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。Douyin の API アクセスを別途申請する必要はありません。