Pour l'IA

Objet

Objet LiveRoom

A live room as it is now: whether it is on, its title, host, start time and room-level counts. The same fields on every platform. A field a platform does not show is null, and meta.unavailable names it with the reason.

ChampTypeDe viewDescription
idstring | nullcompactThe room's ID; the endpoints that read a room take it. Null where the platform names no room: an account that is not live, or a board entry that links to the host only.
urlstring | nullcompactThe room's web page; null where the platform gives the room none.
statusstringcompactlive: streaming now. offline: not streaming (the other fields then describe the last session, where the platform still shows it).
titlestring | nullcompactLe titre du live tel que défini par l'animateur.
categorystring | nullcompactThe room's category or game, in the platform's words (Twitch's game, Bilibili's area); null where the platform gives none.
cover_urlstring | nullstandardImage de couverture.
hostAccountRefcompactLe compte public de l'animateur.
started_atstring | nullcompactWhen the current (or last) session started, ISO 8601 in UTC.
rankinteger | nullcompactPlace on the board, from 1; null outside boards.
metricsLiveMetricscompactRoom-level counts at fetch time; a count the platform does not show is null.
extobjetfullDonnées propres à la plateforme. Renvoyées uniquement avec view=full. · uniquement avec view=full

AccountRef

ChampTypeDescription
idstringID du compte sur la plateforme.
usernamestring | nullIdentifiant, si la plateforme en a un.
namestring | nullNom affiché.
avatar_urlstring | nullURL de l'image d'avatar.
followersinteger | nullNombre d'abonnés au moment de la récupération.
verifiedboolean | nullIndique si la plateforme affiche un badge de vérification.

LiveMetrics

ChampTypeDescription
viewersinteger | nullPersonnes présentes dans le live en ce moment.
total_viewersinteger | nullPeople who have come into the room since it started; where the platform rounds it (100,000+), the lower bound.
likesinteger | nullJ'aime depuis le début.
heatinteger | nullThe platform's own popularity score for the room, not a head count (Kuaishou's and Bilibili's).
productsinteger | nullProducts on sale in the room (the shopping bag).

Endpoints qui renvoient un objet LiveRoom

Connectez-vous une fois, puis demandez simplement.

Chaque nouvelle clé inclut $0.20 pour essayer. Une phrase suffit pour connecter votre agent.

Commencer gratuitement
Connectez votre IA

Collez ceci dans votre agent

Lis https://okdata.online/agents.md et configure okdata pour moi ; ma clé est dans la variable d'environnement OKDATA_API_KEY.

Claude Code, Cursor, Codex et les autres agents capables d'ouvrir un lien se configurent à partir de celui-ci.

Serveur MCPhttps://api.okdata.online/mcp