Sand AISand AI MAGI-2MAGI-2 现已上线 SandBase:支持原生音频的 1080p 视频立即试用

Douyin Video Play Count

API 文档
https://api.sandbase.ai/v1/api/douyin/xingtu-v2/item-play-count

Get the play count (watch_cnt) of a Douyin video from XingTu, plus video details such as author, cover, duration and publish time.

价格
$0.002美元 / 次调用
方法
POST
响应
JSON
参数
1 个必填 · 2 个可选

Playground

输入
Video (item) ID
Whether to return cover URL, default true
Platform source, default 1
输出示例
响应outputs · 1.7 KB · 40 行
[
  {
    "data": {
      "exist": true,
      "item": {
        "author_id": "78050876812",
        "cover_uri": "tos-cn-i-0813c001/okH4NI7QDNMW1CqOgEf3AZAAbF1cApAAr229eG",
        "cover_url": "https://p3-star-fe-sign.byteimg.com/tos-cn-i-0813c001/okH4NI7QDNMW1CqOgEf3AZAAbF1cApAAr229eG~tplv-9hvokabxw2-thumbnail.webp?rk3s=5ec46d44&x-expires=2102579308&x-signature=zOiUpoAGH9Yx8DCJ7u%2Bvj%2Bh%2F9t8%3D",
        "create_time": "1776506300",
        "duration": 28.234,
        "id": "7630036460159111515",
        "stats": {
          "avg_watch_dura": "0",
          "comment_cnt": "860",
          "favorite_cnt": "12980",
          "interact_rate": 0.0157,
          "like_cnt": "141916",
          "share_cnt": "52350",
          "watch_cnt": "12422085"
        },
        "status": 102,
        "title": "哈哈哈哈哈哈哈哈哈  我还以为真不怕痛呢 哈哈哈哈哈哈哈哈",
        "topic_ids": [],
        "url": "https://www.iesdouyin.com/share/video/7630036460159111515/?region=CN&mid=7630036389983603510&u_code=ml5dbid3&did=MS4wLjABAAAANwkJuWIRFOzg5uCpDRpMj4OX-QryoDgn-yYlXQnRwQQ&iid=MS4wLjABAAAANwkJuWIRFOzg5uCpDRpMj4OX-QryoDgn-yYlXQnRwQQ&with_sec_did=1&video_share_track_ver=&titleType=title&share_sign=rvQEuRC_JC8L3NjxKnzoyiKZAcgB_eWZRaZb3HoT1fY-&share_version=260800&ts=1787217323&from_aid=1128&from_ssr=1&share_track_info=%7B%22link_description_type%22%3A%22%22%7D",
        "video_id": "v0d00fg10000d7hlb0vog65k07cn1neg"
      },
      "item_id": "7630036460159111515",
      "stats": {
        "avg_watch_dura": "0",
        "comment_cnt": "860",
        "favorite_cnt": "12980",
        "interact_rate": 0.0157,
        "like_cnt": "141916",
        "share_cnt": "52350",
        "watch_cnt": "12422085"
      },
      "watch_cnt": 12422085
    }
  }
]

示例

选择一个示例,将其输入和结果加载到 playground 中。

API README

Douyin Video Play Count API

Returns the play count (watch_cnt) of a Douyin video, plus video details such as author ID, title, cover URL, duration, publish time and engagement stats. It needs the video ID in item_id.

Use cases

  • Check the play count of a sponsored Douyin video for campaign reports.
  • Compare like_cnt, share_cnt and comment_cnt against watch_cnt to judge how well a video engages viewers.
  • Pull the cover image and title of a video to show it in a dashboard.
  • Link a video back to its creator through item.author_id.

Request

curl -X POST "https://api.sandbase.ai/v1/api/douyin/xingtu-v2/item-play-count" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"item_id": "7630036460159111515"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
item_idstringYesVideo (item) ID
need_cover_urlbooleanNoWhether to return cover URL, default true
platform_sourceintegerNoPlatform source, default 1

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "exist": true,
  "item": {
    "author_id": "78050876812",
    "cover_uri": "tos-cn-i-0813c001/okH4NI7QDNMW1CqOgEf3AZAAbF1cApAAr229eG",
    "cover_url": "https://p26-star-fe-sign.byteimg.com/tos-cn-i-0813c001/okH4NI7QDNMW1CqOgEf3AZAAb…",
    "create_time": "1776506300",
    "duration": 28.234,
    "id": "7630036460159111515",
    "stats": {
      "avg_watch_dura": "0",
      "comment_cnt": "905",
      "favorite_cnt": "13473",
      "interact_rate": 0.0155,
      "like_cnt": "143631",
      "share_cnt": "52842",
      "watch_cnt": "12706869"
    },
    "status": 102,
    "title": "哈哈哈哈哈哈哈哈哈  我还以为真不怕痛呢 哈哈哈哈哈哈哈哈",
    "topic_ids": [],
    "url": "https://www.iesdouyin.com/share/video/7630036460159111515/?region=CN&mid=7630036…",
    "video_id": "v0d00fg10000d7hlb0vog65k07cn1neg"
  },
  "item_id": "7630036460159111515",
  "stats": {
    "avg_watch_dura": "0",
    "comment_cnt": "905",
    "favorite_cnt": "13473",
    "interact_rate": 0.0155,
    "like_cnt": "143631",
    "share_cnt": "52842",
    "watch_cnt": "12706869"
  },
  "watch_cnt": 12706869
}

Response fields

FieldMeaning
watch_cntPlay count of the video as a number. The same value also appears as a string in stats.watch_cnt.
existWhether the video was found. A true value means the video data is filled in.
stats.like_cnt / stats.comment_cnt / stats.favorite_cnt / stats.share_cntCounts of likes, comments, favorites and shares. They come back as strings.
stats.interact_rateInteraction rate of the video as a decimal number, for example 0.0155.
stats.avg_watch_duraAverage watch duration. The sample value is "0", and the unit is not shown in the response.
item.titleVideo caption text.
item.author_idID of the creator who posted the video.
item.create_timePublish time as a Unix timestamp in seconds, returned as a string.
item.durationVideo length. The sample value is 28.234.
item.cover_urlLink to the video cover image. It is a signed URL with an x-expires parameter.

Notes

  • item_id is the numeric Douyin video ID, which also appears in the item.url share link.
  • need_cover_url defaults to true. Set it to false if you do not need item.cover_url.
  • The stats object and watch_cnt are also at the top level, so you can read the play count without opening item.
  • To get stats for many videos in one call, use Douyin Xingtu Batch Video Stats. For creator details, call Douyin Xingtu Author Base Info with the author ID.

Pricing

$0.002 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

探索更多

相关 APIs

全部 APIs
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

指南:Best Douyin API in 2026: Pricing Compared

问题

常见问题

如何使用 Douyin Video Play Count API?

向 https://api.sandbase.ai/v1/api/douyin/xingtu-v2/item-play-count 发送 POST 请求,在 Authorization 请求头中使用您的 SandBase API key(Bearer),并将参数作为 JSON 请求体传入。您也可以直接在本页的 Playground 中试用,无需编写代码。

Douyin Video Play Count API 的价格是多少?

每次调用 $0.002,从您的 SandBase 余额中扣费。您只需为实际调用付费;无需订阅。

Douyin Video Play Count API 接受哪些参数?

必填:item_id (string)。 可选:need_cover_url (boolean) 和 platform_source (integer)。 Parameters 表和本页的 Playground 列出了每个字段。

Douyin Video Play Count API 返回什么?

在同一个 HTTP 请求中返回的 JSON 响应(同步)。 本页的 README 包含一个示例响应。

我需要 Douyin 开发者账户或 API key 吗?

不需要。Douyin Video Play Count 通过 SandBase 运行,因此一个 SandBase API key 即可覆盖此端点以及目录中的其他所有 API 和模型。您无需单独申请 Douyin API 访问权限。