aweme_idsstringbắt buộc
Video id, supports multiple video ids, separated by commas, no more than 2, single is also possible, no need for commas.
https://api.sandbase.ai/v1/api/douyin/app-v3/video-statisticsReturns statistical metrics including like counts, play counts, and share counts for specified Douyin videos by ID.
[
{
"data": {
"statistics_list": [
{
"aweme_id": "7448118827402972455",
"digg_count": 4557,
"play_count": 239527,
"share_count": 69
},
{
"aweme_id": "7126745726494821640",
"digg_count": 36465,
"download_count": 4515,
"play_count": 1222995,
"share_count": 8493
}
]
}
}
]Chọn một ví dụ để nạp đầu vào và kết quả của nó vào playground.
Returns like, play and share counts for one or two Douyin videos. You pass the video IDs in aweme_ids, separated by a comma.
share_count to see how often a video was shared.download_count on videos that report it.curl -X POST "https://api.sandbase.ai/v1/api/douyin/app-v3/video-statistics" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"aweme_ids": "7448118827402972455,7126745726494821640"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
aweme_ids | string | Yes | Video id, supports multiple video ids, separated by commas, no more than 2, single is also possible, no need for commas. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"statistics_list": [
{
"aweme_id": "7448118827402972455",
"digg_count": 4553,
"play_count": 239913,
"share_count": 69
}
]
}
| Field | Meaning |
|---|---|
statistics_list[] | One entry per video ID you sent. |
statistics_list[].aweme_id | The ID of the video these counts belong to. Use it to match each entry to your input. |
statistics_list[].digg_count | Number of likes on the video. |
statistics_list[].play_count | Number of plays on the video. |
statistics_list[].share_count | Number of shares of the video. |
statistics_list[].download_count | Number of downloads of the video. It appears only for some videos, so the first video in the example does not have it. |
aweme_ids. For one video, send the ID without a comma.aweme_id values are long numeric strings. Keep them as strings.download_count can be missing from an entry, so check for it before you read it.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Bắt đầu xây dựng
Endpoint API của nền tảng với xác thực và theo dõi mức sử dụng thống nhất.
curl -X POST "https://api.sandbase.ai/v1/api/douyin/app-v3/video-statistics" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"aweme_ids": "7448118827402972455,7126745726494821640"
}'Đặt SandBase API key của bạn trong môi trường máy chủ. Các request sử dụng xác thực Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Giữ key của bạn trên máy chủ. Không hiển thị trong mã chạy trên trình duyệt.
aweme_idsstringbắt buộcVideo id, supports multiple video ids, separated by commas, no more than 2, single is also possible, no need for commas.
Đây là phản hồi ví dụ đã lưu cho API này; không có request thực nào được gửi khi xem mục này.
[
{
"data": {
"statistics_list": [
{
"aweme_id": "7448118827402972455",
"digg_count": 4557,
"play_count": 239527,
"share_count": 69
},
{
"aweme_id": "7126745726494821640",
"digg_count": 36465,
"download_count": 4515,
"play_count": 1222995,
"share_count": 8493
}
]
}
}
]Khám phá thêm
| API | Giá | Phản hồi |
|---|---|---|
Douyin Video StatisticsAPI này Douyin | $0.001 mỗi lần gọi | JSON |
Douyin | $0.001 mỗi lần gọi | JSON |
Douyin | $0.001 mỗi lần gọi | JSON |
Douyin | $0.001 mỗi lần gọi | JSON |
Douyin | $0.001 mỗi lần gọi | JSON |
Douyin | $0.001 mỗi lần gọi | JSON |
Câu hỏi
Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/douyin/app-v3/video-statistics với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.
$0.001 mỗi lần gọi. Mỗi tổ chức được 100 lần gọi miễn phí mỗi ngày UTC, dùng chung cho các API SandBase đủ điều kiện, bao gồm API này; sau đó mỗi lần gọi sẽ được tính theo mức giá này từ số dư SandBase của bạn. Không có gói đăng ký.
Bắt buộc: aweme_ids (string). Bảng Parameters và Playground trên trang này liệt kê mọi trường.
Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.
Không. Douyin Video Statistics chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của Douyin.