cell_idstringจำเป็น
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.
เอาต์พุตของคุณจะแสดงที่นี่
กรอกอินพุตให้ครบ แล้วคลิก 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.
เริ่มสร้าง
เอ็นด์พอยต์ของ Platform API ที่มีการยืนยันตัวตนและการติดตามการใช้งานแบบรวมศูนย์
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"
}'ตั้งค่า SandBase API key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์
cell_idstringจำเป็นAKA video id, can be obtained from the share link.
cell_typeintegerVideo type, 1 for video, keep the default value for other types.
บันทึกตัวอย่างการตอบกลับสำหรับ API นี้; จะไม่มีการส่งคำขอจริงเมื่อเปิดดู
ยังไม่มีการเผยแพร่การตอบกลับที่บันทึกไว้ ให้รัน API ใน Playground เพื่อดูการตอบกลับ
สำรวจเพิ่มเติม
| API | ราคา | การตอบกลับ |
|---|---|---|
Pipixia | $0.001 ต่อการเรียก | JSON |
Pipixia | $0.001 ต่อการเรียก | JSON |
Pipixia | $0.001 ต่อการเรียก | JSON |
Pipixia | $0.001 ต่อการเรียก | JSON |
Pipixia | $0.001 ต่อการเรียก | JSON |
Pipixia | $0.001 ต่อการเรียก | JSON |
คำถาม
ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/pipixia/app/increase-post-view-count โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
$0.001 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน
ที่ต้องระบุ: cell_id (string). ตัวเลือก: cell_type (integer). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์
การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ
ไม่จำเป็น Pipixia Post View Count Increment ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Pipixia API แยกต่างหาก