Sand AISand AI MAGI-2MAGI-2 現已登上 SandBase:支援原生音訊的 1080p 影片立即試用

Douyin Xingtu Batch Video Stats

API 文件
https://api.sandbase.ai/v1/api/douyin/xingtu-v2/multi-get-item-stats

Returns batch performance statistics and details for up to 20 videos, including play counts, engagement metrics, and watch durations.

價格
$0.04美元/次呼叫
方法
POST
回應
JSON
參數
1 個必填 · 2 個選填

Playground

輸入
Video (item) ID list, up to 20 per call (exceeding returns an error); auto de-dup
Whether to return cover URL, default true
Platform source, default 1
輸出範例
回應outputs · 5.1 KB · 93 行
[
  {
    "data": {
      "base_resp": {
        "status_code": 0,
        "status_message": ""
      },
      "items": [
        {
          "author_id": "2096083966377147",
          "cover_uri": "tos-cn-i-0813c000-ce/o8TxeAAapEEI7tPVC0FEwPDpAiA9LkAQIifKnu",
          "cover_url": "https://p26-star-fe-sign.byteimg.com/tos-cn-i-0813c000-ce/o8TxeAAapEEI7tPVC0FEwPDpAiA9LkAQIifKnu~tplv-9hvokabxw2-thumbnail.webp?rk3s=5ec46d44&x-expires=2105166295&x-signature=hAK7MBew4s67%2BUUrl%2BBTWTHT6Kk%3D",
          "create_time": "1770709994",
          "duration": 43.467,
          "id": "7605141504243990257",
          "stats": {
            "avg_watch_dura": "0",
            "comment_cnt": "546",
            "favorite_cnt": "148",
            "interact_rate": 0.0191,
            "like_cnt": "529",
            "share_cnt": "621",
            "watch_cnt": "88772"
          },
          "status": 102,
          "title": "那些你自以为冷门的院校,其实热度都比较高,报考难度远超你的想象。安徽单招这六所学校,今年一定要慎重报考。安徽交通职业技术学院,230分左右,学长学姐口碑加持,热度一路上涨。芜湖职业技术大学,260分,宠物医疗专业高分扎堆。铜陵职业技术学院,210分,咨询量暴涨,专业全覆盖几乎没有冷门。安徽新闻出版职业学院,220分,今年热度飙升,两百左右慎报。安徽第二医学院,260分,医药类院校分数一环套一环,绝对不低。安徽工业经济职业学院,220分,千万别当保底,热门专业竞争尤其激烈。想低分上岸公办,把你的分数打在评论区,我来帮你分析。#安徽单招 #单招 #高考 #教育 #高考",
          "topic_ids": [
            "1767586207449160",
            "1767586186090510",
            "1666292875985923",
            "… 1 more items in the full response"
          ],
          "url": "https://www.iesdouyin.com/share/video/7605141504243990257/?region=CN&mid=7533062627972876338&u_code=24dh3cm6d40d&did=MS4wLjABAAAANwkJuWIRFOzg5uCpDRpMj4OX-QryoDgn-yYlXQnRwQQ&iid=MS4wLjABAAAANwkJuWIRFOzg5uCpDRpMj4OX-QryoDgn-yYlXQnRwQQ&with_sec_did=1&video_share_track_ver=&titleType=title&share_sign=EiX31eL0N95ISq1ozhtI9kAH8kKEd80Eq_lvLNgGpy4-&share_version=260800&ts=1789806295&from_aid=1128&from_ssr=1&share_track_info=%7B%22link_description_type%22%3A%22%22%7D",
          "video_id": "v2700fgi0000d65e77nog65uch1hobig"
        },
        {
          "author_id": "7645971568649520165",
          "cover_uri": "tos-cn-i-0813c000-ce/okapXlAIIEdKKeAE8iqA3D9EmQicekAfwA3FE9",
          "cover_url": "https://p26-star-fe-sign.byteimg.com/tos-cn-i-0813c000-ce/okapXlAIIEdKKeAE8iqA3D9EmQicekAfwA3FE9~tplv-9hvokabxw2-thumbnail.webp?rk3s=5ec46d44&x-expires=2105166295&x-signature=r3zevsbl3zu3K7Ntb%2BpScBjrYBw%3D",
          "create_time": "1788528928",
          "duration": 1476.114,
          "id": "7681673254012674789",
          "stats": {
            "avg_watch_dura": "0",
            "comment_cnt": "1",
            "favorite_cnt": "19",
            "interact_rate": 0.02,
            "like_cnt": "25",
            "share_cnt": "8",
            "watch_cnt": "1695"
          },
          "status": 102,
          "title": "#安徽单招备考 #真题解析 #安徽单招试卷 2023年安徽普通高校分类考试招生和对口招生文化素质测试英语试题详细讲解",
          "topic_ids": [
            "1613210804315208",
            "1730330105234448",
            "1729627036724227"
          ],
          "url": "https://www.iesdouyin.com/share/video/7681673254012674789/?region=CN&mid=7681673211377519395&u_code=f3kf2dfdkm88hk&did=MS4wLjABAAAANwkJuWIRFOzg5uCpDRpMj4OX-QryoDgn-yYlXQnRwQQ&iid=MS4wLjABAAAANwkJuWIRFOzg5uCpDRpMj4OX-QryoDgn-yYlXQnRwQQ&with_sec_did=1&video_share_track_ver=&titleType=title&share_sign=vbZLWujrDnyZ48p.0SDtWHAQMZUGHoV08FrcQeC0bYM-&share_version=260800&ts=1789806295&from_aid=1128&from_ssr=1&share_track_info=%7B%22link_description_type%22%3A%22%22%7D",
          "video_id": "v1e00fgi0000dadch97og65oi1sl6vpg"
        },
        {
          "author_id": "7548277053888595004",
          "cover_uri": "tos-cn-i-0813c000-ce/os7JaAAc1CEBHK1tE0iiwLBRAVAeTOAIE8fUep",
          "cover_url": "https://p26-star-fe-sign.byteimg.com/tos-cn-i-0813c000-ce/os7JaAAc1CEBHK1tE0iiwLBRAVAeTOAIE8fUep~tplv-9hvokabxw2-thumbnail.webp?rk3s=5ec46d44&x-expires=2105166295&x-signature=k8oo4DPg3eYzuInuAw206%2FoDDsY%3D",
          "create_time": "1789732261",
          "duration": 2741.115,
          "id": "7686841529931612005",
          "stats": {
            "avg_watch_dura": "0",
            "comment_cnt": "26",
            "favorite_cnt": "856",
            "interact_rate": 0.0585,
            "like_cnt": "1148",
            "share_cnt": "522",
            "watch_cnt": "28944"
          },
          "status": 102,
          "title": "2026年安徽省普通高校分类考试招生和对口招生文化素质测试卷精细讲解#2026年安徽省普通高校分类考试招生和对口招生文化素质测试卷精细讲解 #数学 #高职单招 #职教高考 #单招小帅💫",
          "topic_ids": [
            "7565367114019407906",
            "1565460180830209",
            "1597639187883085",
            "… 1 more items in the full response"
          ],
          "url": "https://www.iesdouyin.com/share/video/7686841529931612005/?region=CN&mid=7686841735376358182&u_code=ema2jdh5gc90il&did=MS4wLjABAAAANwkJuWIRFOzg5uCpDRpMj4OX-QryoDgn-yYlXQnRwQQ&iid=MS4wLjABAAAANwkJuWIRFOzg5uCpDRpMj4OX-QryoDgn-yYlXQnRwQQ&with_sec_did=1&video_share_track_ver=&titleType=title&share_sign=U5kIAtZPt_Gm8AgosYWpydaa.0W3QieJ2MkOtkQwffo-&share_version=260800&ts=1789806295&from_aid=1128&from_ssr=1&share_track_info=%7B%22link_description_type%22%3A%22%22%7D",
          "video_id": "v1e00fgi0000dami3qfog65tpoijimf0"
        },
        "… 12 more items in the full response"
      ]
    }
  }
]

範例

選擇一個範例,將其輸入與結果載入 playground。

API README

Douyin Xingtu Batch Video Stats API

Retrieves detailed metrics and engagement statistics for multiple videos using item_ids. Supports optional cover image URLs via need_cover_url and source filtering via platform_source.

Use cases

  • Track performance statistics across multiple Douyin videos simultaneously.
  • Analyze viewer interaction rates and average watch durations for video content.
  • Retrieve video details and thumbnail cover links in batch requests.

Request

curl -X POST "https://api.sandbase.ai/v1/api/douyin/xingtu-v2/multi-get-item-stats" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"item_ids": "<item_ids>"}'

Parameters

NameTypeRequiredDescription
item_idsarrayYesVideo (item) ID list, up to 20 per call (exceeding returns an error); auto de-dup
need_cover_urlbooleanNoWhether to return cover URL, default true
platform_sourceintegerNoPlatform source, default 1

Notes

  • Accepts up to 20 IDs in item_ids per call with automatic deduplication; exceeding this limit returns an error.
  • need_cover_url defaults to true.
  • platform_source defaults to 1.

Pricing

Flat price per call. Failed calls, including lookups whose target does not exist, are not charged.

探索更多

相關 APIs

所有 APIs
API價格回應
Douyin每次呼叫 $0.04JSON
Douyin每次呼叫 $0.002JSON
Douyin每次呼叫 $0.002JSON
Douyin每次呼叫 $0.01JSON
Douyin每次呼叫 $0.003JSON
Douyin每次呼叫 $0.001JSON

指南:Best Douyin API in 2026: Pricing Compared

問題

常見問題

我要如何使用 Douyin Xingtu Batch Video Stats API?

使用 POST 請求將您的 SandBase API 金鑰放在 Authorization 標頭(Bearer)中,並以 JSON 主體傳入參數,即可呼叫 https://api.sandbase.ai/v1/api/douyin/xingtu-v2/multi-get-item-stats。您也可以直接在本頁的 Playground 試用,不必撰寫程式碼。

Douyin Xingtu Batch Video Stats API 的費用是多少?

每次 $0.04,並從您的 SandBase 餘額中扣款。您只會為實際發出的呼叫付費;沒有訂閱方案。

Douyin Xingtu Batch Video Stats API 接受哪些參數?

必要:item_ids (array)。 選填:need_cover_url (boolean) 和 platform_source (integer)。 本頁的 Parameters 表格與 Playground 會列出每個欄位。

Douyin Xingtu Batch Video Stats API 會回傳什麼?

在同一個 HTTP 請求中回傳的 JSON 回應(同步)。

我需要 Douyin 開發者帳號或 API 金鑰嗎?

不需要。Douyin Xingtu Batch Video Stats 是透過 SandBase 運作,因此一組 SandBase API 金鑰即可使用此端點以及目錄中的其他所有 API 和模型。您不需要另外申請 Douyin API 存取權。