Kuaishou Single Video Details
https://api.sandbase.ai/v1/api/kuaishou/web/one-videoReturns detailed metadata for a single Kuaishou video post using shared link content. Note that photo-only posts are not supported.
- Prezzo
- $0.002USD / chiamata
- Metodo
- POST
- Risposta
- JSON
- Parametri
- 1 obbligatori · 0 opzionali
Playground
Il tuo output apparirà qui
Completa gli input, poi fai clic su Esegui.
README API
Kuaishou Single Video Details API
Returns metadata for one Kuaishou video post. It needs a shared link to the post in share_text. The response is a list with one object that holds counts, author info, cover and video URLs, and stream variants.
Use cases
- Pull the view, like, comment and share counts of a video that someone shared as a link.
- Collect the author name, Kuaishou ID and user ID behind a shared video.
- Get the cover image and MP4 URLs of a video to archive or preview it.
- Read the resolution and duration of a video to check its format before processing it.
Request
curl -X POST "https://api.sandbase.ai/v1/api/kuaishou/web/one-video" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"share_text": "https://www.kuaishou.com/f/X-f2k5KJpiXN1SY"}'
The result is returned in outputs[0].data.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
share_text | string | Yes |
Example response
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
[
{
"adminTags": [],
"caption": "外 星 鸭 脖",
"commentCount": 3248,
"commentShowType": 2,
"coverUrls": [
{
"cdn": "p2.a.yximgs.com",
"url": "https://p2.a.yximgs.com/upic/2024/11/08/17/BMjAyNDExMDgxNzQwMzlfMjI4OTA1ODAyXzE0…"
}
],
"duration": 58750,
"exp_tag": "1_a/2006452015065702178_s0",
"ext_params": {
"color": "7D7A7D",
"h": 1280,
"interval": 60,
"mtype": 3,
"sound": 58751,
"video": 58750,
"w": 720
},
"forcePublic": "H4sIAAAAAAAA%2F%2BNQEmCQ2Lbi8PnlLEaSXOzFGYlFqZ4pQnyGFoYmBhaGFuaWRoaGJgBl99ASJgAA…",
"forwardCount": 0,
"headUrl": "https://p4-pro.a.yximgs.com/uhead/AB/2025/08/11/21/BMjAyNTA4MTEyMTEyNDlfMjI4OTA1…",
"headUrls": [
{
"cdn": "p4-pro.a.yximgs.com",
"url": "https://p4-pro.a.yximgs.com/uhead/AB/2025/08/11/21/BMjAyNTA4MTEyMTEyNDlfMjI4OTA1…"
}
]
}
]
Response fields
| Field | Meaning |
|---|---|
[].photoId | ID of the post. Pass it to the comment APIs to read the post's comments. |
[].caption | Text caption of the video. |
viewCount / likeCount / commentCount / shareCount / forwardCount | Engagement counts for the video. Read them as the totals at the time of the call. |
[].timestamp | Publish time of the post as a 13-digit number. It looks like Unix time in milliseconds. |
[].duration | Length of the video. The value 58750 matches ext_params.video, so it is most likely milliseconds. |
[].width / [].height | Frame size of the video in pixels (720 by 1280 in the sample). |
[].mainMvUrls[].url | Direct MP4 links to the video, listed once per CDN host in cdn. |
[].coverUrls[].url | Cover image links for the video, one per CDN host. |
[].userId / [].userEid / [].userName / [].kwaiId | Identity of the author: numeric user ID, encoded user ID, display name and Kuaishou ID. kwaiId appears on the root object and inside soundTrack.user. |
[].manifest.adaptationSet[].representation[] | Stream variants of the video. Each has avgBitrate, backupUrl links, and a comment string that names the codec and quality. |
[].soundTrack.name / [].soundTrack.audioUrls[].url | Name of the audio track and links to its .m4a file. |
Notes
- Set
share_textto a Kuaishou share link such ashttps://www.kuaishou.com/f/X-f2k5KJpiXN1SY. - Photo-only posts are not supported. Check
photoType, which isVIDEOfor a video post. - To read comments on the video, call Kuaishou Video Comments (Web) with the post ID.
- For another version of this lookup, see Kuaishou Single Video Details (V2).
Pricing
$0.002 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Inizia a costruire
Invia la tua prima richiesta
Endpoint API della piattaforma con autenticazione unificata e tracciamento dell'utilizzo.
curl -X POST "https://api.sandbase.ai/v1/api/kuaishou/web/one-video" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"share_text": "https://www.kuaishou.com/f/X-f2k5KJpiXN1SY"
}'2. Autenticazione
Imposta la tua SandBase API key nell'ambiente del server. Le richieste usano l'autenticazione Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserva la tua key sul server. Non esporla nel codice del browser.
3. Parametri
4. Risposta
Risposta di esempio salvata per questa API; durante la visualizzazione non viene eseguita alcuna richiesta live.
Nessuna risposta salvata è stata pubblicata. Esegui l'API in Playground per ispezionarne la risposta.
Esplora altro
API correlate
| API | Prezzo | Risposta |
|---|---|---|
Kuaishou Single Video DetailsQuesta API Kuaishou | $0.002 per chiamata | JSON |
Kuaishou | $0.001 per chiamata | JSON |
Kuaishou | $0.001 per chiamata | JSON |
Kuaishou | $0.001 per chiamata | JSON |
Kuaishou | $0.001 per chiamata | JSON |
Kuaishou | $0.002 per chiamata | JSON |
Domande
FAQ
Come uso l'API Kuaishou Single Video Details?
Invia una richiesta POST a https://api.sandbase.ai/v1/api/kuaishou/web/one-video 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 Kuaishou Single Video Details?
$0.002 per chiamata, addebitato dal tuo saldo SandBase. Paghi solo le chiamate che effettui; non c'è alcun abbonamento.
Quali parametri accetta l'API Kuaishou Single Video Details?
Richiesti: share_text (string). La tabella dei parametri e il Playground di questa pagina elencano tutti i campi.
Cosa restituisce l'API Kuaishou Single Video Details?
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 Kuaishou?
No. Kuaishou Single Video Details 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 Kuaishou.
