APIs / Social media / Kwai

1 credit per call8 endpointsChecked working 6 Dec 2026

Kwai API

Kwai API for public videos, related videos, topics, albums, search and search suggestions as JSON. Eight endpoints, 1 credit per successful call.

Kwai
GET/v1/kwai/search?q=music
curl "https://api.perceptlayer.com/v1/kwai/search?q=music" \
  -H "X-API-Key: $API_KEY"
cURL1 credit per successful call
Run this call below or from your dashboard to see a live response.

Playground

Run this API

cURLshell
curl "https://api.perceptlayer.com/v1/kwai/search?q=music" \
  -H "X-API-Key: $API_KEY"

Kwai · 8 endpoints

Endpoints

Every endpoint takes the same key. Open one for its parameters, the fields it returns and an example request.

Note
Endpoints marked “Needs terms” return personal or social data. They work once you accept the restricted-endpoint terms in your dashboard.
EndpointRequired parametersReturnsCost
GET/v1/kwai/album
albumId+2 optionalNeeds terms
JSON1 credit
GET/v1/kwai/profile
userNeeds terms
JSON1 credit
GET/v1/kwai/search
q+1 optionalNeeds terms
JSON1 credit
GET/v1/kwai/search-suggest
q+1 optionalNeeds terms
JSON1 credit
GET/v1/kwai/topic
name+2 optionalNeeds terms
JSON1 credit
GET/v1/kwai/user-posts
user+2 optionalNeeds terms
JSON1 credit
GET/v1/kwai/video
photo_idNeeds terms
JSON1 credit
GET/v1/kwai/video-related
photo_idNeeds terms
JSON1 credit

Overview

About the Kwai API

What you can get

The Kwai API returns public Kwai data as JSON through 8 endpoints. All of them are restricted endpoints: the restricted-endpoint terms apply, and they don't permit collecting personal data without a lawful basis or using it to contact people.

  • Search: search takes a q, with page; search-suggest takes a q, with count.
  • Topics: topic takes a name, with pcursor and count.
  • Videos: video and video-related each take a photo_id.
  • Albums: album takes an albumId, with pcursor and count.
  • Users: profile takes a user; user-posts takes a user, with pcursor and count.

How a call works

Search public content: GET /v1/kwai/search?q=... with your key in the X-API-Key header. search pages with page; album, topic and user-posts page with pcursor. video and video-related share the param name photo_id. Every successful call costs 1 credit; failed calls cost nothing.

Social mediaJSONRESTMCPSome endpoints need terms

More social media APIs

Use cases

See which search suggestions come up for a keyword or a brand name

Use the Kwai API to see which search suggestions come up for a keyword or a brand name

Follow the public videos under a topic and how its volume changes over time

Use the Kwai API to follow the public videos under a topic and how its volume changes over time

Compare topics in a market to spot the ones that are growing

Use the Kwai API to compare topics in a market to spot the ones that are growing

Collect public videos about a product category for content research in aggregate

Use the Kwai API to collect public videos about a product category for content research in aggregate

FAQ

Questions

Do I need a Kwai API key?

No. You call this Kwai API with your Perceptlayer key in the `X-API-Key` header, so there's no Kwai app to register. You do need to accept the restricted-endpoint terms first.

How much does the Kwai API cost?

Each successful call costs one credit. New accounts get free credits to start, and credit packs bring the price down as you scale.

What format are responses in?

Every endpoint returns JSON, with no HTML parsing on your side.

Which Kwai endpoints page through results?

`album`, `topic` and `user-posts` take `pcursor` and `count`; `search` takes `page`.

Is this the official Kwai API?

No. Perceptlayer is an independent service and is not affiliated with Kwai. It returns Kwai data as JSON with a Perceptlayer key, so there is no Kwai developer account, app review or partner approval to get first. It only reads data: if Kwai has an official API and you need to act on your own Kwai account, such as posting, managing orders or reading private data, use that one.

Should I build a Kwai scraper instead?

You can, but a Kwai scraper is code you maintain: page changes break it, requests get blocked, and Kwai's terms govern how you collect data. The Kwai API gives you 8 endpoints of named JSON fields for 1 credit per successful call, and failed calls cost nothing. A scraper makes sense only for data these endpoints don't return, so check the response in the playground on this page first. Some of these endpoints return social or personal data and need the restricted-endpoint terms; collect only what you have a lawful basis for.

Try the Kwai API with 100 free credits

No credit card. Failed calls are never billed.