{
  "openapi": "3.0.1",
  "info": {
    "title": "Instagram Comments Scraper: Reel Comments & Post Comments",
    "description": "Instagram reel comments and post comments as rows: text, author, verified badge, likes, time and comment link for public top-level comments. Date filters, new-comments-only on schedules, optional post caption and engagement. Paste post or reel links; no login.",
    "version": "0.1",
    "x-build-id": "YlB3CY7ERKyNm3BDo"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/automatic~instagram-comments-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-automatic-instagram-comments-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/automatic~instagram-comments-scraper/runs": {
      "post": {
        "operationId": "runs-sync-automatic-instagram-comments-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/automatic~instagram-comments-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-automatic-instagram-comments-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "postUrls": {
            "title": "Post or reel URLs",
            "minItems": 1,
            "maxItems": 1000,
            "type": "array",
            "description": "Public Instagram /p/ or /reel/ links (also the instagram.com/<username>/reel/… form) or shortcodes. Repeated links are collected once. Example: [\"https://www.instagram.com/p/DeTUk4sDSp-/\"]. Omit the field or leave it empty to run the sample post. Entries that are not post links are skipped and listed in OUTPUT.skippedSearches; the other posts still run.",
            "items": {
              "type": "string"
            }
          },
          "maxCommentsPerPost": {
            "title": "Maximum comments per post",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Maximum delivered comments per post after filtering and monitoring deduplication. Example: 20 (the prefilled cheap first run) or 100 (the default when the field is omitted). An empty run returns a small sample of 20 comments from the prefilled post. A cleared form value is treated as omitted."
          },
          "maxItems": {
            "title": "Maximum comments in total",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Maximum delivered comments across all supplied posts. Example: 20 (the prefilled cheap first run) or 1000 (the default when the field is omitted). A cleared form value is treated as omitted."
          },
          "maxPagesPerPost": {
            "title": "Maximum pages per post",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Bound the work when comments are old or already delivered. Includes the initial page. The summary reports when this limit stops collection. Example: 2 (the prefilled cheap first run) or 100 (the default when the field is omitted). A cleared form value is treated as omitted."
          },
          "onlyCommentsNewerThan": {
            "title": "Only comments newer than",
            "type": "string",
            "description": "Optional ISO timestamp with timezone, such as 2026-11-01T00:00:00Z. Deliver comments strictly after this time; unknown dates are skipped. Example: \"2026-11-01T00:00:00Z\". A cleared value is treated as omitted and uses the Actor's built-in default."
          },
          "monitoringKey": {
            "title": "Remember delivered comments",
            "maxLength": 200,
            "type": "string",
            "description": "Optional name for scheduled runs. Later runs skip IDs among the latest 50,000 deliveries remembered for this name. Do not overlap runs with the same name. Example: \"campaign-comments\". A cleared value is treated as omitted and uses the Actor's built-in default."
          },
          "includePostInfo": {
            "title": "Add the post's details to every comment",
            "type": "boolean",
            "description": "Off by default. Adds the post's caption, publish time, displayed like and comment counts, media type and author (username, ID, verified badge) to each comment row, and the full post details (location, co-authors, tagged accounts, topics, media links) to that post's entry in the run summary. Example: true. Read from the post page the run already collects, at no extra charge."
          },
          "includeAuthorLatestPosts": {
            "title": "Also collect each author's latest posts",
            "minimum": 0,
            "maximum": 12,
            "type": "integer",
            "description": "Off by default. For each creator in your list, also collect comments from this many of their latest posts, as Instagram lists them on the post page (posts published by that account only, up to 12). Added posts are collected after the ones you listed and charged like pasted ones. A creator's list opens once per run, by their first post in your list. Example: 3. Enter 0 or leave empty to keep it off. Raise maxItems, or the first post uses it up."
          },
          "proxyConfiguration": {
            "title": "Connection settings",
            "type": "object",
            "description": "Optional override for the automatic connection settings. Explicit settings replace the default route. Omitting this field uses the Actor's built-in default connection settings. A cleared form value is treated as omitted."
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}