# Kwai User Posts

Cursor-paginated video feed of a Kwai account, including the album shelf. Feed the next_cursor back as pcursor for the following page.

- **Documentation:** [https://scrappa.co/docs/kwai-api/kwai_user_posts](https://scrappa.co/docs/kwai-api/kwai_user_posts)
- **API group:** Kwai API
- **Endpoint:** `GET https://scrappa.co/api/kwai/user/posts`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `user` | string | Yes | Kwai handle, with or without a leading @. |
| `pcursor` | string | No | Cursor from the previous response (next_cursor). |
| `count` | integer | No | Requested number of videos, 1 to 50. Default: 12. |

## Example response

```json
{
    "meta": {
        "attempts": 1,
        "billable": true,
        "duration_ms": 1180
    },
    "user": "praiabeach",
    "albums": [],
    "videos": [
        {
            "caption": "Sunset on the coast",
            "coverUrl": "https://cdn.example.com/cover.jpg",
            "duration": 15000,
            "video_id": "3xk9qz2abcde",
            "likeCount": 9421,
            "viewCount": 182340,
            "main_mv_urls": [
                {
                    "url": "https://cdn.example.com/video.mp4"
                }
            ],
            "photo_id_str": "3xk9qz2abcde"
        }
    ],
    "success": true,
    "has_more": true,
    "album_count": 0,
    "next_cursor": "3xk9qz2abcde:12",
    "video_count": 2,
    "requested_count": 12
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 502 | Upstream Unavailable | The upstream service is temporarily unavailable. Please retry shortly. |
| 404 | Not Found | Kwai has no public data for this identifier. A not-found is a completed lookup that was not billed. |
| 404 | Profile Not Found | Kwai has no public profile for this handle. A not-found is a completed lookup that was not billed. |
| 422 | Upstream Rejected The Request | Kwai rejected the request body as malformed. Retrying will not change the outcome, so the request is sent once and is not billed. |
| 422 | Validation Error | A required parameter is missing or malformed. |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
