Skip to content
Managed gateway · LeanPool

Comments by ID

Look up comments by their IDs.

GETapi.tikultra.com/v1/video/comments/by-idsStandard · 5 credits
Upstream/tiktok/comment/status/batch_get/v1Every plan

Parameters

NameTypeDescription
comment_idsrequiredstringComma-separated comment IDs, up to 50.
e.g. 7705860011122233344

Pricing

PlanPer callPer 1,000 calls
Starter5 credits$0.58
Growth5 credits$0.40
Scale5 credits$0.29

Response fields

FieldTypeDescription
status_codeintegerUpstream TikTok mobile status code (0 indicates success).
requested_countintegerTotal requested count.
itemsobject[]Page of normalized records returned by this endpoint.
items[].cidstring64-bit Snowflake comment ID.
items[].aweme_idstring64-bit TikTok Snowflake post ID (top 32 bits encode UTC creation timestamp).
items[].statusintegerCurrent lifecycle or health status.
items[].textstringUTF-8 text body.
items[].create_timeintegerUnix timestamp (seconds) when the item was created.
items[].digg_countintegerLike count on this item or comment.
log_pbobjectUpstream request trace envelope from the mobile gateway.
log_pb.impr_idstringUpstream TikTok impression / trace identifier.

Responses

A 200 returns JSON with stable field names. Every response carries x-credits-cost, x-credits-tier and x-credits-remaining. Errors return a JSON body with a stable code and cost 0 credits. Error codes

import os
from tikultra import TikUltra

with TikUltra(api_key=os.environ["TIKULTRA_KEY"]) as client:
    res = client.request("GET", "/v1/video/comments/by-ids", params={
        "comment_ids": "7705860011122233344",
    })
    print(res.credits_cost, res.data)
{
  "status_code": 0,
  "requested_count": 1,
  "items": [
    {
      "cid": "7705860011122233344",
      "aweme_id": "7705852133855161377",
      "status": 1,
      "text": "Where is this keyboard from?",
      "create_time": 1794159100,
      "digg_count": 412,
      "reply_comment_total": 9,
      "comment_language": "en",
      "user": {
        "uid": "6970000000000000002",
        "sec_uid": "MS4wLjABAAAAkbfan991xQp2mN8vR4wL7tH3zK5y",
        "unique_id": "kbfan",
        "nickname": "KB Fan"
      }
    }
  ],
  "log_pb": {
    "impr_id": "202611120200419F8E7D6C5B4A3210"
  }
}
Try it in the playgroundFull reference in the docs

More in Videos & comments

Ready to build?

Start with 2,500 free credits and test every public endpoint, then pick a plan.