Docs menu

Kwai profile posts

Beta GET /v1/kwai/profile/posts

GET /v1/kwai/profile/posts

A user's public posts: caption, media URLs, covers, counts and author. Pass the cursor back for more.

  • 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.
limitintegernoNumber of posts per page, at most 50. Range 1 to 50. Also accepted as count.

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:

  • cursor: the cursor from the previous page (Pagination).
  • 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/posts" \
  -H "x-api-key: $SOCIALSCRAPE_API_KEY" \
  --data-urlencode "handle=KwaiBrasilOficial" \
  --data-urlencode "limit=10"
Python
import os
import requests

params = {
    "handle": "KwaiBrasilOficial",
    "limit": "10",
}
res = requests.get(
    "https://api.socialscrape.io/v1/kwai/profile/posts",
    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/posts");
url.search = new URLSearchParams({
  "handle": "KwaiBrasilOficial",
  "limit": "10"
}).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 posts",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        0,
        0
      ],
      "parameters": {
        "method": "GET",
        "url": "https://api.socialscrape.io/v1/kwai/profile/posts",
        "sendQuery": true,
        "queryParameters": {
          "parameters": [
            {
              "name": "handle",
              "value": "KwaiBrasilOficial"
            },
            {
              "name": "limit",
              "value": "10"
            }
          ]
        },
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "x-api-key",
              "value": "={{ $env.SOCIALSCRAPE_API_KEY }}"
            }
          ]
        }
      }
    }
  ],
  "connections": {}
}

Example response#

This is a sample from a recorded response, lists and long text are shortened. Status 200.

{
  "ok": true,
  "credits_charged": 1,
  "credits_remaining": 4999,
  "cached": false,
  "cached_at": null,
  "request_id": "req_b94efd098959dda7b0d9febf",
  "data": {
    "object": "list",
    "items": [
      {
        "object": "post",
        "platform": "kwai",
        "id": "5252191699663398465",
        "url": "https://www.kwai.com/@KwaiBrasilOficial/video/5252191699663398465",
        "type": "video",
        "author": {
          "id": "558843093",
          "handle": "KwaiBrasilOficial",
          "name": "Kwai Brasil Oficial",
          "url": "https://www.kwai.com/@KwaiBrasilOficial",
          "avatar_url": "https://aws-br-pic.kwai.net/bs2/overseaHead/20261008020943_BNTU4ODQzMDkz_tw.webp",
          "verified": true
        },
        "title": null,
        "text": "Chegou a hora de mandar a real pro dono do chapéu! 🤠👀 Toda semana o fazendeiro vai encarar as dúvidas da galera no Cantinho do Fazendeiro! Pra participar é fácil: comente sua pergunta usando a hashtag #AFazendaNoKwai aqui na nossa publicaçã...",
        "published_at": "2026-10-29T19:00:00.015000Z",
        "duration_seconds": 46.507,
        "language": null,
        "hashtags": [
          "AFazendaNoKwai"
        ],
        "mentions": null,
        "stats": {
          "views": 319,
          "likes": 25,
          "comments": 4,
          "shares": 4,
          "saves": null,
          "dislikes": null
        },
        "media": {
          "thumbnail_url": "https://p16-kimg.kwai.net/kimg/EKzM1y8qUAoKbWVkaWFjbG91ZBIPa3dhaS1rd2FpLWltYWdlGjE3YjUwNTI2NTYwMTkwMDM3LWFmM2JhMmM5YjRiZGEyNjUzN2VmY2VjM2EyMDgxMWU1.webp",
          "video_url": "https://aws-br-cdn.kwai.net/upic/2026/10/30/02/BMjAyNjEwMzAwMjA2MjNfNTU4ODQzMDkzXzE1MDExMTU5NzgwMTIxN18zXzM=_b_B1c854c8d6307584d6bec57baf54233fc.mp4?tag=1-1793320722-s-0-a1sqamnrw8-4a43f60bf47ca37e",
          "audio_url": null,
          "image_urls": null,
          "width": 720,
          "height": 1280
        },
        "song": {
          "id": "13759980923",
          "title": null,
          "artist": "Kwai Brasil Oficial",
          "url": "https://aws-br-pic.kwai.net/bs2/ost/MTUwMTExNTk3ODAxMjE3XzU1ODg0MzA5Mw.m4a"
        },
        "location": null,
        "is_pinned": false,
        "is_sponsored": null,
        "extra": {
          "allow_download": true,
          "audio_url": "https://aws-br-pic.kwai.net/bs2/ost/MTUwMTExNTk3ODAxMjE3XzU1ODg0MzA5Mw.m4a",
          "categories": [
            "娱乐;Entertainment",
            "八卦追星;Gossip&celebrity"
          ],
          "cover_first_frame_url": "https://aws-br-pic.kwai.net/upic/2026/10/30/02/BMjAyNjEwMzAwMjA2MjNfNTU4ODQzMDkzXzE1MDExMTU5NzgwMTIxN18zXzM=_offn_B681a22a72bc053147220197444a57ce5.webp?tag=1-1793320722-s-0-hbhxn6czo4-5ff287c4d4a03bb5",
          "display_time": "2026-10-30 03:00:00",
          "pinned_to_profile": false,
          "post_kind": 1
        }
      },
      {
        "object": "post",
        "platform": "kwai",
        "id": "5253880553670639173",
        "url": "https://www.kwai.com/@KwaiBrasilOficial/video/5253880553670639173",
        "type": "video",
        "author": {
          "id": "558843093",
          "handle": "KwaiBrasilOficial",
          "name": "Kwai Brasil Oficial",
          "url": "https://www.kwai.com/@KwaiBrasilOficial",
          "avatar_url": "https://aws-br-pic.kwai.net/bs2/overseaHead/20261008020943_BNTU4ODQzMDkz_tw.webp",
          "verified": true
        },
        "title": null,
        "text": "Eita que a rotina agitou! 🤠🔥 E essa semana tem mais, hein? Fiquem ligados no programa porque o tema da vez é receitas! 🍳👨‍🍳 Gostou? Então já usa a hashtag #AFazendaNoKwai, posta o seu vídeo também e vem acompanhar tudo o que rola no reality...",
        "published_at": "2026-10-26T20:00:00.015000Z",
        "duration_seconds": 184.875,
        "language": null,
        "hashtags": [
          "AFazendaNoKwai"
        ],
        "mentions": null,
        "stats": {
          "views": 1720,
          "likes": 216,
          "comments": 78,
          "shares": 112,
          "saves": null,
          "dislikes": null
        },
        "media": {
          "thumbnail_url": "https://p16-kimg.kwai.net/kimg/EKzM1y8qkAEKAnMzEg1waG90by1vdmVyc2VhGnt1cGljLzIwMjYvMTAvMjcvMDMvQk1qQXlOakV3TWpjd016TTJNemhmTlRVNE9EUXpNRGt6WHpFMU1ERXhNVFU0TkRnek16QTBORjh6WHpNPV9vdXVfQmE5NDdjZTBhNDJjN2JjMjQ4NmYyZmEyMjBlMGE4ZmVmLndlYnA.webp",
          "video_url": "https://aws-br-cdn.kwai.net/upic/2026/10/27/03/BMjAyNjEwMjcwMzM2MzhfNTU4ODQzMDkzXzE1MDExMTU4NDgzMzA0NF8zXzM=_b_B13e514718c13d6dfa58774564e10b519.mp4?tag=1-1793320722-s-0-fthunqih0l-04689ba4437f3fb1",
          "audio_url": null,
          "image_urls": null,
          "width": 720,
          "height": 1280
        },
        "song": {
          "id": "13751347905",
          "title": null,
          "artist": "Kwai Brasil Oficial",
          "url": "https://aws-br-pic.kwai.net/bs2/ost/MTUwMTExNTg0ODMzMDQ0XzU1ODg0MzA5Mw.m4a"
        },
        "location": null,
        "is_pinned": false,
        "is_sponsored": null,
        "extra": {
          "allow_download": true,
          "audio_url": "https://aws-br-pic.kwai.net/bs2/ost/MTUwMTExNTg0ODMzMDQ0XzU1ODg0MzA5Mw.m4a",
          "categories": [
            "潮流玩法;Trending Styles",
            "挑战;Challenge"
          ],
          "cover_first_frame_url": "https://aws-br-pic.kwai.net/upic/2026/10/27/03/BMjAyNjEwMjcwMzM2MzhfNTU4ODQzMDkzXzE1MDExMTU4NDgzMzA0NF8zXzM=_offn_B663f430f3c67337dce2138aea5433893.webp?tag=1-1793320722-s-0-q5dkdbkxmr-5697000465d597ac",
          "display_time": "2026-10-27 04:00:00",
          "pinned_to_profile": false,
          "post_kind": 1
        }
      }
    ],
    "cursor": "1792610101494",
    "has_more": true,
    "parent": null
  },
  "cursor": "1792610101494",
  "has_more": true
}

Response#

A list of Post objects in data.items, with data.cursor and data.has_more.

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_f36a55ffc464bb299c85e3e1"
}

Also served at#

These paths answer the same request, so code written for other APIs keeps working: /v1/kwai/user/posts. See Switching from ScrapeCreators.