{
  "openapi": "3.0.1",
  "info": {
    "title": "Instagram Comments Scraper: Text, Likes & Authors, $0.80/1K",
    "description": "$0.80/1K comments, no start fee. No 15-comment cap: 10,000 comments in 72 s. No login. Paste post or reel URLs: every comment with text, likes, date and author. Most-liked sort, date window, keyword filters, only-new monitoring. For sentiment, giveaways and lead lists.",
    "version": "0.2",
    "x-build-id": "eiIYraYqG4HRtOUjI"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/laptime~instagram-comments-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-laptime-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/laptime~instagram-comments-scraper/runs": {
      "post": {
        "operationId": "runs-sync-laptime-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/laptime~instagram-comments-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-laptime-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": {
          "directUrls": {
            "title": "🔗 Post or reel URLs",
            "type": "array",
            "description": "One per line: instagram.com/p/<code>/, /reel/<code>/, /tv/<code>/ or share links, bare shortcodes (DfAWxdIFmVB) or numeric media ids. Public posts only. The same post twice is scraped once.",
            "items": {
              "type": "string"
            }
          },
          "resultsLimit": {
            "title": "Max comments per post",
            "minimum": 0,
            "type": "integer",
            "description": "Comments to deliver per post (exact, never exceeded). 0 = all comments. Default 100 (all, when only Max comments in total is set). No free-plan cap: every Apify plan gets the full result."
          },
          "maxItems": {
            "title": "Max comments in total",
            "minimum": 0,
            "type": "integer",
            "description": "Hard cap for the whole run over all posts (exact, so the cost is capped too). 0 or empty = no cap beyond the per-post limit."
          },
          "sortBy": {
            "title": "Order",
            "enum": [
              "newest",
              "mostLiked",
              "oldest"
            ],
            "type": "string",
            "description": "\"newest\" (default): newest first, as Instagram serves them, fastest. \"mostLiked\": the most-liked comments first. \"oldest\": oldest first. mostLiked and oldest read the whole thread (up to \"Max comments to read\") before picking the top ones.",
            "default": "newest"
          },
          "newerThan": {
            "title": "📅 Comments posted after",
            "type": "string",
            "description": "Keep only comments posted on or after this date: \"2026-11-01\" or \"7 days\". Reading stops once the thread is older, so it is fast. Empty = no lower bound."
          },
          "olderThan": {
            "title": "📅 Comments posted before",
            "type": "string",
            "description": "Keep only comments posted on or before this date (\"2026-11-15\" or \"1 day\"). Empty = up to now."
          },
          "minLikes": {
            "title": "Min comment likes",
            "minimum": 0,
            "type": "integer",
            "description": "Skip comments with fewer likes than this. 0 = keep all.",
            "default": 0
          },
          "includeKeywords": {
            "title": "Comment must contain (any of)",
            "type": "array",
            "description": "Keep only comments containing at least one of these words (case-insensitive), e.g. \"price\", \"where to buy\", \"link\". Empty = no filter.",
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Comment must not contain",
            "type": "array",
            "description": "Skip comments containing any of these words (case-insensitive), e.g. spam phrases.",
            "items": {
              "type": "string"
            }
          },
          "excludeUsernames": {
            "title": "Exclude accounts",
            "type": "array",
            "description": "Skip comments by these usernames (with or without @), e.g. the post's own account.",
            "items": {
              "type": "string"
            }
          },
          "includePostDetails": {
            "title": "Add post details to each row",
            "type": "boolean",
            "description": "On (default): every row also carries the post's owner username, caption and total comment count (one extra request per post, run in parallel). Off: comment fields only.",
            "default": true
          },
          "onlyNew": {
            "title": "🔁 Only new comments (monitoring)",
            "type": "boolean",
            "description": "On: skip comments delivered by earlier runs with the same \"Monitor name\" (kept in this Actor's own key-value store). Schedule the run to watch posts; runs with nothing new cost nothing.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Name of the only-new memory (letters, digits, dashes). Default \"default\"."
          },
          "maxCommentsToScan": {
            "title": "Max comments to read (sorting)",
            "minimum": 100,
            "type": "integer",
            "description": "Only for \"mostLiked\" and \"oldest\": how many comments per post to read before sorting. Default 20000.",
            "default": 20000
          },
          "telemetry": {
            "title": "Anonymous error reports",
            "type": "boolean",
            "description": "Sends the Actor's author an anonymous report when a run hits an error (error type, failing step, HTTP status, counts). Never your input, results, URLs or account. Untick to turn it off.",
            "default": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}