> ## Documentation Index
> Fetch the complete documentation index at: https://docs.socq.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# TikTok Comments

> Collect top-level comments from public TikTok videos.

# TikTok Comments

Collect top-level comments from one or more public video URLs.

```json theme={"system"}
{
  "urls": ["https://www.tiktok.com/@example/video/7234567890123456789"],
  "results_limit": 100
}
```

`results_limit` defaults to 100 and applies to each video URL.

## Result Item

```json theme={"system"}
{
  "id": "7234567890123456790",
  "platform": "tiktok",
  "resource": "comments",
  "type": "comment",
  "url": "https://www.tiktok.com/@example/video/7234567890123456789",
  "text": "Great video!",
  "author": {
    "id": "6784642169778881543",
    "username": "viewer",
    "name": "Viewer",
    "url": "https://www.tiktok.com/@viewer",
    "avatar_url": "https://example.com/avatar.jpg",
    "is_verified": false,
    "is_private": null
  },
  "metrics": {
    "likes_count": 42,
    "replies_count": 5
  },
  "mentions": [],
  "media": [],
  "created_at": "2023-01-01T00:00:00",
  "collected_at": "2026-07-15T10:30:00",
  "extra": {
    "parent_comment_id": null,
    "liked_by_author": false,
    "pinned_by_author": false
  }
}
```


## OpenAPI

````yaml api-manual/agent-api/agent-api.json POST /v1/tiktok/comments
openapi: 3.0.0
info:
  title: Agent API
  description: Asynchronous social data collection API
  version: 1.0.0
servers:
  - url: https://api.socq.ai
    description: Production server
security:
  - BearerAuth: []
paths:
  /v1/tiktok/comments:
    post:
      tags:
        - Agent API
      summary: Submit TikTok Comments task
      operationId: submitTikTokCommentsTask
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TikTokCommentsRequest'
      responses:
        '200':
          $ref: '#/components/responses/TaskSubmitted'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/PaymentRequired'
components:
  schemas:
    TikTokCommentsRequest:
      type: object
      additionalProperties: false
      required:
        - urls
      properties:
        urls:
          type: array
          minItems: 1
          items:
            type: string
            format: uri
          description: Public TikTok video URLs.
        results_limit:
          type: integer
          minimum: 1
          default: 100
          description: Maximum top-level comments to collect per video URL.
        callback_url:
          type: string
          format: uri
          description: Optional callback URL.
    SubmitResponse:
      type: object
      properties:
        code:
          type: integer
          example: 200
        data:
          type: object
          properties:
            task_id:
              type: string
              example: A1B2C3D4E5F6G7H8
            status:
              type: string
              example: queued
            created_time:
              type: string
              format: date-time
    ErrorResponse:
      type: object
      properties:
        code:
          type: integer
        error:
          type: object
          properties:
            message:
              type: string
            type:
              type: string
  responses:
    TaskSubmitted:
      description: Task submitted
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/SubmitResponse'
          example:
            code: 200
            data:
              task_id: A1B2C3D4E5F6G7H8
              status: queued
              created_time: '2026-07-17T10:29:30'
    BadRequest:
      description: Invalid request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    Unauthorized:
      description: Invalid or missing API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    PaymentRequired:
      description: Insufficient credits
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key

````