Kwai profile API
A public Kwai profile: name, bio, followers, likes received and video count.
GET /v1/kwai/user1 credit per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/kwai/user?handle=cinenarrastar550",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 1 credit{ "profile": { "user_id": 150001609306278, "kwai_id": "cinenarrastar550", "eid": "3x6g4iyuswy5ts6", "user_name": "CINE NARRASTAR", "user_text": "Olá Sejam Toda Bem Vindos aos melhores filmes narrados", "verified": false, "headurl": "http://aws-br-pic.kwai.net/bs2/overseaHead/20261107012341_BMTUwMDAxNjA5MzA2Mjc4_s.jpg", "userText": "Olá Sejam Toda Bem Vindos aos melhores filmes narrados", "level": 0, "headurls": [ { "cdn": "aws-br-pic.kwai.net", "url": "http://aws-br-pic.kwai.net/bs2/overseaHead/20261107012341_BMTUwMDAxNjA5MzA2Mjc4_s.jpg" }, { "cdn": "ak-br-pic.kwai.net", "url": "http://ak-br-pic.kwai.net/bs2/overseaHead/20261107012341_BMTUwMDAxNjA5MzA2Mjc4_s.jpg" } ], "poi": false, "followed": false, "creator_level": 1, "user_sex": "M", "user_profile_bg_url": "http://aws-static.kwai.net/s1/i/def/bg0.jpg", "levelIconUrl": "https://aws-static.kwai.net/creator/level/level_icon_lv1_disable.png", "tinyHeadUrl": "http://aws-br-pic.kwai.net/bs2/overseaHead/20261107012341_BMTUwMDAxNjA5MzA2Mjc4_t.jpg" }, "ownerCount": { "fan": 17905, "follow": 74, "photo": 149, "photo_public": 149, "liked": 68353, "like": -1, "photo_private": 0 }, "userSettingOption": { "like_feed_show": "0", "privacy_user": "0", "message_deny": "0", "comment_deny": "0", "download_deny": "1", "auto_save_to_local": "1", "not_recommend_to_contacts": "0", "not_recommend_to_qq_friends": "0", "photo_share_add_watermark": "0", "privacy_news": "0", "missu_deny": "0", "privacy_location": "0", "photo_download_deny": "0" }, "followRequesting": false, "bucket": "mix", "is_election_takedown_user": false, "followReason": null, "normanTag": "commentary", "metaCardUrl": null, "isFollowing": false, "isBlockedByOwner": false, "isBlocked": false, "isFollowed": false, "isOwner": false, "url": "https://www.kwai.com/@cinenarrastar550"}Parameters
| Name | Type | Description |
|---|---|---|
handlequery | string | Kwai id (the @name), with or without @. Example: cinenarrastar550. |
urlquery | string | Or the profile URL. |
Response fields
200 with a KwaiUser, in Kwai’s own JSON.
| Field | Type | Description |
|---|---|---|
profile | object | |
ownerCount | object | |
url | string |
Status codes
| Status | Meaning |
|---|---|
200 | The profile. |
400 | Invalid input. Nothing was charged. |
401 | Missing or invalid API key. |
402 | Not enough credits, a spend cap was reached, or payment is required. |
403 | The target is private, or the account is suspended. |
404 | The account or video does not exist. |
429 | Too many requests. Wait for Retry-After seconds. |
503 | Kwai is temporarily unavailable. Retryable; nothing was charged. |
Every error has code, message, hint and retryable. All error codes
Questions
Handle or URL?
Either: the @name or the profile URL.
Kwai is a trademark of Kuaishou Technology. We are not affiliated with or endorsed by Kuaishou Technology.