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

# Get Instagram post comments

> Use this operation to get instagram post comments. Authenticate with Authorization: Bearer <AGENTBODY_API_KEY>. Pass the Instagram post shortcode as post_code; do not pass a full URL. Pagination: omit cursor on the first request. When has_more is true, pass next_cursor unchanged as cursor. Cursors are opaque; do not construct, modify, or reuse them outside this pagination flow. Correct a 400 invalid-input error; do not retry unchanged. Retry only declared 502, 503, or 504 responses with backoff.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/instagram/post/comments
openapi: 3.1.0
info:
  description: >-
    Direct authenticated APIs for public social data, people data, transcripts,
    documents, text, and SEO. Send an API key as a Bearer token. Responses never
    include provider credentials or raw provider payloads.
  license:
    name: Proprietary
    url: https://agentbody.io
  title: AgentBody API
  version: '2026-08-19'
servers:
  - url: https://api.agentbody.io
security:
  - bearerAuth: []
paths:
  /v1/instagram/post/comments:
    get:
      tags:
        - instagram
      summary: Get Instagram post comments
      description: >-
        Use this operation to get instagram post comments. Authenticate with
        Authorization: Bearer <AGENTBODY_API_KEY>. Pass the Instagram post
        shortcode as post_code; do not pass a full URL. Pagination: omit cursor
        on the first request. When has_more is true, pass next_cursor unchanged
        as cursor. Cursors are opaque; do not construct, modify, or reuse them
        outside this pagination flow. Correct a 400 invalid-input error; do not
        retry unchanged. Retry only declared 502, 503, or 504 responses with
        backoff.
      operationId: get_v1_instagram_post_comments
      parameters:
        - $ref: '#/components/parameters/PostCode'
        - $ref: '#/components/parameters/Cursor'
      responses:
        '200':
          content:
            application/json:
              example:
                has_more: false
                items:
                  - author:
                      name: Example User
                      profile_url: https://www.instagram.com/example_user/
                      username: example_user
                    created_at: '2026-01-01T00:00:00Z'
                    id: comment_123
                    like_count: 2
                    reply_count: 0
                    text: Example public comment.
                next_cursor: null
              schema:
                $ref: '#/components/schemas/InstagramCommentList'
          description: Canonical Instagram comments.
          headers:
            X-Request-Id:
              description: Gateway request identifier for support and audit.
              schema:
                format: uuid
                type: string
        '400':
          content:
            application/json:
              example:
                error:
                  code: INVALID_ARGUMENT
                  message: example error
              schema:
                additionalProperties: false
                properties:
                  error:
                    additionalProperties: false
                    properties:
                      code:
                        const: INVALID_ARGUMENT
                        type: string
                      message:
                        type: string
                    required:
                      - code
                      - message
                    type: object
                required:
                  - error
                type: object
          description: Correct the input; do not retry unchanged.
          headers:
            X-Request-Id:
              description: Gateway request identifier for support and audit.
              schema:
                format: uuid
                type: string
        '401':
          content:
            application/json:
              example:
                error:
                  code: UNAUTHENTICATED
                  message: example error
              schema:
                additionalProperties: false
                properties:
                  error:
                    additionalProperties: false
                    properties:
                      code:
                        const: UNAUTHENTICATED
                        type: string
                      message:
                        type: string
                    required:
                      - code
                      - message
                    type: object
                required:
                  - error
                type: object
          description: Configure a valid API key; do not retry unchanged.
          headers:
            X-Request-Id:
              description: Gateway request identifier for support and audit.
              schema:
                format: uuid
                type: string
        '402':
          content:
            application/json:
              example:
                error:
                  code: INSUFFICIENT_BALANCE
                  message: example error
              schema:
                additionalProperties: false
                properties:
                  error:
                    additionalProperties: false
                    properties:
                      code:
                        const: INSUFFICIENT_BALANCE
                        type: string
                      message:
                        type: string
                    required:
                      - code
                      - message
                    type: object
                required:
                  - error
                type: object
          description: Recharge required; do not retry.
          headers:
            X-Request-Id:
              description: Gateway request identifier for support and audit.
              schema:
                format: uuid
                type: string
        '502':
          content:
            application/json:
              example:
                error:
                  code: UPSTREAM_INVALID_RESPONSE
                  message: example error
              schema:
                additionalProperties: false
                properties:
                  error:
                    additionalProperties: false
                    properties:
                      code:
                        const: UPSTREAM_INVALID_RESPONSE
                        type: string
                      message:
                        type: string
                    required:
                      - code
                      - message
                    type: object
                required:
                  - error
                type: object
          description: Retry with backoff, then report temporary unavailability.
          headers:
            X-Request-Id:
              description: Gateway request identifier for support and audit.
              schema:
                format: uuid
                type: string
        '503':
          content:
            application/json:
              example:
                error:
                  code: UPSTREAM_UNAVAILABLE
                  message: example error
              schema:
                additionalProperties: false
                properties:
                  error:
                    additionalProperties: false
                    properties:
                      code:
                        const: UPSTREAM_UNAVAILABLE
                        type: string
                      message:
                        type: string
                    required:
                      - code
                      - message
                    type: object
                required:
                  - error
                type: object
          description: Retry with backoff, then report temporary unavailability.
          headers:
            X-Request-Id:
              description: Gateway request identifier for support and audit.
              schema:
                format: uuid
                type: string
        '504':
          content:
            application/json:
              example:
                error:
                  code: UPSTREAM_TIMEOUT
                  message: example error
              schema:
                additionalProperties: false
                properties:
                  error:
                    additionalProperties: false
                    properties:
                      code:
                        const: UPSTREAM_TIMEOUT
                        type: string
                      message:
                        type: string
                    required:
                      - code
                      - message
                    type: object
                required:
                  - error
                type: object
          description: Retry with backoff, then report temporary unavailability.
          headers:
            X-Request-Id:
              description: Gateway request identifier for support and audit.
              schema:
                format: uuid
                type: string
components:
  parameters:
    PostCode:
      description: >-
        Instagram post shortcode. For https://www.instagram.com/p/DcLs3w6GZGH/,
        use DcLs3w6GZGH. Do not pass the full URL.
      example: DcLs3w6GZGH
      in: query
      name: post_code
      required: true
      schema:
        minLength: 1
        type: string
    Cursor:
      description: >-
        Opaque cursor returned by the preceding response. Omit it on the first
        request. Do not construct, modify, or reuse it outside this pagination
        flow.
      example: next-page-token
      in: query
      name: cursor
      required: false
      schema:
        maxLength: 1000
        type: string
  schemas:
    InstagramCommentList:
      additionalProperties: false
      properties:
        has_more:
          type: boolean
        items:
          items:
            $ref: '#/components/schemas/InstagramComment'
          type: array
        next_cursor:
          type:
            - string
            - 'null'
      required:
        - items
        - next_cursor
        - has_more
      type: object
    InstagramComment:
      additionalProperties: false
      properties:
        author:
          $ref: '#/components/schemas/InstagramCommentAuthor'
        created_at:
          type: string
        id:
          type: string
        like_count:
          type:
            - integer
            - 'null'
        reply_count:
          type:
            - integer
            - 'null'
        text:
          type: string
      required:
        - id
        - text
        - created_at
        - like_count
        - reply_count
        - author
      type: object
    InstagramCommentAuthor:
      additionalProperties: false
      properties:
        name:
          type:
            - string
            - 'null'
        profile_url:
          format: uri
          type:
            - string
            - 'null'
        username:
          type:
            - string
            - 'null'
      required:
        - username
        - name
        - profile_url
      type: object
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````