Kwai post
Beta GET /v1/kwai/post
GET /v1/kwai/post
Kwai post.
- Cost: 1 credit
- Status: Beta. Built and tested against recorded responses; the shape may still gain fields.
- Cache: Results are kept up to 30 days; send
max_age_daysto reuse them for free. - Timeout: A request still running after about 25 seconds answers
202with a job to poll (Batch and jobs).
Parameters#
| Name | Type | Required | Description |
|---|---|---|---|
url | URL | yes | Post URL (kwai.com/@<user>/video/<id>; the /photo/<id> form works too). Accepted hosts: kwai.com. |
Every request also accepts:
trim:truefor a smaller response withoutnullfields andextra.raw:trueto also get the platform's original object asraw.max_age_days: accept a cached result up to this many days old, for 0 credits (Caching).
Example request#
Set your key in the environment first (see Authentication).
curl
curl -G "https://api.socialscrape.io/v1/kwai/post" \
-H "x-api-key: $SOCIALSCRAPE_API_KEY" \
--data-urlencode "url=https://www.kwai.com/@KwaiBrasilOficial/video/5193363430624671876"Python
import os
import requests
params = {
"url": "https://www.kwai.com/@KwaiBrasilOficial/video/5193363430624671876",
}
res = requests.get(
"https://api.socialscrape.io/v1/kwai/post",
headers={"x-api-key": os.environ["SOCIALSCRAPE_API_KEY"]},
params=params,
)
body = res.json()
if body["ok"]:
print(body["data"])
else:
print(body["error"]["code"], body["error"]["message"])TypeScript
const url = new URL("https://api.socialscrape.io/v1/kwai/post");
url.search = new URLSearchParams({
"url": "https://www.kwai.com/@KwaiBrasilOficial/video/5193363430624671876"
}).toString();
const res = await fetch(url, {
headers: { "x-api-key": process.env.SOCIALSCRAPE_API_KEY! },
});
const body = await res.json();
if (body.ok) {
console.log(body.data);
} else {
console.error(body.error.code, body.error.message);
}n8n
{
"nodes": [
{
"name": "SocialScrape Kwai post",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
0,
0
],
"parameters": {
"method": "GET",
"url": "https://api.socialscrape.io/v1/kwai/post",
"sendQuery": true,
"queryParameters": {
"parameters": [
{
"name": "url",
"value": "https://www.kwai.com/@KwaiBrasilOficial/video/5193363430624671876"
}
]
},
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "x-api-key",
"value": "={{ $env.SOCIALSCRAPE_API_KEY }}"
}
]
}
}
}
],
"connections": {}
}Example response#
This is a sample from a recorded response, lists and long text are shortened. Status 200.
{
"ok": true,
"credits_charged": 1,
"credits_remaining": 4999,
"cached": false,
"cached_at": null,
"request_id": "req_1abbc70078e2826a90483698",
"data": {
"object": "post",
"platform": "kwai",
"id": "5193363430624671876",
"url": "https://www.kwai.com/@KwaiBrasilOficial/video/5193363430624671876",
"type": "video",
"author": {
"id": null,
"handle": "KwaiBrasilOficial",
"name": "Kwai Brasil Oficial",
"url": "https://www.kwai.com/@KwaiBrasilOficial",
"avatar_url": "https://ak-br-pic.kwai.net/bs2/overseaHead/20261008020943_BNTU4ODQzMDkz_t.jpg",
"verified": true
},
"title": null,
"text": "O Marquinhos entrou em campo e realizou o maior sonho da vida da sua avó: ver o neto na Seleção! Dá o play para se emocionar com esse orgulho de neto. 👵🥹 Assista o episódio completo no perfil do @KwaiBrasilOficial no app do Kwai. #TorcidaNo...",
"published_at": "2026-06-06T19:00:00.028000Z",
"duration_seconds": 371.079,
"language": null,
"hashtags": [
"TorcidaNoKwai"
],
"mentions": [
"KwaiBrasilOficial"
],
"stats": {
"views": 2319,
"likes": 108,
"comments": 20,
"shares": 29,
"saves": null,
"dislikes": null
},
"media": {
"thumbnail_url": "https://p15-kimg.kwai.net/kimg/EKzM1y8qUAoKbWVkaWFjbG91ZBIPa3dhaS1rd2FpLWltYWdlGjFiMWYzYWQyZDBmMDY4NzVkLTc1MWYzMWZmN2Y0OWY2MzdjZTEwZDViYWU3MDRiOTdl.webp",
"video_url": "https://aws-br-cdn.kwai.net/upic/2026/06/06/04/BMjAyNjA2MDYwNDAzMjBfNTU4ODQzMDkzXzE1MDExMDk0NDQ5MzE2OV8zXzM=_b_B7fd46b0aa5775d533189b19532a1234f.mp4?tag=1-1793320727-s-0-ykemjb9ppf-d7a804dec2727265",
"audio_url": null,
"image_urls": null,
"width": 720,
"height": 1280
},
"song": null,
"location": null,
"is_pinned": null,
"is_sponsored": null,
"extra": {
"cover_first_frame_url": "https://ak-br-pic.kwai.net/upic/2026/06/06/04/BMjAyNjA2MDYwNDAzMjBfNTU4ODQzMDkzXzE1MDExMDk0NDQ5MzE2OV8zXzM=_offn_B7631fe227bd145b7f3b98ada8856a87d.webp?tag=1-1793320727-s-0-cvgjvt0brr-e92f93d4ee73832c",
"display_time": "2026-06-07 03:00:00"
}
},
"cursor": null,
"has_more": null
}Response#
A Post object in data.
See Data models for every field. The envelope around data is described in Responses.
Errors#
Failures are free: credits_charged is 0. Branch on error.code, never on the message.
| Code | HTTP | Retry | Meaning |
|---|---|---|---|
invalid_params | 400 | no | A parameter is missing, unknown or has the wrong type. |
unsupported_url | 400 | no | The URL is not one this endpoint accepts (wrong platform or form). |
not_found | 404 | no | The platform says this profile, post or item does not exist. |
Every request can also fail with the account and platform errors listed on the Errors page.
Example error:
{
"ok": false,
"error": {
"code": "not_found",
"message": "The platform says this profile, post or item does not exist.",
"retryable": false
},
"credits_charged": 0,
"request_id": "req_c56cdc201f44eb642fbaf857"
}Related endpoints#
- Kwai profile (
GET /v1/kwai/profile) - Kwai profile posts (
GET /v1/kwai/profile/posts)