Get the videos on a WeChat Channels account's homepage with descriptions, publish time, like, comment, share and favorite counts, and media download info, with cursor pagination.
Giá
$0.01USD / lượt gọi
Phương thức
POST
Phản hồi
JSON
Tham số
1 bắt buộc · 2 tùy chọn
Phòng thử nghiệm
Đầu vào
WeChat Channels finder username (`v2_…@finder` format), e.g. `v2_060000231003b20faec8c6e4811dc1d4c602ee30b0771bbcf220c67926bb76ab7702ac335a53@finder` (People's Daily). See `fetch_channel_info` / `fetch_video_detail` / `fetch_channel_id_to_username` docs for how to obtain it.
Optional pagination cursor (base64). **Leave empty for the first page**; when `up_continue` in the response is truthy, pass the previous page's `last_buffer` to get the next page. (base64 contains `+//=` characters, hence body instead of query.)
Optional, default True. True=raw response; False=simplified parsed structure (recommended for media download).
Chọn một ví dụ để nạp đầu vào và kết quả của nó vào playground.
README API
WeChat Channels User Videos API
Returns the videos on a WeChat Channels account's homepage, with descriptions, publish time, engagement counts and media download info. It needs the account's finder username (v2_…@finder format).
Use cases
Track new posts from a news outlet or brand account on WeChat Channels.
Compare likes, comments, shares and favorites across an account's recent videos.
Collect media.full_url and media.decode_key values to archive videos.
Page through an account's full video history with the last_buffer cursor.
WeChat Channels finder username (v2_…@finder format), e.g. v2_060000231003b20faec8c6e4811dc1d4c602ee30b0771bbcf220c67926bb76ab7702ac335a53@finder (People's Daily). See fetch_channel_info / fetch_video_detail / `f
last_buffer
string
No
Optional pagination cursor (base64). Leave empty for the first page; when up_continue in the response is truthy, pass the previous page's last_buffer to get the next page. (base64 contains +//= characters, henc
raw
boolean
No
Optional, default True. True=raw response; False=simplified parsed structure (recommended for media download).
Example response
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
Đặ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.
Biến môi trường cho API key
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.
3. Tham số
usernamestringbắt buộc
WeChat Channels finder username (`v2_…@finder` format), e.g. `v2_060000231003b20faec8c6e4811dc1d4c602ee30b0771bbcf220c67926bb76ab7702ac335a53@finder` (People's Daily). See `fetch_channel_info` / `fetch_video_detail` / `fetch_channel_id_to_username` docs for how to obtain it.
last_bufferany
Optional pagination cursor (base64). **Leave empty for the first page**; when `up_continue` in the response is truthy, pass the previous page's `last_buffer` to get the next page. (base64 contains `+//=` characters, hence body instead of query.)
rawboolean
Optional, default True. True=raw response; False=simplified parsed structure (recommended for media download).
4. Phản hồi
Đâ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.
Làm thế nào để dùng API WeChat Channels User Videos?
Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/wechat-channels/v2/user-videos 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.
API WeChat Channels User Videos có giá bao nhiêu?
$0.01 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ý.
API WeChat Channels User Videos chấp nhận những tham số nào?
Bắt buộc: username (string). Tùy chọn: last_buffer (any) và raw (boolean). Bảng Parameters và Playground trên trang này liệt kê mọi trường.
API WeChat Channels User Videos trả về gì?
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.
Tôi có cần tài khoản nhà phát triển hoặc API key của WeChat Channels không?
Không. WeChat Channels User Videos 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 WeChat Channels.