API · Kwai
GET /kwai/user/posts
A Kwai account’s videos, newest first, paginated.
| Request | GET /v1/kwai/user/posts |
| Operation id | kwai.user.posts |
| Cost | 1 credit, refunded if the call fails |
| Auth | API key: Authorization: Bearer <key> or x-api-key. |
A Kwai account’s videos, newest first, paginated.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
handle | string | no | Kwai id (the @name), with or without @. Example: cinenarrastar550. |
url | string | no | Or the profile URL. |
after | string | no | The previous page’s meta.next_token. |
count | integer | no | Videos per page, 1 to 50. Defaults to 20. |
Responses
| Status | Meaning | Schema |
|---|---|---|
200 | A page of videos. | KwaiPhotos |
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 |
KwaiPhotos fields
| Field | Type | Description |
|---|---|---|
data | KwaiPhoto[] | |
meta | object |
Errors use one shape everywhere; see Errors for every code and what to do.