item_idstring필수
Video (item) ID
https://api.sandbase.ai/v1/api/douyin/xingtu-v2/item-play-countGet the play count (watch_cnt) of a Douyin video from XingTu, plus video details such as author, cover, duration and publish time.
[
{
"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
}
}
]예시를 선택하면 입력값과 결과가 플레이그라운드에 로드됩니다.
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.
like_cnt, share_cnt and comment_cnt against watch_cnt to judge how well a video engages viewers.item.author_id.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.
| Name | Type | Required | Description |
|---|---|---|---|
item_id | string | Yes | Video (item) ID |
need_cover_url | boolean | No | Whether to return cover URL, default true |
platform_source | integer | No | Platform source, default 1 |
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
}
| Field | Meaning |
|---|---|
watch_cnt | Play count of the video as a number. The same value also appears as a string in stats.watch_cnt. |
exist | Whether 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_cnt | Counts of likes, comments, favorites and shares. They come back as strings. |
stats.interact_rate | Interaction rate of the video as a decimal number, for example 0.0155. |
stats.avg_watch_dura | Average watch duration. The sample value is "0", and the unit is not shown in the response. |
item.title | Video caption text. |
item.author_id | ID of the creator who posted the video. |
item.create_time | Publish time as a Unix timestamp in seconds, returned as a string. |
item.duration | Video length. The sample value is 28.234. |
item.cover_url | Link to the video cover image. It is a signed URL with an x-expires parameter. |
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.stats object and watch_cnt are also at the top level, so you can read the play count without opening item.$0.002 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
빌드를 시작하세요
통합 인증 및 사용량 추적이 있는 플랫폼 API 엔드포인트입니다.
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",
"need_cover_url": true,
"platform_source": 1
}'서버 환경에 SandBase API 키를 설정하세요. 요청에는 Bearer 인증이 사용됩니다.
export SANDBASE_API_KEY="YOUR_API_KEY"키는 서버에 보관하세요. 브라우저 코드에 노출하지 마세요.
item_idstring필수Video (item) ID
need_cover_urlbooleanWhether to return cover URL, default true
기본값: true
platform_sourceintegerPlatform source, default 1
기본값: 1
이 API의 저장된 예시 응답입니다. 확인할 때 라이브 요청은 실행되지 않습니다.
[
{
"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
}
}
]더 살펴보기
| 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 키를 넣고, 매개변수를 JSON 본문으로 담아 https://api.sandbase.ai/v1/api/douyin/xingtu-v2/item-play-count에 POST 요청을 보내세요. 이 페이지의 Playground에서도 코드를 작성하지 않고 직접 테스트할 수 있습니다.
호출당 $0.002, SandBase 잔액에서 청구됩니다. 사용한 호출에 대해서만 요금이 부과되며, 구독은 없습니다.
필수: item_id (string). 선택: need_cover_url (boolean) 및 platform_source (integer). 이 페이지의 Parameters 표와 Playground에 모든 필드가 나와 있습니다.
같은 HTTP 요청에서 반환되는 JSON 응답입니다(동기식). 이 페이지의 README에 샘플 응답이 포함되어 있습니다.
아니요. Douyin Video Play Count은 SandBase를 통해 실행되므로, SandBase API 키 하나로 이 엔드포인트와 카탈로그의 다른 모든 API 및 모델을 사용할 수 있습니다. Douyin API 액세스를 별도로 신청할 필요는 없습니다.