Kuaishou (China)
Kuaishou Live Stream Search API
Search Kuaishou (China) live streams that are on air right now for a keyword — stream id, broadcaster, like count, cover, the commerce tag Kuaishou shows on the card, and the FLV playback URLs — as JSON. This is how you find live-commerce broadcasts while they are still selling. Costs 10 credits per page; Kuaishou is priced per endpoint (1, 2, 10 or 40) and all four search endpoints are the 10. Cursor-paginated, and the results go stale in minutes.
Authorizations
AuthorizationstringheaderrequiredBearer authentication header of the form Bearer <token>, where <token> is your Scavio API key (e.g. Bearer sk_live_your_key).
Body
application/jsonkeywordstringrequiredSearch keyword, 1 to 200 characters. Kuaishou is a Chinese-language platform: Chinese queries return the deep catalogue, and a Latin-script query returns whatever Kuaishou itself matches, which is usually much thinner. To check one known creator instead of searching, User Live Status costs 1 credit.
Example: 带货
cursorstringOpaque pagination cursor. Omit it for the first page, then pass back the pcursor value from the previous response. The response field is called pcursor, not next_cursor. Do not send recoPcursor — that is a separate cursor for Kuaishou's recommendation stream. A pcursor of "no_more" means there are no further pages.
Example: 1
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
# 10 credits. Live results are a snapshot - re-run rather than cache.
page = client.kuaishou.search_live(keyword="带货")
for item in page["data"].get("mixFeeds", []):
if item.get("itemType") != 6: # 25 is a commerce card, not a stream
continue
live = item["live"]
user = live.get("user", {})
print(live["liveStreamId"], user.get("user_name"), live.get("likeCount"))
tag = (live.get("simpleLiveCoverReasonTag") or {}).get("text", {})
print(" card tag:", tag.get("content"))
cursor = page["data"].get("pcursor") # NOT next_cursor / recoPcursorResponse