aweme_idsstringbắt buộc
Video id, supports multiple video ids, separated by commas, no more than 50, single is also possible, no need for commas.
https://api.sandbase.ai/v1/api/douyin/app-v3/multi-video-statisticsGet play, like, share and download counts for up to 50 Douyin videos in one request by passing comma-separated video IDs.
[
{
"data": {
"status_code": 5,
"status_msg": "参数不合法"
}
}
]Chọn một ví dụ để nạp đầu vào và kết quả của nó vào playground.
Returns play, like, share and download counts for Douyin videos. Pass one or more video IDs in aweme_ids, separated by commas, up to 50 per request.
play_count or digg_count to find the top performers.curl -X POST "https://api.sandbase.ai/v1/api/douyin/app-v3/multi-video-statistics" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"aweme_ids": "7565738211130035491"}'
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 50, 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": "7565738211130035491",
"digg_count": 88106,
"download_count": 29,
"play_count": 2553057,
"share_count": 165
}
]
}
| Field | Meaning |
|---|---|
statistics_list | List of results, one object per video ID in the request. |
statistics_list[].aweme_id | ID of the Douyin video. Use it to match each result to the ID you sent. |
statistics_list[].play_count | Number of plays for the video. |
statistics_list[].digg_count | Number of likes (diggs) on the video. |
statistics_list[].share_count | Number of times the video was shared. |
statistics_list[].download_count | Number of times the video was downloaded. |
aweme_ids as one string with IDs separated by commas, for example 7565738211130035491,7565738211130035492. A single ID needs no comma.aweme_id, not by position.$0.025 per successful call. Failed calls are not charged.
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/multi-video-statistics" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"aweme_ids": "example"
}'Đặ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 50, 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": {
"status_code": 5,
"status_msg": "参数不合法"
}
}
]Khám phá thêm
| API | Giá | Phản hồi |
|---|---|---|
Douyin | $0.025 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/multi-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.025 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiệ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 (Batch) 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.