{
  "openapi": "3.0.1",
  "info": {
    "title": "Instagram Comments Scraper: Posts, Reels, No Login",
    "description": "Scrape Instagram comments of public posts and reels with no login: paste links, codes, ids or profiles. Each row: the text as written, time, likes, GIF, hashtags, sentiment and its post. Every comment shown, date window, keyword and verified filters, a free coverage row per post. Pay per comment.",
    "version": "0.1",
    "x-build-id": "4wYSOdx0RJIn3avgz"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/automation_craft~instagram-comments-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-automation_craft-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/automation_craft~instagram-comments-scraper/runs": {
      "post": {
        "operationId": "runs-sync-automation_craft-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/automation_craft~instagram-comments-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-automation_craft-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 links, codes or ids",
            "type": "array",
            "description": "Instagram posts and reels to read the comments of: links (/p/, /reel/, /reels/, /tv/, with or without the owner's name, share links /share/...), post codes (DctPchKOVcw) or numeric post ids. Each post is read once per run.",
            "items": {
              "type": "string"
            }
          },
          "usernames": {
            "title": "Profiles (their latest posts)",
            "type": "array",
            "description": "Instagram profiles whose latest posts to read the comments of: usernames (natgeo, @natgeo) or profile links. The posts are read newest first as the profile's grid shows them (pinned posts first).",
            "items": {
              "type": "string"
            }
          },
          "postsPerProfile": {
            "title": "Posts per profile",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "How many of each profile's latest posts to read (12 is one page of the grid; up to 20,000, a whole grid). The post filters below apply to these. One run reads at most 50,000 posts in all.",
            "default": 12
          },
          "postedSince": {
            "title": "Posts published since",
            "type": "string",
            "description": "Only posts published on or after this day (2026-10-01, from 00:00 UTC) or within the last days or hours (\"30 days\", \"24 hours\"). A profile's grid is read only down to this date."
          },
          "postedUntil": {
            "title": "Posts published until",
            "type": "string",
            "description": "Only posts published on or before this day (2026-10-31, up to 23:59:59 UTC), or before the last days or hours (\"7 days\")."
          },
          "postTypes": {
            "title": "Post types",
            "type": "array",
            "description": "Only posts of these kinds. Empty: every kind.",
            "items": {
              "type": "string",
              "enum": [
                "photo",
                "carousel",
                "reel",
                "video",
                "igtv"
              ],
              "enumTitles": [
                "Photo",
                "Carousel",
                "Reel",
                "Video",
                "IGTV"
              ]
            }
          },
          "onlyOwnPosts": {
            "title": "Only the profile's own posts",
            "type": "boolean",
            "description": "For profiles: leave out the posts their grid shows that another account owns (a collaboration posted by a partner).",
            "default": false
          },
          "maxCommentsPerPost": {
            "title": "Comments per post",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "The most comments delivered for one post (after the filters), up to 1,000,000: in effect every comment Instagram shows a logged out visitor. The walk ends earlier when Instagram shows no more.",
            "default": 100
          },
          "maxComments": {
            "title": "Comments in the run at most",
            "minimum": 1,
            "maximum": 10000000,
            "type": "integer",
            "description": "A cap on the comments delivered in the whole run. Empty: no cap besides the one per post."
          },
          "sortBy": {
            "title": "Order",
            "enum": [
              "newest",
              "most_liked"
            ],
            "type": "string",
            "description": "Newest first is the order Instagram serves comments in. Most liked first reads each post's comments up to the cap, then delivers them by likes (at most 10,000 a post; posts are then read one at a time).",
            "default": "newest"
          },
          "commentsNewerThan": {
            "title": "Comments newer than",
            "type": "string",
            "description": "Only comments written on or after this day (2026-10-01, from 00:00 UTC) or within the last days or hours (\"7 days\", \"24 hours\"). Comments come newest first, so a post's walk stops at the first older one."
          },
          "commentsOlderThan": {
            "title": "Comments older than",
            "type": "string",
            "description": "Only comments written on or before this day (2026-10-31, up to 23:59:59 UTC), or more than a number of days or hours ago (\"2 days\")."
          },
          "mustContain": {
            "title": "Comment contains",
            "type": "array",
            "description": "Only comments whose text holds at least one of these words or phrases (case ignored).",
            "items": {
              "type": "string"
            }
          },
          "mustNotContain": {
            "title": "Comment does not contain",
            "type": "array",
            "description": "Leave out comments whose text holds any of these words or phrases (case ignored).",
            "items": {
              "type": "string"
            }
          },
          "onlyVerified": {
            "title": "Verified commenters only",
            "type": "boolean",
            "description": "Only comments written by accounts with Instagram's verified badge.",
            "default": false
          },
          "minCommentLikes": {
            "title": "Minimum comment likes",
            "minimum": 0,
            "type": "integer",
            "description": "Only comments with at least this many likes."
          },
          "excludePostOwner": {
            "title": "Leave out the post owner's comments",
            "type": "boolean",
            "description": "Leave out the comments the post's own account wrote (its replies to fans, its own captions in comments).",
            "default": false
          },
          "minMentions": {
            "title": "Minimum mentions",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Only comments that mention (@) at least this many accounts: the usual entry rule of a giveaway."
          },
          "uniqueCommenters": {
            "title": "One comment per commenter",
            "type": "boolean",
            "description": "Keep only the newest comment (or, most liked first, the newest read) of each commenter on a post: one entry per person, as for a giveaway draw (at most 100,000 commenters a post).",
            "default": false
          },
          "includePostDetails": {
            "title": "Post details",
            "type": "boolean",
            "description": "Add one post row per post: caption, likes, comment count, date, owner, media and carousel items (the Post details event, see Pricing).",
            "default": false
          },
          "includePersonalData": {
            "title": "Include personal data",
            "type": "boolean",
            "description": "Add the fields that name a commenter: username, user id, verified badge, profile picture and profile link, the accounts a comment mentions, and the author part of the raw comment; on post rows, the tagged accounts, the accounts the caption mentions and the post's raw answer. Off, these fields are empty; the comment's own text is always delivered as written. You are responsible for a lawful use of personal data, the GDPR included.",
            "default": false
          },
          "includeRawData": {
            "title": "Raw data",
            "type": "boolean",
            "description": "Add the comment as Instagram served it (`raw`); its author part only with personal data on. With post details, the post's raw answer also comes only with personal data on.",
            "default": false
          },
          "compactRows": {
            "title": "Compact rows",
            "type": "boolean",
            "description": "Leave the picture and GIF links out of the comment rows.",
            "default": false
          },
          "maxConcurrency": {
            "title": "Posts read at once",
            "minimum": 1,
            "maximum": 4,
            "type": "integer",
            "description": "How many posts are read in parallel.",
            "default": 4
          },
          "maxRunSeconds": {
            "title": "Time limit (seconds)",
            "minimum": 30,
            "maximum": 86400,
            "type": "integer",
            "description": "Stop reading after this many seconds and deliver what was read. Empty: the run's own timeout."
          },
          "requestTimeoutSecs": {
            "title": "Request timeout (seconds)",
            "minimum": 5,
            "maximum": 60,
            "type": "integer",
            "description": "How long one request to Instagram may take.",
            "default": 30
          },
          "maxRetries": {
            "title": "Retries",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "How often a failed request is tried again on a fresh address.",
            "default": 2
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify Proxy is on by default: the run reads from its own address first and moves to Apify's datacenter proxy if Instagram refuses it. A residential group is read through the datacenter proxy instead.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}