Douyin-Web-API

批量获取作品播放量/Batch get the play counts of videos

Changed on

[中文]

用途:

  • 批量获取作品的公开播放量,无需 Cookie,单个作品失败不影响其他结果。

参数:

  • aweme_ids: 作品id列表,用逗号分隔,例如: "123,456,789",最多20个,重复id会去重。

返回:

  • total / success_count / failed_count: 总数 / 成功数量 / 失败数量
  • videos: 作品列表,每项包含:
    • aweme_id: 作品id
    • success: 是否成功;为 false 时包含 error,可稍后重试
    • is_available: 是否可获取播放量;作品不存在、已删除、私密,以及图文、实况作品均为 false
    • play_count: 播放量(is_available 为 false 时为 0)
    • digg_count: 点赞数
    • publish_time: 发布时间戳(秒)

[English]

Purpose:

  • Batch get the public play counts of videos, no Cookie required. A failed video does not affect the others.

Parameters:

  • aweme_ids: Comma-separated video ids, e.g. "123,456,789", up to 20; duplicates are removed.

Return:

  • total / success_count / failed_count: Total / succeeded / failed
  • videos: List of results, each with:
    • aweme_id: Video id
    • success: Whether it succeeded; when false an error is included and it can be retried later
    • is_available: Whether a play count is available; false for missing, deleted or private posts and for image / live-photo posts
    • play_count: Play count (0 when is_available is false)
    • digg_count: Like count
    • publish_time: Publish timestamp in seconds

[示例/Example]

aweme_ids = "7512756548356492544,7695699449444816817"

get/api/v1/douyin/web/fetch_multi_video_play_count

Request

  • Base URL
    https://api.tikhub.io (the document declares no server; this is the origin it was published from)
  • Auth
    HTTP bearer

Query parameters

aweme_idsstring required

作品id列表,逗号分隔,最多20个/Comma-separated video ids, up to 20

Response

Successful Response

codeinteger

HTTP status code | HTTP状态码

request_idstring nullable

Unique request identifier | 唯一请求标识符

messagestring

Response message (EN-US) | 响应消息 (English)

message_zhstring

Response message (ZH-CN) | 响应消息 (中文)

supportstring

Support message | 支持消息

timestring

The time the response was generated | 生成响应的时间

time_stampinteger

The timestamp the response was generated | 生成响应的时间戳

time_zonestring

The timezone of the response time | 响应时间的时区

docsstring nullable

Link to the API Swagger documentation for this endpoint | 此端点的 API Swagger 文档链接

cache_messagestring nullable

Cache message (EN-US) | 缓存消息 (English)

cache_message_zhstring nullable

Cache message (ZH-CN) | 缓存消息 (中文)

cache_urlstring nullable

The URL to access the cached result | 访问缓存结果的 URL

routerstring

The endpoint that generated this response | 生成此响应的端点

paramsunknown
dataunknown

Changes