cell_idstringbắt buộc
AKA video id, can be obtained from the share link.
https://api.sandbase.ai/v1/api/pipixia/app/post-statisticsReturns engagement metrics and statistics for a single Pipixia post using its identifier. Includes figures such as likes, comments, and reposts.
[
{
"data": {
"data": {
"data": [
{
"author": {
"is_following": false
},
"bury_count": -1,
"bury_counts": [
{
"bury_count": -1,
"bury_type": 10
}
],
"bury_type": 10,
"comment_count": 1257,
"digg_counts": [
{
"digg_count": 16560,
"digg_type": 10
},
{
"digg_count": 1,
"digg_type": 20
}
],
"digg_type": 10,
"dubbing_count": 0,
"go_detail_count": 388259,
"impression_count": 7066460,
"is_bury": false,
"is_like": false,
"item_id": 7411193113223371000,
"item_id_str": "7411193113223371043",
"like_count": 16561,
"play_count": 5237798,
"reward_count": 290,
"share_count": 881,
"show_feature_bury": false,
"show_feature_digg": true,
"status": 0,
"view_count": 7086664,
"ward_info": {
"has_new": false,
"is_visible": false,
"is_ward": false,
"trend_messages": [],
"ward_comment_id": 0,
"ward_count": 118,
"ward_reply_id": 0,
"ward_users": [
{
"achievements": null,
"age": null,
"author_info": null,
"avatar": {
"download_list": [
{
"url": "https://p9-ppx.byteimg.com/img/tos-cn-i-0000/d24a32a7807943a0ad334b007aa0d662~tplv-ppx-logo.jpeg"
},
{
"url": "https://p3-ppx.byteimg.com/img/tos-cn-i-0000/d24a32a7807943a0ad334b007aa0d662~tplv-ppx-logo.jpeg"
}
],
"height": 200,
"is_gif": false,
"uri": "tos-cn-i-0000/d24a32a7807943a0ad334b007aa0d662",
"url_list": [
{
"url": "https://p9-ppx.byteimg.com/img/tos-cn-i-0000/d24a32a7807943a0ad334b007aa0d662~c5_200x200_q80.jpeg"
},
{
"url": "https://p3-ppx.byteimg.com/img/tos-cn-i-0000/d24a32a7807943a0ad334b007aa0d662~c5_200x200_q80.jpeg"
}
],
"width": 200
},
"broadcast_info": null,
"certify_info": null,
"commerce_permission_list": null,
"creative_level_info": null,
"decoration_list": null,
"description": "",
"followers_count": null,
"followings_count": null,
"gender": null,
"god_comment_count": null,
"hide_age": null,
"horoscope": null,
"id": 99027382669,
"id_str": "99027382669",
"interaction_limitation": null,
"is_followed": null,
"is_following": null,
"language": "zh",
"level": 0,
"like_count": null,
"live_auth": false,
"liveing_info": null,
"medal_info": null,
"name": "安若少年初入梦",
"profile_schema": "bds://user/profile?user_id=99027382669&page_index=1",
"punishments": null,
"recommend_reason": null,
"recommend_tag": null,
"region": "cn",
"status": null,
"vote_count": 0
},
{
"achievements": null,
"age": null,
"author_info": null,
"avatar": {
"download_list": [
{
"url": "https://p3-ppx.byteimg.com/img/tos-cn-i-0000/5ba8b552cf0343d79b52fc61962f0a5d~tplv-ppx-logo.jpeg"
},
{
"url": "https://p9-ppx.byteimg.com/img/tos-cn-i-0000/5ba8b552cf0343d79b52fc61962f0a5d~tplv-ppx-logo.jpeg"
}
],
"height": 200,
"is_gif": false,
"uri": "tos-cn-i-0000/5ba8b552cf0343d79b52fc61962f0a5d",
"url_list": [
{
"url": "https://p3-ppx.byteimg.com/img/tos-cn-i-0000/5ba8b552cf0343d79b52fc61962f0a5d~c5_200x200_q80.jpeg"
},
{
"url": "https://p9-ppx.byteimg.com/img/tos-cn-i-0000/5ba8b552cf0343d79b52fc61962f0a5d~c5_200x200_q80.jpeg"
}
],
"width": 200
},
"broadcast_info": null,
"certify_info": null,
"commerce_permission_list": null,
"creative_level_info": null,
"decoration_list": null,
"description": "",
"followers_count": null,
"followings_count": null,
"gender": null,
"god_comment_count": null,
"hide_age": null,
"horoscope": null,
"id": 99027454024,
"id_str": "99027454024",
"interaction_limitation": null,
"is_followed": null,
"is_following": null,
"language": "zh",
"level": 0,
"like_count": null,
"live_auth": false,
"liveing_info": null,
"medal_info": null,
"name": "我与孤独重归于好",
"profile_schema": "bds://user/profile?user_id=99027454024&page_index=1",
"punishments": null,
"recommend_reason": null,
"recommend_tag": null,
"region": "cn",
"status": null,
"vote_count": 0
},
{
"achievements": null,
"age": null,
"author_info": null,
"avatar": {
"download_list": [
{
"url": "https://p9-ppx.byteimg.com/img/tos-cn-i-0000/f1cf851d8fae4e8096b0bc63a2e5adaa~tplv-ppx-logo.jpeg"
},
{
"url": "https://p3-ppx.byteimg.com/img/tos-cn-i-0000/f1cf851d8fae4e8096b0bc63a2e5adaa~tplv-ppx-logo.jpeg"
}
],
"height": 200,
"is_gif": false,
"uri": "tos-cn-i-0000/f1cf851d8fae4e8096b0bc63a2e5adaa",
"url_list": [
{
"url": "https://p3-ppx.byteimg.com/img/tos-cn-i-0000/f1cf851d8fae4e8096b0bc63a2e5adaa~c5_200x200_q80.jpeg"
},
{
"url": "https://p9-ppx.byteimg.com/img/tos-cn-i-0000/f1cf851d8fae4e8096b0bc63a2e5adaa~c5_200x200_q80.jpeg"
}
],
"width": 200
},
"broadcast_info": null,
"certify_info": null,
"commerce_permission_list": null,
"creative_level_info": null,
"decoration_list": null,
"description": "",
"followers_count": null,
"followings_count": null,
"gender": null,
"god_comment_count": null,
"hide_age": null,
"horoscope": null,
"id": 99027629264,
"id_str": "99027629264",
"interaction_limitation": null,
"is_followed": null,
"is_following": null,
"language": "zh",
"level": 0,
"like_count": null,
"live_auth": false,
"liveing_info": null,
"medal_info": null,
"name": "阁下您的银时",
"profile_schema": "bds://user/profile?user_id=99027629264&page_index=1",
"punishments": null,
"recommend_reason": null,
"recommend_tag": null,
"region": "cn",
"status": null,
"vote_count": 0
}
]
}
}
]
},
"message": "success",
"prompt": "",
"status_code": 0,
"time": 1791290324760
}
}
]Chọn một ví dụ để nạp đầu vào và kết quả của nó vào playground.
Returns engagement counts for one Pipixia post, such as likes, comments, shares, plays and impressions. The only input is the post's cell_id, which is the video ID.
play_count with impression_count and go_detail_count to see how many viewers open the post.reward_count and ward_info.ward_count when you rank posts by audience support.curl -X POST "https://api.sandbase.ai/v1/api/pipixia/app/post-statistics" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"cell_id": "7411193113223371043"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
cell_id | string | Yes | AKA video id, can be obtained from the share link. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"data": [
{
"author": {
"is_following": false
},
"bury_count": -1,
"bury_counts": [
{
"bury_count": -1,
"bury_type": 10
}
],
"bury_type": 10,
"comment_count": 1257,
"digg_counts": [
{
"digg_count": 16560,
"digg_type": 10
}
],
"digg_type": 10,
"dubbing_count": 0,
"go_detail_count": 388260,
"impression_count": 7066460,
"is_bury": false,
"is_like": false
}
]
},
"message": "success",
"prompt": "",
"status_code": 0,
"time": 1793691713155
}
| Field | Meaning |
|---|---|
data.data[].item_id_str | The post ID as a string. It matches the cell_id you sent. Use this form to avoid rounding of the large number in item_id. |
data.data[].like_count | Total likes on the post. |
data.data[].comment_count | Number of comments on the post. |
data.data[].share_count | Number of times the post was shared. |
data.data[].play_count / view_count / impression_count | Counts of plays, views and impressions for the post. In the sample, impression_count is the largest and play_count is the smallest of the three. |
data.data[].go_detail_count | Count of times viewers went to the post's detail page. |
data.data[].reward_count | Number of rewards the post received. |
data.data[].digg_counts[] | Like counts split by type. Each row has a digg_count and a digg_type. In the sample, type 10 holds 16560 and type 20 holds 1. |
data.data[].ward_info.ward_count | Number of wards on the post. |
data.data[].ward_info.ward_users[].avatar.url_list[].url | Avatar image URLs of users listed in ward_users. |
cell_id from the post share link. It is the same as the video ID.bury_count returns -1 in the sample, which means no usable value was returned.data.data, so read the first item of the list.$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/pipixia/app/post-statistics" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"cell_id": "7411193113223371043"
}'Đặ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.
cell_idstringbắt buộcAKA video id, can be obtained from the share link.
Đâ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": {
"data": {
"data": [
{
"author": {
"is_following": false
},
"bury_count": -1,
"bury_counts": [
{
"bury_count": -1,
"bury_type": 10
}
],
"bury_type": 10,
"comment_count": 1257,
"digg_counts": [
{
"digg_count": 16560,
"digg_type": 10
},
{
"digg_count": 1,
"digg_type": 20
}
],
"digg_type": 10,
"dubbing_count": 0,
"go_detail_count": 388259,
"impression_count": 7066460,
"is_bury": false,
"is_like": false,
"item_id": 7411193113223371000,
"item_id_str": "7411193113223371043",
"like_count": 16561,
"play_count": 5237798,
"reward_count": 290,
"share_count": 881,
"show_feature_bury": false,
"show_feature_digg": true,
"status": 0,
"view_count": 7086664,
"ward_info": {
"has_new": false,
"is_visible": false,
"is_ward": false,
"trend_messages": [],
"ward_comment_id": 0,
"ward_count": 118,
"ward_reply_id": 0,
"ward_users": [
{
"achievements": null,
"age": null,
"author_info": null,
"avatar": {
"download_list": [
{
"url": "https://p9-ppx.byteimg.com/img/tos-cn-i-0000/d24a32a7807943a0ad334b007aa0d662~tplv-ppx-logo.jpeg"
},
{
"url": "https://p3-ppx.byteimg.com/img/tos-cn-i-0000/d24a32a7807943a0ad334b007aa0d662~tplv-ppx-logo.jpeg"
}
],
"height": 200,
"is_gif": false,
"uri": "tos-cn-i-0000/d24a32a7807943a0ad334b007aa0d662",
"url_list": [
{
"url": "https://p9-ppx.byteimg.com/img/tos-cn-i-0000/d24a32a7807943a0ad334b007aa0d662~c5_200x200_q80.jpeg"
},
{
"url": "https://p3-ppx.byteimg.com/img/tos-cn-i-0000/d24a32a7807943a0ad334b007aa0d662~c5_200x200_q80.jpeg"
}
],
"width": 200
},
"broadcast_info": null,
"certify_info": null,
"commerce_permission_list": null,
"creative_level_info": null,
"decoration_list": null,
"description": "",
"followers_count": null,
"followings_count": null,
"gender": null,
"god_comment_count": null,
"hide_age": null,
"horoscope": null,
"id": 99027382669,
"id_str": "99027382669",
"interaction_limitation": null,
"is_followed": null,
"is_following": null,
"language": "zh",
"level": 0,
"like_count": null,
"live_auth": false,
"liveing_info": null,
"medal_info": null,
"name": "安若少年初入梦",
"profile_schema": "bds://user/profile?user_id=99027382669&page_index=1",
"punishments": null,
"recommend_reason": null,
"recommend_tag": null,
"region": "cn",
"status": null,
"vote_count": 0
},
{
"achievements": null,
"age": null,
"author_info": null,
"avatar": {
"download_list": [
{
"url": "https://p3-ppx.byteimg.com/img/tos-cn-i-0000/5ba8b552cf0343d79b52fc61962f0a5d~tplv-ppx-logo.jpeg"
},
{
"url": "https://p9-ppx.byteimg.com/img/tos-cn-i-0000/5ba8b552cf0343d79b52fc61962f0a5d~tplv-ppx-logo.jpeg"
}
],
"height": 200,
"is_gif": false,
"uri": "tos-cn-i-0000/5ba8b552cf0343d79b52fc61962f0a5d",
"url_list": [
{
"url": "https://p3-ppx.byteimg.com/img/tos-cn-i-0000/5ba8b552cf0343d79b52fc61962f0a5d~c5_200x200_q80.jpeg"
},
{
"url": "https://p9-ppx.byteimg.com/img/tos-cn-i-0000/5ba8b552cf0343d79b52fc61962f0a5d~c5_200x200_q80.jpeg"
}
],
"width": 200
},
"broadcast_info": null,
"certify_info": null,
"commerce_permission_list": null,
"creative_level_info": null,
"decoration_list": null,
"description": "",
"followers_count": null,
"followings_count": null,
"gender": null,
"god_comment_count": null,
"hide_age": null,
"horoscope": null,
"id": 99027454024,
"id_str": "99027454024",
"interaction_limitation": null,
"is_followed": null,
"is_following": null,
"language": "zh",
"level": 0,
"like_count": null,
"live_auth": false,
"liveing_info": null,
"medal_info": null,
"name": "我与孤独重归于好",
"profile_schema": "bds://user/profile?user_id=99027454024&page_index=1",
"punishments": null,
"recommend_reason": null,
"recommend_tag": null,
"region": "cn",
"status": null,
"vote_count": 0
},
{
"achievements": null,
"age": null,
"author_info": null,
"avatar": {
"download_list": [
{
"url": "https://p9-ppx.byteimg.com/img/tos-cn-i-0000/f1cf851d8fae4e8096b0bc63a2e5adaa~tplv-ppx-logo.jpeg"
},
{
"url": "https://p3-ppx.byteimg.com/img/tos-cn-i-0000/f1cf851d8fae4e8096b0bc63a2e5adaa~tplv-ppx-logo.jpeg"
}
],
"height": 200,
"is_gif": false,
"uri": "tos-cn-i-0000/f1cf851d8fae4e8096b0bc63a2e5adaa",
"url_list": [
{
"url": "https://p3-ppx.byteimg.com/img/tos-cn-i-0000/f1cf851d8fae4e8096b0bc63a2e5adaa~c5_200x200_q80.jpeg"
},
{
"url": "https://p9-ppx.byteimg.com/img/tos-cn-i-0000/f1cf851d8fae4e8096b0bc63a2e5adaa~c5_200x200_q80.jpeg"
}
],
"width": 200
},
"broadcast_info": null,
"certify_info": null,
"commerce_permission_list": null,
"creative_level_info": null,
"decoration_list": null,
"description": "",
"followers_count": null,
"followings_count": null,
"gender": null,
"god_comment_count": null,
"hide_age": null,
"horoscope": null,
"id": 99027629264,
"id_str": "99027629264",
"interaction_limitation": null,
"is_followed": null,
"is_following": null,
"language": "zh",
"level": 0,
"like_count": null,
"live_auth": false,
"liveing_info": null,
"medal_info": null,
"name": "阁下您的银时",
"profile_schema": "bds://user/profile?user_id=99027629264&page_index=1",
"punishments": null,
"recommend_reason": null,
"recommend_tag": null,
"region": "cn",
"status": null,
"vote_count": 0
}
]
}
}
]
},
"message": "success",
"prompt": "",
"status_code": 0,
"time": 1791290324760
}
}
]Khám phá thêm
| API | Giá | Phản hồi |
|---|---|---|
Pipixia Post StatisticsAPI này Pipixia | $0.001 mỗi lần gọi | JSON |
Pipixia | $0.001 mỗi lần gọi | JSON |
Pipixia | $0.001 mỗi lần gọi | JSON |
Pipixia | $0.001 mỗi lần gọi | JSON |
Pipixia | $0.001 mỗi lần gọi | JSON |
Pipixia | $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/pipixia/app/post-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, đượ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: cell_id (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. Pipixia Post 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 Pipixia.