Skip to content
Scrappa Get API key
Kwai API 1 credit/request

Kwai Video

GET https://scrappa.co/api/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.

Kwai Video 1 credit/request

Endpoint

Request preview
GET
https://scrappa.co/api/kwai/video
Auth header
x-api-key
Cost
1 credit/request
photo_id = 1234567890
Response preview
200 OK
{
    "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,
...

Parameters

Start with the required fields, then add optional filters only when your use case needs them.

Runnable path

1 required parameter needed before sending a request.

photo_id string Required

Kwai video id.

Example value 1234567890

Response Schema

Example response fields are illustrative; inspect the JSON before integrating.

Example response fields

Scan these fields before integrating.

meta video success
JSON Response
200 OK
{
    "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

Handle these documented responses before retrying or showing customer-facing failures.

502

Upstream Unavailable

The upstream service is temporarily unavailable. Please retry shortly.

{
    "meta": {
        "attempts": 2,
        "billable": false,
        "retryable": true,
        "duration_ms": 2140
    },
    "error": {
        "code": "UPSTREAM_UNAVAILABLE",
        "message": "The Kwai API is temporarily unavailable. Please retry.",
        "http_status": 502,
        "failure_type": "upstream_non_200"
    },
    "success": false
}
404

Not Found

Kwai has no public data for this identifier. A not-found is a completed lookup that was not billed.

{
    "meta": {
        "attempts": 2,
        "billable": false,
        "retryable": false,
        "duration_ms": 1980
    },
    "error": {
        "code": "VIDEO_NOT_FOUND",
        "message": "Kwai has no video with this id.",
        "http_status": 404,
        "failure_type": "video_id_substituted"
    },
    "success": false
}
404

Profile Not Found

Kwai has no public profile for this handle. A not-found is a completed lookup that was not billed.

{
    "meta": {
        "attempts": 1,
        "billable": false,
        "retryable": false,
        "duration_ms": 860
    },
    "error": {
        "code": "PROFILE_NOT_FOUND",
        "message": "Kwai has no public profile for this handle.",
        "http_status": 404,
        "failure_type": "profile_not_found"
    },
    "success": false
}
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.

{
    "meta": {
        "attempts": 1,
        "billable": false,
        "retryable": false,
        "duration_ms": 1120
    },
    "error": {
        "code": "INVALID_PARAMETER",
        "message": "Kwai could not process this request. Retrying will not change the outcome.",
        "http_status": 422,
        "failure_type": "invalid_parameter_format"
    },
    "success": false
}
422

Validation Error

A required parameter is missing or malformed.

{
    "errors": {
        "user": [
            "The Kwai handle is required."
        ]
    },
    "message": "The request validation failed"
}

Generate Code with AI

Copy a ready-made prompt with all the endpoint details, parameters, and example responses. Paste it into ChatGPT, Claude, or any AI assistant to instantly generate working code.

Try It Live

Test this endpoint in our interactive playground with real data.