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

# Read public Instagram comments

> Collect up to 100 unique visible comments, billed in blocks of 25 returned comments.

See the [Instagram guide](https://docs.vexqo.dev/instagram.md) for progressive credits and partial-coverage behavior.


## OpenAPI

````yaml GET /instagram/posts/comments
openapi: 3.1.0
info:
  title: Vexqo API
  description: >-
    Public Meta Ad Library, Reddit, Hacker News, Product Hunt, eBay, TikTok and
    Instagram data. Authenticate with X-API-Key. Follow response links for
    related resources and supported pagination; each collection request can use
    credits. Social lookups are fresh by default; max_age explicitly allows
    cached public data.
  version: 0.1.0
servers:
  - url: https://api.vexqo.dev
security: []
paths:
  /instagram/posts/comments:
    get:
      tags:
        - Public social data
      summary: Read public Instagram comments
      description: >-
        Collects up to 100 unique visible comments on a known public post.
        Results remain partial; collapsed replies and complete comment trees are
        not guaranteed. Charges use returned comments in blocks of 25, with a
        one-block minimum.
      operationId: instagram_comments_instagram_posts_comments_get
      parameters:
        - name: target
          in: query
          required: true
          schema:
            type: string
            minLength: 3
            maxLength: 2048
            description: >-
              Post ID/shortcode or full public HTTPS post URL. Short links are
              unsupported.
            title: Target
          description: >-
            Post ID/shortcode or full public HTTPS post URL. Short links are
            unsupported.
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 100
            minimum: 1
            default: 25
            title: Limit
        - name: max_age
          in: query
          required: false
          schema:
            type: integer
            maximum: 300
            minimum: 0
            description: >-
              Maximum acceptable cached age in seconds. 0 (default) collects
              fresh. Cache hits have the same credit cost.
            default: 0
            title: Max Age
          description: >-
            Maximum acceptable cached age in seconds. 0 (default) collects
            fresh. Cache hits have the same credit cost.
        - name: country
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                pattern: ^[A-Za-z]{2}$
              - type: 'null'
            description: Proxy exit country, not a filter of the post's audience or origin.
            title: Country
          description: Proxy exit country, not a filter of the post's audience or origin.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommentsResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    CommentsResponse:
      properties:
        source:
          $ref: '#/components/schemas/InstagramCommentsSource'
        links:
          additionalProperties:
            anyOf:
              - type: string
              - type: 'null'
          type: object
          title: Links
        shortcode:
          type: string
          title: Shortcode
        post_url:
          type: string
          title: Post Url
        comments_total:
          anyOf:
            - type: integer
              minimum: 0
            - type: 'null'
          title: Comments Total
          description: >-
            The source's displayed total, when supplied. Separate from returned
            comments; may include replies or unavailable comments.
        comments:
          items:
            $ref: >-
              #/components/schemas/src__adapters__inbound__http__social_contract__Comment
          type: array
          maxItems: 100
          title: Comments
        comments_returned:
          type: integer
          maximum: 100
          minimum: 0
          title: Comments Returned
          default: 0
        partial:
          type: boolean
          const: true
          title: Partial
        has_more:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Has More
          description: >-
            Whether the observed comment connection advertises more pages; not a
            claim about all replies or complete coverage.
        stopping_reason:
          type: string
          enum:
            - limit_reached
            - source_exhausted
            - load_timeout
            - no_progress
          title: Stopping Reason
      type: object
      required:
        - source
        - links
        - shortcode
        - post_url
        - comments_total
        - comments
        - partial
        - has_more
        - stopping_reason
      title: CommentsResponse
      example:
        comments:
          - created_at: '2026-12-05T12:00:00+00:00'
            id: '900000000301'
            like_count: 0
            parent_id: '900000000300'
            text: Example public comment. This is synthetic documentation data.
            user:
              profile_url: https://www.instagram.com/vexqo_demo_reader/
              username: vexqo_demo_reader
              verified: false
        comments_returned: 1
        comments_total: 2
        has_more: false
        links:
          post: https://api.vexqo.dev/instagram/posts?target=DEMOPOST001&max_age=0
          self: >-
            https://api.vexqo.dev/instagram/posts/comments?target=DEMOPOST001&limit=25&max_age=0
          source: https://www.instagram.com/p/DEMOPOST001/
        partial: true
        post_url: https://www.instagram.com/p/DEMOPOST001/
        shortcode: DEMOPOST001
        source:
          age_seconds: 0
          cached: false
          collector: curl_cffi
          exit_country: us
          method: public_web_page
          observed_at: '2026-12-05T12:00:00+00:00'
          platform: instagram
          url: https://www.instagram.com/p/DEMOPOST001/
        stopping_reason: source_exhausted
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    InstagramCommentsSource:
      properties:
        platform:
          type: string
          const: instagram
          title: Platform
        method:
          type: string
          enum:
            - public_web_page
            - rendered_public_page
            - demo_fixture
          title: Method
        collector:
          type: string
          enum:
            - curl_cffi
            - camoufox
            - none
          title: Collector
        url:
          type: string
          title: Url
        observed_at:
          type: string
          title: Observed At
        cached:
          type: boolean
          title: Cached
        age_seconds:
          type: number
          maximum: 300
          minimum: 0
          title: Age Seconds
        exit_country:
          anyOf:
            - type: string
            - type: 'null'
          title: Exit Country
          description: Collection exit country, not a content-country filter.
      type: object
      required:
        - platform
        - method
        - collector
        - url
        - observed_at
        - cached
        - age_seconds
        - exit_country
      title: InstagramCommentsSource
    src__adapters__inbound__http__social_contract__Comment:
      properties:
        id:
          type: string
          maxLength: 100
          minLength: 1
          title: Id
        text:
          anyOf:
            - type: string
            - type: 'null'
          title: Text
        created_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Created At
        user:
          $ref: '#/components/schemas/CommentUser'
        like_count:
          anyOf:
            - type: integer
              minimum: 0
            - type: 'null'
          title: Like Count
        parent_id:
          anyOf:
            - type: string
              maxLength: 100
              minLength: 1
            - type: 'null'
          title: Parent Id
          description: >-
            Source-supplied parent comment ID. Null does not establish that a
            comment is top-level.
      type: object
      required:
        - id
        - text
        - created_at
        - user
        - like_count
        - parent_id
      title: Comment
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    CommentUser:
      properties:
        username:
          anyOf:
            - type: string
              pattern: ^[A-Za-z0-9_][A-Za-z0-9_.]{0,29}$
            - type: 'null'
          title: Username
        profile_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Profile Url
        verified:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Verified
      type: object
      required:
        - username
        - profile_url
        - verified
      title: CommentUser
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.