# Kwai Video

Full detail of one Kwai video with every media manifest. The returned video id always equals the requested id: a page that substitutes a different video is retried and only reported as a 404 once the retries are exhausted.

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

## 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 |
| --- | --- | --- | --- |
| `photo_id` | string | Yes | Kwai video id. |

## Example response

```json
{
    "meta": {
        "attempts": 1,
        "billable": true,
        "duration_ms": 1320
    },
    "video": {
        "caption": "Sunset on the coast",
        "coverUrl": "https://cdn.example.com/cover.jpg",
        "video_id": "3xk9qz2abcde",
        "likeCount": 9421,
        "viewCount": 182340,
        "shareCount": 88,
        "commentCount": 310,
        "main_mv_urls": [
            {
                "url": "https://cdn.example.com/video.mp4"
            }
        ],
        "photo_id_str": "3xk9qz2abcde"
    },
    "success": true
}
```

## 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)
