Kuaishou (China)
Kuaishou Share Link Resolver API
The entry point for the Kuaishou user endpoints: it turns a share link you copied out of the app into the user id that Profile, User Posts and User Live Status all require. Paste a kuaishou.com or v.kuaishou.com link, get back a user id, then spend your credits on the call you actually wanted. Costs 1 credit — a tenth of the Profile call, so resolve first instead of guessing ids.
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/jsonshare_linkstring (url)requiredA kuaishou.com or v.kuaishou.com link, including the short share links the app produces. Must be a syntactically valid URL. Kwai international (kwai.com) links are not supported — the upstream provider does not serve Kwai, so they do not resolve.
Example: https://v.kuaishou.com/KcdKDwFp
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
# 1 credit: resolve the link, then spend on the endpoint you actually want.
resolved = client.kuaishou.user_resolve(share_link="https://v.kuaishou.com/KcdKDwFp")
user_id = resolved["data"]["user_id"]
posts = client.kuaishou.user_posts(user_id=user_id) # 1 credit
print(user_id, len(posts["data"].get("feeds", [])))Response