RoomScope

Cập nhật lần cuối

Video

Video và bình luận của các creator đã lưu.

Mọi thao tác đều xác thực bằng API key (Authorization: Bearer <key>) và lỗi dùng chung envelope được mô tả trong Lỗi. Được tạo từ tài liệu OpenAPI của API.

Liệt kê video của creator

GET/v1/creators/{uid}/videos

Video đã lưu của creator, mới nhất trước, kèm số lượt xem, lượt thích và bình luận.

Scopecontent:readCreditĐọc dữ liệu cache

Tham số path

Tham số path · GET /v1/creators/{uid}/videos
NameTypeDescription
uidRequired
stringHandle của creator không kèm @ (linh.live) hoặc user id TikTok dạng số.

Request

curl "https://api.next.toktokdata.live/v1/creators/linh.live/videos" \  -H "Authorization: Bearer $ROOMSCOPE_API_KEY"

Response

200 OK
{  "data": {    "uniqueId": "linh.live",    "tiktokUserId": "990000000000000001",    "videos": [      {        "videoId": "7990000000000000001",        "tiktokUserId": "990000000000000001",        "uniqueId": "linh.live",        "description": "Video 1",        "createTime": "2026-10-31T10:51:44.935Z",        "coverUrl": null,        "durationSeconds": null,        "playCount": 10000,        "diggCount": 1000,        "commentCount": 100,        "shareCount": null,        "collectCount": null,        "firstSeenAt": "2026-11-01T10:51:45.590Z",        "lastRefreshedAt": "2026-11-01T10:36:44.935Z"      },      {        "videoId": "7990000000000000002",        "tiktokUserId": "990000000000000001",        "uniqueId": "linh.live",        "description": "Video 2",        "createTime": "2026-10-30T10:51:44.935Z",        "coverUrl": null,        "durationSeconds": null,        "playCount": 20000,        "diggCount": 2000,        "commentCount": 200,        "shareCount": null,        "collectCount": null,        "firstSeenAt": "2026-11-01T10:51:45.591Z",        "lastRefreshedAt": "2026-11-01T10:36:44.935Z"      }    ]  },  "provenance": {    "observedAt": "2026-11-01T10:36:44.935Z",    "freshness": "near_realtime",    "source": "public_creator_content",    "sourceKind": "derived",    "coverageStatus": "observed",    "methodologyVersion": "content-v1",    "window": null  }}

Lỗi

  • 400 Tham số hoặc body không hợp lệ; code cho biết vấn đề.
  • 401 API key bị thiếu hoặc không xác định.
  • 402 Ví credit của workspace không đủ cho lệnh gọi; resetAt cho biết khi nào credit được reset.
  • 403 Key thiếu scope, hoặc gói không bao gồm tính năng này.
  • 429 Vượt tốc độ request (theo giây, theo phút hoặc theo ngày); hãy tuân theo Retry-After.

Lấy một video

GET/v1/videos/{video_id}

Một video đã lưu cùng các bộ đếm của nó.

Scopecontent:readCreditĐọc dữ liệu cache

Tham số path

Tham số path · GET /v1/videos/{video_id}
NameTypeDescription
video_idRequired
stringVideo id của TikTok.

Request

curl "https://api.next.toktokdata.live/v1/videos/7400000000000000001" \  -H "Authorization: Bearer $ROOMSCOPE_API_KEY"

Response

200 OK
{  "data": {    "video": {      "videoId": "7990000000000000001",      "tiktokUserId": "990000000000000001",      "uniqueId": "linh.live",      "description": "Video 1",      "createTime": "2026-10-31T10:51:44.935Z",      "coverUrl": null,      "durationSeconds": null,      "playCount": 10000,      "diggCount": 1000,      "commentCount": 100,      "shareCount": null,      "collectCount": null,      "firstSeenAt": "2026-11-01T10:51:45.590Z",      "lastRefreshedAt": "2026-11-01T10:36:44.935Z",      "history": []    }  },  "provenance": {    "observedAt": "2026-11-01T10:36:44.935Z",    "freshness": "near_realtime",    "source": "public_creator_content",    "sourceKind": "derived",    "coverageStatus": "observed",    "methodologyVersion": "content-v1",    "window": null  }}

Lỗi

  • 400 Tham số hoặc body không hợp lệ; code cho biết vấn đề.
  • 401 API key bị thiếu hoặc không xác định.
  • 402 Ví credit của workspace không đủ cho lệnh gọi; resetAt cho biết khi nào credit được reset.
  • 403 Key thiếu scope, hoặc gói không bao gồm tính năng này.
  • 429 Vượt tốc độ request (theo giây, theo phút hoặc theo ngày); hãy tuân theo Retry-After.

Liệt kê bình luận của video

GET/v1/videos/{video_id}/comments

Bình luận đã lưu; truyền parentCommentId để lấy các trả lời của một bình luận.

Scopecontent:readCreditĐọc dữ liệu cache

Tham số path

Tham số path · GET /v1/videos/{video_id}/comments
NameTypeDescription
video_idRequired
stringVideo id của TikTok.

Tham số query

Tham số query · GET /v1/videos/{video_id}/comments
NameTypeDescription
parentCommentIdOptional
stringTrả về các trả lời của bình luận này.
cursorOptional
stringCursor mờ lấy từ nextCursor của trang trước.
limitOptional
integerSố bình luận mỗi trang.

Request

curl "https://api.next.toktokdata.live/v1/videos/7400000000000000001/comments" \  -H "Authorization: Bearer $ROOMSCOPE_API_KEY"

Response

200 OK
{  "data": {    "videoId": "7400000000000000001",    "parentCommentId": null,    "comments": [      {        "commentId": "7400000000000100001",        "text": "See you at 9pm!",        "diggCount": 42,        "replyCount": 3,        "createTime": "2026-10-31T13:05:00Z",        "authorUniqueId": "fan.one"      }    ],    "nextCursor": null,    "hasMore": false  },  "provenance": {    "observedAt": "2026-11-01T10:36:44.935Z",    "freshness": "near_realtime",    "source": "public_video_comments",    "sourceKind": "derived",    "coverageStatus": "observed",    "methodologyVersion": "comments-v1",    "window": null  }}

Lỗi

  • 400 Tham số hoặc body không hợp lệ; code cho biết vấn đề.
  • 401 API key bị thiếu hoặc không xác định.
  • 402 Ví credit của workspace không đủ cho lệnh gọi; resetAt cho biết khi nào credit được reset.
  • 403 Key thiếu scope, hoặc gói không bao gồm tính năng này.
  • 429 Vượt tốc độ request (theo giây, theo phút hoặc theo ngày); hãy tuân theo Retry-After.
Trang này có hữu ích không?