cell_idstringbắt buộc
AKA video id, can be obtained from the share link.
https://api.sandbase.ai/v1/api/pipixia/app/increase-post-view-countRegisters an increment for a Pipixia post view count using the specified cell ID. Returns a status code along with a response timestamp.
Đầu ra của bạn sẽ xuất hiện ở đây
Hoàn tất đầu vào, rồi nhấp Run.
This API registers one view count increment on a Pipixia post. It needs the post's cell_id and returns a status code, a message, and a response timestamp. The data object in the response is empty.
cell_id.status_code value to confirm that a view increment request was accepted.curl -X POST "https://api.sandbase.ai/v1/api/pipixia/app/increase-post-view-count" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"cell_id": "7411241327297299263"}'
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. |
cell_type | integer | No | Video type, 1 for video, keep the default value for other types. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {},
"message": "success",
"prompt": "",
"status_code": 0,
"time": 1793691711611
}
| Field | Meaning |
|---|---|
status_code | Result code of the call. 0 means the request succeeded. |
message | Short text result. The value is success when the call worked. |
time | Response timestamp as a number. The value looks like a Unix time in milliseconds. |
data | Payload object. It is empty in this response, so the call returns no post data. |
prompt | Extra text field. It is an empty string in this response. |
cell_id from the Pipixia post share link. It is the same as the video ID. Use Pipixia Short URL Conversion to resolve a short link.cell_type to 1 for a video. Leave it out for other post types.$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/increase-post-view-count" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"cell_id": "7411241327297299263"
}'Đặ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.
cell_typeintegerVideo type, 1 for video, keep the default value for other types.
Đâ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.
Chưa có phản hồi đã lưu nào được công bố. Chạy API trong Playground để xem phản hồi.
Khám phá thêm
| API | Giá | Phản hồi |
|---|---|---|
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/increase-post-view-count 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). Tùy chọn: cell_type (integer). 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 View Count Increment 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.