API · Kwai
GET /kwai/post
One Kwai video: caption, counts, media, author.
| Request | GET /v1/kwai/post |
| Operation id | kwai.post.get |
| Cost | 1 credit, refunded if the call fails |
| Auth | API key: Authorization: Bearer <key> or x-api-key. |
One Kwai video: caption, counts, media, author.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
url | string | yes | The video URL. Example: https://www.kwai.com/@cinenarrastar550/video/5220385027856062524. |
Responses
| Status | Meaning | Schema |
|---|---|---|
200 | The video. | KwaiPhoto |
400 | Invalid input. Nothing was charged. | Error |
401 | Missing or invalid API key. | Error |
402 | Not enough credits, a spend cap was reached, or payment is required. | Error |
403 | The target is private, or the account is suspended. | Error |
404 | The account or video does not exist. | Error |
429 | Too many requests. Wait for Retry-After seconds. | Error |
503 | Kwai is temporarily unavailable. Retryable; nothing was charged. | Error |
KwaiPhoto fields
| Field | Type | Description |
|---|---|---|
photo_id_str | string | |
photo_id | number | string | |
caption | string | null | |
timestamp | number | Unix milliseconds. |
time | string | |
view_count | number | |
like_count | number | |
comment_count | number | |
forward_count | number | |
duration | number | |
kwai_id | string | |
user_name | string | |
main_mv_urls | object[] | |
cover_thumbnail_urls | object[] | |
url | string |
Errors use one shape everywhere; see Errors for every code and what to do.