> ## 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 comments from an Instagram post or reel, paginated at ~15 per page. Use the `cursor` from each response to load more. Note: Instagram's displayed comment count includes replies and hidden comments — this endpoint returns top-level visible comments only, so the total may be lower than what is shown on the post.

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

Use the `cursor` parameter from the response to get the next page of comments.


## OpenAPI

````yaml GET /v1/scrape/instagram/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/instagram/comments:
    get:
      tags:
        - instagram
      summary: Comments
      description: >-
        Get comments from an Instagram post or reel, paginated at ~15 per page.
        Use the `cursor` from each response to load more. Note: Instagram's
        displayed comment count includes replies and hidden comments — this
        endpoint returns top-level visible comments only, so the total may be
        lower than what is shown on the post.
      operationId: instagram_Comments
      parameters:
        - name: url
          in: query
          description: Instagram post or reel URL
          required: true
          schema:
            type: string
            example: https://www.instagram.com/reel/DOq6eV6iIgD
        - name: cursor
          in: query
          description: >-
            Cursor for pagination. Get 'cursor' from previous response to fetch
            more comments.
          required: false
          schema:
            type: string
            example: eyJjYWNoZWRfY29tbWVud...
      responses:
        '200':
          description: >-
            Successful response


            **Key Response Fields:**

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

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

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

            - `data.comments[0].user.username`: Commenter's Instagram username

            - `data.comments[0].user.profile_pic_url`: Commenter's profile
            picture URL

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

            - `data.cursor`: Pagination cursor — pass to the `cursor` parameter
            to fetch the next page
          content:
            application/json:
              example:
                success: true
                data:
                  success: true
                  comments:
                    '0':
                      id: '18310684165172235'
                      text: >-
                        Love this!! What a wonderful lady 😍 and Rocco looks
                        like the perfect gentleman to accompany this lady round
                        the park. And are u even talking to an American if they
                        dont end the chat with "enjoy your vacation" ❤️🙌😂
                      created_at: '2025-09-16T18:09:34.000Z'
                      user:
                        is_verified: false
                        id: '571758797'
                        pk: '571758797'
                        is_unpublished: null
                        profile_pic_url: >-
                          https://scontent-ord5-2.cdninstagram.com/v/t51.2885-19/572484665_18536731177046798_3082891019645637815_n.jpg?stp=dst-jpg_s150x150_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby4xMDgwLmMyIn0&_nc_ht=scontent-ord5-2.cdninstagram.com&_nc_cat=102&_nc_oc=Q6cZ2QHwD3jRssMvvcvdpm-yxUxZt035fZ2wTmQiLzP2In-sXVzT-1oy8hOVx3EH_zSfxmQ&_nc_ohc=r_SZ8MmILh0Q7kNvwEnOzeH&_nc_gid=oBuK8koLyy-tglzaGXao7w&edm=AKp6CbIBAAAA&ccb=7-5&oh=00_AftVvuJ4RpjBfiE86UIaH6WIFfl0A_rM0v-xRH8hCspPIw&oe=698ED76F&_nc_sid=d62176
                        username: amybeard1980
                        fbid_v2: '17841401403918933'
                  cursor: >-
                    eyJjYWNoZWRfY29tbWVudHNfY3Vyc29yIjogIjE4MDQ5Mzk4MTIyMzA2NzIzIiwgImJpZmlsdGVyX3Rva2VuIjogIktIa0FnNlprR1o5WVFBRGx2VTRtdVZKQUFJWGZ6SDItTlVBQUJfZURSZ0plUVFBSDVZNnZMcUFfQUF0c1FtRjREVUVBem1hYnJuRXhRQUF3VUwtbU1VSkFBSFVaaE5TSjFEOEFkcFpnWXc0aVFBQ1lWQUxvUldSQUFCaXdsbXQtSlVBQVd5NnhVYUJEUUFBY1ctM1RhY0VfQUI4Q0FWa29HMEFBQUE9PSJ9
                credits_used: 1
                endpoint: instagram/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).

````