Dành cho AI

Đối tượng

Đối tượng 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.

TrườngLoạiTheo viewMô tả
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 | nullcompactTiêu đề phòng do người dẫn đặt.
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 | nullstandardẢnh bìa.
hostAccountRefcompactTài khoản công khai của người dẫn.
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.
extobjectfullDữ liệu bổ sung riêng của nền tảng. Chỉ trả về khi view=full. · chỉ khi view=full

AccountRef

TrườngLoạiMô tả
idstringID tài khoản trên nền tảng.
usernamestring | nullHandle, nếu nền tảng có.
namestring | nullTên hiển thị.
avatar_urlstring | nullURL ảnh đại diện.
followersinteger | nullSố người theo dõi tại thời điểm lấy dữ liệu.
verifiedboolean | nullNền tảng có hiển thị huy hiệu xác minh hay không.

LiveMetrics

TrườngLoạiMô tả
viewersinteger | nullSố người đang ở trong phòng lúc này.
total_viewersinteger | nullPeople who have come into the room since it started; where the platform rounds it (100,000+), the lower bound.
likesinteger | nullLượt thích từ khi bắt đầu.
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).

Các endpoint trả về LiveRoom

Kết nối một lần, sau đó chỉ cần hỏi.

Mỗi khóa mới đi kèm $0.20 để dùng thử. Một câu là kết nối được agent của bạn.

Bắt đầu miễn phí
Kết nối AI của bạn

Dán câu này vào agent của bạn

Đọc https://okdata.online/agents.md và thiết lập okdata cho tôi; khóa của tôi nằm trong biến môi trường OKDATA_API_KEY.

Claude Code, Cursor, Codex và các agent khác có thể mở liên kết sẽ tự thiết lập từ đó.

MCP serverhttps://api.okdata.online/mcp