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.
Preço
$0.01USD / chamada
Método
POST
Resposta
JSON
Parâmetros
1 obrigatórios · 2 opcionais
Playground
Entrada
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).
Selecione um exemplo para carregar as entradas e o resultado no playground.
README da 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.
Defina sua chave da API SandBase no ambiente do seu servidor. As requisições usam autenticação Bearer.
Variável de ambiente da chave da API
export SANDBASE_API_KEY="YOUR_API_KEY"
Mantenha sua chave no servidor. Não a exponha em código do navegador.
3. Parâmetros
usernamestringobrigatório
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. Resposta
Resposta de exemplo salva para esta API; nenhuma requisição ao vivo é feita ao visualizá-la.
Envie uma solicitação POST para https://api.sandbase.ai/v1/api/wechat-channels/v2/user-videos com sua chave de API da SandBase no cabeçalho Authorization (Bearer) e os parâmetros no corpo JSON. Você também pode testar no Playground desta página sem escrever código.
Quanto custa a API WeChat Channels User Videos?
$0.01 por chamada, cobrado do seu saldo SandBase. Você paga apenas pelas chamadas que fizer; não há assinatura.
Quais parâmetros a API WeChat Channels User Videos aceita?
Obrigatórios: username (string). Opcionais: last_buffer (any) e raw (boolean). A tabela de Parâmetros e o Playground nesta página listam todos os campos.
O que a API WeChat Channels User Videos retorna?
Uma resposta JSON retornada na mesma solicitação HTTP (síncrona). O README desta página inclui um exemplo de resposta.
Preciso de uma conta de desenvolvedor WeChat Channels ou de uma chave de API?
Não. WeChat Channels User Videos funciona via SandBase, então uma única chave de API da SandBase cobre este endpoint e todas as outras APIs e modelos do catálogo. Você não precisa solicitar acesso à API do WeChat Channels separadamente.