{
"error": {
"code": "UNAUTHORIZED",
"message": "API key required — pass it in the `x-api-key` header.",
"requestId": "req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f"
}
}
{
"error": {
"code": "INSUFFICIENT_CREDITS",
"message": "This request costs 1 credit, but your balance is 0. Top up to continue.",
"requestId": "req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f"
}
}
{
"error": {
"code": "NOT_FOUND",
"message": "The requested content was not found (it may not exist, be deleted, or be private).",
"requestId": "req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f"
}
}
{
"error": {
"code": "RATE_LIMITED",
"message": "Rate limit exceeded — max 100 requests per 60s. Retry in ~30s.",
"requestId": "req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f"
}
}
{
"error": {
"code": "UPSTREAM_BLOCKED",
"message": "The source is temporarily unavailable. Please try again shortly.",
"requestId": "req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f"
}
}
Kwai
Profile
Returns a public Kwai profile by Kwai ID or link: name, Kwai ID, user ids, bio, avatar and background, verified badge, gender, creator level, follower and following counts, likes received, public and private post counts, album count, whether the account is private, when it was created and its other profile links. Only publicly available data is returned.
GET
/
v1
/
kwai
/
profile
Profile
curl --request GET \ --url https://api.scraperize.com/v1/kwai/profile \ --header 'x-api-key: <api-key>'
{
"error": {
"code": "UNAUTHORIZED",
"message": "API key required — pass it in the `x-api-key` header.",
"requestId": "req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f"
}
}
{
"error": {
"code": "INSUFFICIENT_CREDITS",
"message": "This request costs 1 credit, but your balance is 0. Top up to continue.",
"requestId": "req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f"
}
}
{
"error": {
"code": "NOT_FOUND",
"message": "The requested content was not found (it may not exist, be deleted, or be private).",
"requestId": "req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f"
}
}
{
"error": {
"code": "RATE_LIMITED",
"message": "Rate limit exceeded — max 100 requests per 60s. Retry in ~30s.",
"requestId": "req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f"
}
}
{
"error": {
"code": "UPSTREAM_BLOCKED",
"message": "The source is temporarily unavailable. Please try again shortly.",
"requestId": "req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f"
}
}
Cost: 1 credit per successful request. Errors and cache hits (cache_max_age) are free.
Copy for AI assistant
Paste this into ChatGPT, Claude or your coding assistant to generate working code for this endpoint (use the copy button).
Prompt
I want to make an API call to /v1/kwai/profile. Here are the details:Endpoint: GET https://api.scraperize.com/v1/kwai/profileDescription: Returns a public Kwai profile by Kwai ID or link: name, Kwai ID, user ids, bio, avatar and background, verified badge, gender, creator level, follower and following counts, likes received, public and private post counts, album count, whether the account is private, when it was created and its other profile links. Only publicly available data is returned.Required Headers:- x-api-key: Your API keyParameters:- handle (string): The Kwai ID (with or without `@`), e.g. `LaisXiblei78552`. Required unless `url` is given.- url (string): The profile link, e.g. `https://www.kwai.com/@LaisXiblei78552`. Required unless `handle` is given.- cache_max_age (select): Optional. Return a cached result if one this age or newer exists — served for **0 credits** with `meta.cached=true` and `meta.cachedAt`. Otherwise a fresh scrape runs (**1 credit**) and refreshes the cache. Omit to always scrape fresh.Example Response:{ "data": { "userId": "150001443865216", "eid": "3xd4ware9suev3g", "kwaiId": "LaisXiblei78552", "name": "Lais Xible", "url": "https://www.kwai.com/@LaisXiblei78552", "bio": null, "avatarUrl": "http://aws-br-pic.kwai.net/bs2/overseaHead/growth_shadow_45e9c2c9fed34773bcf9f5889bbc4ba1_s.jpg", "backgroundUrl": "http://aws-static.kwai.net/s1/i/def/bg4.jpg", "isVerified": false, "gender": "U", "creatorLevel": 1, "followers": 1105, "following": 1667, "likes": 8392, "posts": 107, "privatePosts": 0, "isPrivate": false, "createdAt": "2024-01-25T19:00:32Z", "links": [ "https://m.kwai.com/user/@LaisXiblei78552" ], "albumCount": 1, "fetchedAt": "2026-11-11T09:06:16.565Z" }, "meta": { "requestId": "req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f", "creditsCharged": 1, "creditsRemaining": 4999, "cached": false }}Please help me write code in my preferred programming language to make this API call and handle the response appropriately. Include error handling and best practices.
Optional. Return a cached result if one this age or newer exists — served for 0 credits with meta.cached=true and meta.cachedAt. Otherwise a fresh scrape runs (1 credit) and refreshes the cache. Omit to always scrape fresh.