Kuaishou (China)
Kuaishou Video Comments API
Pull the comment thread under a Kuaishou (China) video — comment text, author name and id, IP-location province, like count, reply count and timestamp — 30 root comments per page, as JSON. Costs 1 credit per page, so a full thread is cheap to mine. Pagination is cursor-based: send the response's pcursor back as cursor. A preview of the replies to the hottest comments rides along in the same response for free.
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/jsonphoto_idstringrequiredKuaishou photo (video) id, non-empty. Both the alphanumeric form (3x7gxp2zhgjv832) and the numeric form work. This endpoint takes the id only — there is no URL form here; resolve a link with Video Details first if that is all you have.
Example: 3x7gxp2zhgjv832
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: V2#ac1b6760-96d6-4d3a-93b2-21c30e0953db#dph#30#846697657492_30
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
cursor = None
while True:
page = client.kuaishou.video_comments(photo_id="3x7gxp2zhgjv832", cursor=cursor)
for c in page["data"].get("rootComments", []):
print(c["author_name"], c["authorArea"], c["likedCount"], c["content"])
cursor = page["data"].get("pcursor") # NOT next_cursor
if not cursor or cursor == "no_more":
breakResponse