Kuaishou (China)
Kuaishou User Live Status API
Check whether a Kuaishou (China) creator is broadcasting right now and get the live stream attached to their account — stream id, stream title, cover image, and the broadcaster's verified details — as JSON. Costs 1 credit, so it is cheap enough to poll a watchlist. Not paginated: one account, one answer.
POST/api/v1/kuaishou/user/live
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: 1377082950
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
status = client.kuaishou.user_live(user_id="1377082950")
icon = status["data"].get("dynamicIconV2", {})
if icon.get("isLive"):
print(icon["liveStream"]["liveStreamId"], icon["liveStream"]["caption"])
else:
print("offline")Response
"result": 1,
},
"response_time": 976,
"credits_used": 1,
"credits_remaining": 4818
}