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.
Prezzo
$0.01USD / chiamata
Metodo
POST
Risposta
JSON
Parametri
1 obbligatori · 2 opzionali
Playground
Input
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).
Seleziona un esempio per caricare i suoi input e il risultato nel 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.
Imposta la tua SandBase API key nell'ambiente del server. Le richieste usano l'autenticazione Bearer.
Variabile d'ambiente della API key
export SANDBASE_API_KEY="YOUR_API_KEY"
Conserva la tua key sul server. Non esporla nel codice del browser.
3. Parametri
usernamestringobbligatorio
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. Risposta
Risposta di esempio salvata per questa API; durante la visualizzazione non viene eseguita alcuna richiesta live.
Invia una richiesta POST a https://api.sandbase.ai/v1/api/wechat-channels/v2/user-videos con la tua chiave API di SandBase nell'header Authorization (Bearer) e i parametri nel body JSON. Puoi anche provarla nel Playground di questa pagina senza scrivere codice.
Quanto costa l'API WeChat Channels User Videos?
$0.01 per chiamata, addebitato dal tuo saldo SandBase. Paghi solo le chiamate che effettui; non c'è alcun abbonamento.
Quali parametri accetta l'API WeChat Channels User Videos?
Richiesti: username (string). Facoltativi: last_buffer (any) e raw (boolean). La tabella dei parametri e il Playground di questa pagina elencano tutti i campi.
Cosa restituisce l'API WeChat Channels User Videos?
Una risposta JSON restituita nella stessa richiesta HTTP (sincrona). Il README di questa pagina include una risposta di esempio.
Mi serve un account sviluppatore o una chiave API WeChat Channels?
No. WeChat Channels User Videos funziona tramite SandBase, quindi una sola chiave API SandBase copre questo endpoint e tutte le altre API e modelli del catalogo. Non è necessario richiedere separatamente l'accesso alle API WeChat Channels.