Docs menu

Kwai profile

Beta GET /v1/kwai/profile

GET /v1/kwai/profile

A public profile: name, bio, avatar, verification, counts of posts, likes, followers and following. Kwai's follower figure is unreliable (the official Brazil account reports 1), so treat it with care.

  • Cost: 1 credit
  • Status: Beta. Built and tested against recorded responses; the shape may still gain fields.
  • Cache: Results are kept up to 30 days; send max_age_days to reuse them for free.
  • Timeout: A request still running after about 25 seconds answers 202 with a job to poll (Batch and jobs).

Parameters#

NameTypeRequiredDescription
urlURLone ofProfile URL (kwai.com/@<user>). Accepted hosts: kwai.com.
handlestringone ofUsername, with or without the leading @. Also accepted as username.

Send at least one of url, handle. If you send several, the first listed is used and the rest are ignored.

Every request also accepts:

  • trim: true for a smaller response without null fields and extra.
  • raw: true to also get the platform's original object as raw.
  • max_age_days: accept a cached result up to this many days old, for 0 credits (Caching).

Example request#

Set your key in the environment first (see Authentication).

curl
curl -G "https://api.socialscrape.io/v1/kwai/profile" \
  -H "x-api-key: $SOCIALSCRAPE_API_KEY" \
  --data-urlencode "handle=KwaiBrasilOficial"
Python
import os
import requests

params = {
    "handle": "KwaiBrasilOficial",
}
res = requests.get(
    "https://api.socialscrape.io/v1/kwai/profile",
    headers={"x-api-key": os.environ["SOCIALSCRAPE_API_KEY"]},
    params=params,
)
body = res.json()

if body["ok"]:
    print(body["data"])
else:
    print(body["error"]["code"], body["error"]["message"])
TypeScript
const url = new URL("https://api.socialscrape.io/v1/kwai/profile");
url.search = new URLSearchParams({
  "handle": "KwaiBrasilOficial"
}).toString();
const res = await fetch(url, {
  headers: { "x-api-key": process.env.SOCIALSCRAPE_API_KEY! },
});
const body = await res.json();

if (body.ok) {
  console.log(body.data);
} else {
  console.error(body.error.code, body.error.message);
}
n8n
{
  "nodes": [
    {
      "name": "SocialScrape Kwai profile",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        0,
        0
      ],
      "parameters": {
        "method": "GET",
        "url": "https://api.socialscrape.io/v1/kwai/profile",
        "sendQuery": true,
        "queryParameters": {
          "parameters": [
            {
              "name": "handle",
              "value": "KwaiBrasilOficial"
            }
          ]
        },
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "x-api-key",
              "value": "={{ $env.SOCIALSCRAPE_API_KEY }}"
            }
          ]
        }
      }
    }
  ],
  "connections": {}
}

Example response#

This is a sample from a recorded response. Status 200.

{
  "ok": true,
  "credits_charged": 1,
  "credits_remaining": 4999,
  "cached": false,
  "cached_at": null,
  "request_id": "req_a12b3337ef656f48ae5dd370",
  "data": {
    "object": "profile",
    "platform": "kwai",
    "id": "558843093",
    "handle": "KwaiBrasilOficial",
    "name": "Kwai Brasil Oficial",
    "headline": null,
    "url": "https://www.kwai.com/@KwaiBrasilOficial",
    "kind": "person",
    "bio": "Votações abertas pro #PrêmioKwai2026!\nVote no seu criador favorito! 🏆",
    "avatar_url": "https://aws-br-pic.kwai.net/bs2/overseaHead/20261008020943_BNTU4ODQzMDkz_s.jpg",
    "banner_url": null,
    "verified": true,
    "is_private": false,
    "external_url": null,
    "links": null,
    "location": null,
    "category": null,
    "created_at": null,
    "stats": {
      "followers": 1,
      "following": 1,
      "posts": 3837,
      "likes": 17760234,
      "views": null
    },
    "extra": {
      "creator_level": 1,
      "eid": "3xyutri4afq3qks",
      "likes_given": 24326,
      "private_post_count": 0,
      "verified_description": "Conta Oficial",
      "verified_number": 3
    }
  },
  "cursor": null,
  "has_more": null
}

Response#

A Profile object in data.

See Data models for every field. The envelope around data is described in Responses.

Errors#

Failures are free: credits_charged is 0. Branch on error.code, never on the message.

CodeHTTPRetryMeaning
invalid_params400noA parameter is missing, unknown or has the wrong type.
unsupported_url400noThe URL is not one this endpoint accepts (wrong platform or form).
not_found404noThe platform says this profile, post or item does not exist.

Every request can also fail with the account and platform errors listed on the Errors page.

Example error:

{
  "ok": false,
  "error": {
    "code": "not_found",
    "message": "The platform says this profile, post or item does not exist.",
    "retryable": false
  },
  "credits_charged": 0,
  "request_id": "req_c4af93549a353e26274727f8"
}