Kuaishou (China)
Kuaishou User Posts API
Pull a Kuaishou (China) creator's top posts — caption, play / like / comment / share / collect counts, duration, publish time, cover image and video URL — page by page, as JSON. Costs 1 credit per page, so this is the cheap way to pull a creator's catalogue (the profile call costs 10). Pagination is cursor-based: send the response's pcursor back as cursor.
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/jsonuser_idstringrequiredKuaishou user id, non-empty. Get one from Resolve Share Link or User Search.
Example: 228905802
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. A pcursor of "no_more" means there are no further pages.
Example: 31
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
cursor = None
while True:
page = client.kuaishou.user_posts(user_id="228905802", cursor=cursor)
for feed in page["data"].get("feeds", []):
print(feed["caption"], feed["view_count"], feed["share_info"])
cursor = page["data"].get("pcursor") # NOT next_cursor
if not cursor or cursor == "no_more":
breakResponse