> ## Documentation Index
> Fetch the complete documentation index at: https://myco-29fc6df6-sweetmantech-myc-3925-docs-document-the-apiar.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Comments

> Fetch Instagram comments for multiple post URLs using Apify's Instagram Comment Scraper. The actual comment data will be available in the Apify dataset after the run completes.



## OpenAPI

````yaml GET /api/instagram/comments
openapi: 3.1.0
info:
  title: Recoup API
  description: >-
    API documentation for the Recoup platform - an AI agent platform for the
    music industry
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://recoup-api.vercel.app
security:
  - apiKeyAuth: []
paths:
  /api/instagram/comments:
    get:
      description: >-
        Fetch Instagram comments for multiple post URLs using Apify's Instagram
        Comment Scraper. The actual comment data will be available in the Apify
        dataset after the run completes.
      parameters:
        - name: postUrls
          in: query
          description: Array of Instagram post URLs to fetch comments for
          required: true
          schema:
            type: array
            items:
              type: string
          style: form
          explode: true
        - name: resultsLimit
          in: query
          description: 'Maximum number of comments to fetch (default: 10000)'
          required: false
          schema:
            type: integer
            default: 10000
        - name: isNewestComments
          in: query
          description: >-
            Whether to fetch newest comments first. Set to true for newest
            first, false for oldest first, or omit for platform default sorting
          required: false
          schema:
            type: boolean
      responses:
        '200':
          description: Apify scraper run started successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApifyRunResult'
        '400':
          description: Bad request - missing required parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InstagramErrorResponse'
      servers:
        - url: https://api.recoupable.com
components:
  schemas:
    ApifyRunResult:
      type: object
      properties:
        runId:
          type: string
          description: Unique identifier for the Apify run
        datasetId:
          type: string
          description: Unique identifier for the dataset containing scraped data
        error:
          type: string
          nullable: true
          description: Error message if the run failed (null if successful)
    InstagramErrorResponse:
      type: object
      properties:
        status:
          type: string
          enum:
            - error
          description: Status of the request
        message:
          type: string
          description: Error message describing what went wrong
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Your Recoup API key. [Learn more](/quickstart#api-keys).

````