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

# Comments

> Get top-level comments from a YouTube video, paginated at ~20 per page. Use the `continuationToken` from each response to load more. Maximum retrievable: ~1,000 comments with `order=top` or ~7,000 with `order=newest`. Note: YouTube's displayed comment count includes reply threads, so the total returned may be lower.

<Note>
  💳 **1 credit** per request — returns \~20 comments per page. Use `continuationToken` to paginate.
</Note>


## OpenAPI

````yaml GET /v1/scrape/youtube/video/comments
openapi: 3.1.0
info:
  title: SociaVault API
  version: 1.0.0
  description: >-
    # SociaVault API Documentation


    The SociaVault API provides comprehensive access to social media data
    extraction across multiple platforms.


    ## Features


    - **Multi-Platform Support**: TikTok, Instagram, YouTube, Facebook, Twitter,
    Reddit, Threads, and more

    - **Credit-Based System**: Pay-as-you-go pricing with transparent credit
    costs

    - **High Performance**: Fast, reliable data extraction

    - **Comprehensive Data**: Detailed user profiles, videos, posts, comments,
    and analytics


    ## Authentication


    All API requests require authentication using an API key in the `X-API-Key`
    header:


    ```bash

    X-API-Key: sk_live_your_api_key_here

    ```


    Get your API key from the [SociaVault
    Dashboard](https://sociavault.com/dashboard).


    ## Credits


    Each endpoint consumes credits based on data complexity:

    - Simple requests (profiles): 1 credit

    - Complex requests (demographics): 20+ credits

    - Paginated requests: Credits per page


    Check your credit balance in the dashboard or via the API.


    ## Support


    - **Documentation**: https://docs.sociavault.com

    - **Email**: support@sociavault.com

    - **Discord**: https://discord.gg/sociavault
  contact:
    name: SociaVault Support
    email: support@sociavault.com
    url: https://sociavault.com/support
  license:
    name: Commercial
    url: https://sociavault.com/terms
servers:
  - url: https://api.sociavault.com
    description: Production API
security:
  - ApiKeyAuth: []
tags:
  - name: account
    description: Account management and credit balance
    externalDocs:
      description: Learn more
      url: https://docs.sociavault.com/account
  - name: tiktok
    description: Scrape TikTok profiles, videos, and more
    externalDocs:
      description: Learn more
      url: https://docs.sociavault.com/platforms/tiktok
  - name: tiktok-shop
    description: Everything about TikTok Shop
    externalDocs:
      description: Learn more
      url: https://docs.sociavault.com/platforms/tiktok-shop
  - name: instagram
    description: Gets Instagram profiles, posts, and reels
    externalDocs:
      description: Learn more
      url: https://docs.sociavault.com/platforms/instagram
  - name: youtube
    description: Scrape YouTube channels, videos, and more
    externalDocs:
      description: Learn more
      url: https://docs.sociavault.com/platforms/youtube
  - name: linkedin
    description: Scrape LinkedIn
    externalDocs:
      description: Learn more
      url: https://docs.sociavault.com/platforms/linkedin
  - name: facebook
    description: Get public Facebook profiles and posts
    externalDocs:
      description: Learn more
      url: https://docs.sociavault.com/platforms/facebook
  - name: facebookAdLibrary
    description: Scrapes the Facebook (Meta) Ad Library
    externalDocs:
      description: Learn more
      url: https://docs.sociavault.com/platforms/facebookAdLibrary
  - name: facebookMarketplace
    description: Search Facebook Marketplace and pull full listing details
    externalDocs:
      description: Learn more
      url: https://docs.sociavault.com/platforms/facebookMarketplace
  - name: googleAdLibrary
    description: >-
      Scrape the Google Ad Transparency Library. *This only gets the public ads.
      Some ads you need to log in for and sadly we can't get those. Also, since
      there are so many variations, the return types might not all be 100% the
      same.
    externalDocs:
      description: Learn more
      url: https://docs.sociavault.com/platforms/googleAdLibrary
  - name: linkedinAdLibrary
    description: Search the LinkedIn Ad Library
    externalDocs:
      description: Learn more
      url: https://docs.sociavault.com/platforms/linkedinAdLibrary
  - name: twitter
    description: Get Twitter profiles, tweets, followers and more
    externalDocs:
      description: Learn more
      url: https://docs.sociavault.com/platforms/twitter
  - name: reddit
    description: Scrape Reddit posts and comments
    externalDocs:
      description: Learn more
      url: https://docs.sociavault.com/platforms/reddit
  - name: threads
    description: Get Threads posts
    externalDocs:
      description: Learn more
      url: https://docs.sociavault.com/platforms/threads
  - name: google
    description: Scrape Google search results
    externalDocs:
      description: Learn more
      url: https://docs.sociavault.com/platforms/google
paths:
  /v1/scrape/youtube/video/comments:
    get:
      tags:
        - youtube
      summary: Comments
      description: >-
        Get top-level comments from a YouTube video, paginated at ~20 per page.
        Use the `continuationToken` from each response to load more. Maximum
        retrievable: ~1,000 comments with `order=top` or ~7,000 with
        `order=newest`. Note: YouTube's displayed comment count includes reply
        threads, so the total returned may be lower.
      operationId: youtube_Comments
      parameters:
        - name: url
          in: query
          description: YouTube video URL
          required: true
          schema:
            type: string
            example: https://www.youtube.com/watch?v=dQw4w9WgXcQ
        - name: continuationToken
          in: query
          description: >-
            Continuation token to get more comments. Get 'continuationToken'
            from previous response.
          required: false
          schema:
            type: string
            example: 4qmFsgKrCBIYVUNkRkpXVWE0M3NtUm00SXBIQnB
        - name: order
          in: query
          description: Order of comments
          required: false
          schema:
            type: string
            enum:
              - top
              - newest
            example: top
      responses:
        '200':
          description: >-
            Successful response


            **Key Response Fields:**

            - `data.comments[0].id`: Unique comment ID

            - `data.comments[0].content`: Comment text content

            - `data.comments[0].publishedTime`: ISO timestamp of when the
            comment was posted

            - `data.comments[0].author.name`: Commenter's channel name

            - `data.comments[0].author.channelId`: Commenter's YouTube channel
            ID

            - `data.comments[0].author.avatarUrl`: Commenter's avatar image URL

            - `data.comments[0].author.isVerified`: Whether the commenter is a
            verified account

            - `data.comments[0].engagement.likes`: Number of likes on the
            comment

            - `data.comments[0].engagement.replies`: Number of replies to the
            comment

            - `data.continuationToken`: Pagination cursor — pass as
            `continuationToken` to get the next page
          content:
            application/json:
              example:
                success: true
                data:
                  success: true
                  comments:
                    '0':
                      id: Ugz02PQAsHBQfJ_PIxR4AaABAg
                      content: Beste!
                      publishedTimeText: 3 months ago
                      publishedTime: '2025-11-08T23:18:52.207Z'
                      replyLevel: 0
                      author:
                        name: '@non-speakingandfabulouswit6095'
                        channelId: UCvFT6_Z1fpHOmj6T-vxHTdg
                        isVerified: false
                        isCreator: false
                        avatarUrl: >-
                          https://yt3.ggpht.com/krdXzb3IB_M33rRAZ0PqcjLV0pXVQdxUQtjbUHQsRvrQPIImi3IP0zcQeFFrHOJrlaR75y-kOA=s88-c-k-c0x00ffffff-no-rj
                        channelUrl: https://youtube.com/@non-speakingandfabulouswit6095
                      engagement:
                        likes: 3
                        replies: 0
                  continuationToken: >-
                    Eg0SCzRPbUlfY0xZVEpRGAYy2QIKrwJnZXRfcmFua2VkX3N0cmVhbXMtLUNxVUJDSUFFRlJlMzBUZ2FtZ0VLbFFFSTJGOFFnQVFZQnlLS0FYdVk0SUtpdVJxMHlobENQaEpmdGg2VHdWcFFuMG1qTl9GS1RGSk4xdEJXX3ltZ3BRcUpOWHR0ZUNTejBETkpORHpLdFNqX1UxMUxXTWViYTZlVXlWdk5FbGNRckFZeFZnbF9XbDdfUlZsa1dHZHFHQ0laWGhsaW1FSDRnVERxVVJvVWVndk5WTEF5VHBsZklGSl9RT0lLUjFaaDBmYjZEcE5uWGdnVmxSNWRLZEdUaXkyMlFYclJmQkFVRWdVSWlTQVlBQklGQ0tnZ0dBQVNCUWlJSUJnQUVnVUloeUFZQUJJSENJVWdFQlFZQVJJRkNMc2dHQUEiESILNE9tSV9jTFlUSlEwAHgBKBRCEGNvbW1lbnRzLXNlY3Rpb24%3D
                credits_used: 1
                endpoint: youtube/video/comments
        '400':
          description: Bad Request - Invalid parameters or missing required fields
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: 'Missing required parameter: handle'
                  endpoint:
                    type: string
                  credits_required:
                    type: integer
                required:
                  - error
        '401':
          description: Unauthorized - Invalid or missing API key
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: Invalid API key
                  docs:
                    type: string
                    example: https://docs.sociavault.com/authentication
                required:
                  - error
        '402':
          description: Payment Required - Insufficient credits
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: Insufficient credits
                  required:
                    type: integer
                    example: 1
                    description: Credits required for this request
                  available:
                    type: integer
                    example: 0
                    description: Credits currently available
                required:
                  - error
                  - required
                  - available
        '500':
          description: Internal Server Error - Service configuration or processing error
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: Service configuration error
                required:
                  - error
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: |-
        API key for authentication. Format: `sk_live_xxxxxxxxxxxxx`

        Get your API key from the [Dashboard](https://sociavault.com/dashboard).

````