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

# Instagram Post Comments API

> Top-level comments for a post, one page at a time.



## OpenAPI

````yaml openapi.json GET /v1/instagram/posts/comments
openapi: 3.0.0
info:
  title: ScoutLayer API
  version: 1.0.0
  description: Competitor data. One API.
servers:
  - url: https://api.scoutlayer.io
    description: Production
security:
  - ApiKeyAuth: []
  - BearerAuth: []
paths:
  /v1/instagram/posts/comments:
    get:
      tags:
        - instagram
        - posts
        - comments
      summary: Get one page of comments on an Instagram post
      description: Top-level comments for a post, one page at a time.
      parameters:
        - schema:
            type: string
            format: uri
            example: https://www.instagram.com/p/C1a2b3cD4eF/
          required: true
          name: url
          in: query
        - schema:
            type: string
          required: false
          name: cursor
          in: query
      responses:
        '200':
          description: Get one page of comments on an Instagram post
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InstagramCommentList'
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '402':
          description: Insufficient credits
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '501':
          description: This endpoint is declared but not yet implemented — never charged
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '502':
          description: The orchestrator failed or was unreachable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - ApiKeyAuth: []
        - BearerAuth: []
components:
  schemas:
    InstagramCommentList:
      type: object
      properties:
        comments:
          type: array
          items:
            $ref: '#/components/schemas/InstagramComment'
        nextCursor:
          type: string
          nullable: true
          description: >-
            Opaque pagination cursor — pass as ?cursor= for the next page; null
            on the last page
        hasMore:
          type: boolean
      required:
        - comments
        - nextCursor
        - hasMore
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              example: NOT_FOUND
            message:
              type: string
          required:
            - code
            - message
      required:
        - error
    InstagramComment:
      type: object
      properties:
        commentId:
          type: string
        text:
          type: string
        publishedAt:
          type: string
        likes:
          type: integer
        replyCount:
          type: integer
        author:
          type: object
          properties:
            handle:
              type: string
            name:
              type: string
            avatarUrl:
              type: string
            isVerified:
              type: boolean
          required:
            - handle
            - name
            - avatarUrl
            - isVerified
      required:
        - commentId
        - text
        - publishedAt
        - likes
        - replyCount
        - author
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: >-
        API key passed as the X-API-Key request header. Recommended for
        server-to-server calls.
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        API key (or OAuth token) passed as a Bearer token in the Authorization
        header.

````