v2Namestring必填
WeChat Channels account unique id, usually ending with @finder.
https://api.sandbase.ai/v1/api/wechat-channels/account-videosGet a paginated WeChat Channels account feed by v2Name with continuation-buffer support. Use it to browse videos and other feed entries published by a known creator account.
您的輸出會顯示在這裡
完成輸入後,點擊執行。
Returns one page of a WeChat Channels account feed, plus the account profile. It needs the account's v2Name and, for later pages, the last_buffer value from the previous response.
object_id and export_id values to feed into video detail, comment or download lookups.curl -X POST "https://api.sandbase.ai/v1/api/wechat-channels/account-videos" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"v2Name": "v2_060000231003b20faec8c7e48d1dc6d5c802e83db0770775bb566d2b495e6aae711d6d56bd04@finder"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
v2Name | string | Yes | WeChat Channels account unique id, usually ending with @finder. |
last_buffer | string | No | Pagination buffer returned by the previous WeChat Channels account videos response. Leave it empty for the first page. For this POST endpoint, send it in an application/x-www-form-urlencoded form body. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"anchor_stat": {
"recent_live_count": 0,
"total_live_count": 0
},
"contact": {
"additional_flag": "1",
"bind_info": [],
"cover_img_url": "http://mmsns.qpic.cn/mmsns/aXUpZVUYfjzXyNIQ6sVE3W3YFkDoWicHoyoticEJ2x1Ny5I0v5gjY…",
"ext_flag": 2097152,
"follow_flag": 0,
"head_url": "https://wx.qlogo.cn/finderhead/ver_1/cYjfLLvyawMia46XlTZvhpGlrG51EzMk4Atg5MZY1St…",
"live_cover_img_url": "",
"live_info": {
"anchor_status_flag": "2048",
"ktv_live_cover_imgs": [],
"live_cover_imgs": [],
"lottery_setting": {},
"mic_setting": {
"setting_flag": 0,
"setting_switch_flag": 4
},
"replay_setting": {
"can_use_intelligently_gen_replay_highlight": true
},
"source_type": 0,
"switch_flag": 4607,
"voice_live_cover_imgs": []
},
"live_status": 2,
"menu": [],
"nickname": "人工智能",
"original_entrance_flag": 1
},
"continue_flag": 1,
"feeds_count": 80,
"ip_region_info": {
"region_text": "湖北"
},
"last_buffer": "EAEYADAAOM/MhJCn65cDQIDog+SHiPoCSOKRzPz9qZKSyAFI5pDw1aSsod3HAUjHkfze4rCjiMcBSLSx…",
"live_duration_hours": 0,
"mcn_info": {},
"object": [
{
"comment_count": 5,
"cover_url": "https://finder.video.qq.com/251/20304/stodownload?encfilekey=oibeqyX228riaCwo9ST…",
"decode_key": "926853272",
"download_url": "https://finder.video.qq.com/251/20302/stodownload?encfilekey=Cvvj5Ix3eez3Y79Sxtv…",
"export_id": "export/UzFfAgtgekIEAQAAAAAAwp0tv-W0sgAAAAstQy6ubaLX4KHWvLEZgBPEtqI8Qm1FSPeLzNPgM…",
"fav_count": 20,
"file_size": 25854106,
"forward_count": 25,
"like_count": 15,
"live_info": {},
"media_type": "视频",
"object_id": "14421732514149370082"
}
],
"original_count": 3,
"req_p": "192.168.130.85:2020, 192.168.1.122:8090"
}
| Field | Meaning |
|---|---|
object[] | The feed entries on this page. Each item is one video. |
object[].title | Caption text of the video, including hashtags. |
object[].publish_time | Publish time of the video as a YYYY-MM-DD HH:MM:SS string. |
object[].like_count / comment_count / fav_count / forward_count | Engagement counts for the video. |
object[].video_play_len | Length of the video. The response does not state the unit. |
object[].object_id / export_id / object_nonce_id | Identifiers for the video. Use them with other video lookups. |
object[].cover_url / thumb_url / download_url / openurl | Links to the cover image, thumbnail, media file and the preview page of the video. |
contact.nickname / contact.signature / contact.head_url | Account display name, bio text and avatar link. |
continue_flag | 1 in this response, which shows more pages are available. Use it with last_buffer to decide whether to keep paging. |
feeds_count / original_count | Counts reported for the account. feeds_count was 80 and original_count was 3 in this response. |
last_buffer value from the response as the last_buffer parameter to get the next page. Leave it empty for the first page.last_buffer parameter goes in an application/x-www-form-urlencoded form body for this POST endpoint.v2Name usually ends with @finder. It is also returned as contact.username.$0.071429 per successful call. Failed calls are not charged.
開始建置
具備統一驗證與用量追蹤的平台 API 端點。
curl -X POST "https://api.sandbase.ai/v1/api/wechat-channels/account-videos" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"v2Name": "v2_060000231003b20faec8c7e48d1dc6d5c802e83db0770775bb566d2b495e6aae711d6d56bd04@finder"
}'請將您的 SandBase API 金鑰設定在伺服器環境中。請求使用 Bearer 驗證。
export SANDBASE_API_KEY="YOUR_API_KEY"請將金鑰保留在伺服器端,不要在瀏覽器程式碼中公開。
v2Namestring必填WeChat Channels account unique id, usually ending with @finder.
last_bufferstringPagination buffer returned by the previous WeChat Channels account videos response. Leave it empty for the first page. For this POST endpoint, send it in an application/x-www-form-urlencoded form body.
這是此 API 的已儲存範例回應;檢視時不會發出即時請求。
尚未發布已儲存回應。請在 Playground 中執行 API 以檢視其回應。
探索更多
| API | 價格 | 回應 |
|---|---|---|
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 |
WeChat Channels | 每次呼叫 $0.01 | JSON |
問題
使用 POST 請求將您的 SandBase API 金鑰放在 Authorization 標頭(Bearer)中,並以 JSON 主體傳入參數,即可呼叫 https://api.sandbase.ai/v1/api/wechat-channels/account-videos。您也可以直接在本頁的 Playground 試用,不必撰寫程式碼。
每次 $0.071429,並從您的 SandBase 餘額中扣款。您只會為實際發出的呼叫付費;沒有訂閱方案。
必要:v2Name (string)。 選填:last_buffer (string)。 本頁的 Parameters 表格與 Playground 會列出每個欄位。
在同一個 HTTP 請求中回傳的 JSON 回應(同步)。 本頁的 README 包含範例回應。
不需要。WeChat Channels Account Videos 是透過 SandBase 運作,因此一組 SandBase API 金鑰即可使用此端點以及目錄中的其他所有 API 和模型。您不需要另外申請 WeChat Channels API 存取權。