objectIdstringจำเป็น
WeChat Channels video object id used to fetch downloadable media links.
https://api.sandbase.ai/v1/api/wechat-channels/video-download-urlGet a downloadable media URL for a WeChat Channels video by object ID and optional nonce ID. Use it to download or play media from a known Channels video.
เอาต์พุตของคุณจะแสดงที่นี่
กรอกอินพุตให้ครบ แล้วคลิก Run
Returns a download URL for a WeChat Channels video, plus cover and thumbnail URLs and basic post details such as title, author name, and engagement counts. It needs the video objectId, and accepts an optional objectNonceId.
download_url.curl -X POST "https://api.sandbase.ai/v1/api/wechat-channels/video-download-url" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"objectId": "14941130915890399732"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
objectId | string | Yes | WeChat Channels video object id used to fetch downloadable media links. |
objectNonceId | string | No | Optional WeChat Channels object nonce id. Supplying it can improve media lookup accuracy. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"comment_count": 97,
"cover_url": "https://finder.video.qq.com/251/20304/stodownload?encfilekey=KGDRibp2wkicK7MMrxH…",
"download_url": "http://47.117.133.51:30015/media/weixin-channels/download/bddf15ad0c5646a99ff86e…",
"fav_count": 13502,
"file_size": 2018860,
"forward_count": 614382,
"like_count": 9158,
"media_type": 4,
"nickname": "人民日报",
"object_id": "14941130915890399732",
"object_nonce_id": "13119916…",
"publish_time": "2026-06-11 04:00:01"
}
| Field | Meaning |
|---|---|
download_url | Link to the video media file. The URL carries a signature query parameter. |
cover_url / thumb_url | Image links for the video cover and its thumbnail. |
title | Caption text of the video, including any hashtags. |
nickname | Display name of the account that posted the video. |
publish_time | Publish time as a YYYY-MM-DD HH:MM:SS string. |
like_count / fav_count / forward_count / comment_count | Engagement counts for the video: likes, favorites, forwards, and comments. |
file_size | Size of the media file. The response does not state the unit. |
video_play_len | Play length of the video. The value 15 is the only hint, and the response does not state the unit. |
object_id / object_nonce_id | The video's object ID and nonce ID. You can reuse them in other Channels calls. |
media_type | Numeric media type code. The response shows 4 for this video and does not explain the code. |
objectId is the only required input. Add objectNonceId when you have it, since it can improve media lookup.object_nonce_id (for example 13119916371223643581_0_146_0_0), which you can pass as objectNonceId in later calls.objectId first, call WeChat Channels Video Search or WeChat Channels Account Videos.$0.042857 per successful call. Failed calls are not charged.
เริ่มสร้าง
เอ็นด์พอยต์ของ Platform API ที่มีการยืนยันตัวตนและการติดตามการใช้งานแบบรวมศูนย์
curl -X POST "https://api.sandbase.ai/v1/api/wechat-channels/video-download-url" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"objectId": "14941130915890399732"
}'ตั้งค่า SandBase API key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์
objectIdstringจำเป็นWeChat Channels video object id used to fetch downloadable media links.
objectNonceIdstringOptional WeChat Channels object nonce id. Supplying it can improve media lookup accuracy.
บันทึกตัวอย่างการตอบกลับสำหรับ API นี้; จะไม่มีการส่งคำขอจริงเมื่อเปิดดู
ยังไม่มีการเผยแพร่การตอบกลับที่บันทึกไว้ ให้รัน API ใน Playground เพื่อดูการตอบกลับ
สำรวจเพิ่มเติม
| API | ราคา | การตอบกลับ |
|---|---|---|
WeChat Channels | $0.042857 ต่อการเรียก | JSON |
WeChat Channels | $0.071429 ต่อการเรียก | JSON |
WeChat Channels | $0.021429 ต่อการเรียก | JSON |
WeChat Channels | $0.071429 ต่อการเรียก | JSON |
WeChat Channels | $0.114286 ต่อการเรียก | JSON |
WeChat Channels | $0.01 ต่อการเรียก | JSON |
คำถาม
ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/wechat-channels/video-download-url โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
$0.042857 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน
ที่ต้องระบุ: objectId (string). ตัวเลือก: objectNonceId (string). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์
การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ
ไม่จำเป็น WeChat Channels Video Download URL ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง WeChat Channels API แยกต่างหาก