{
  "openapi": "3.0.1",
  "info": {
    "title": "Instagram Comment Bot",
    "description": "A simple automated Instagram bot that comments on posts and reels. You can target specific posts by URL to find posts to comment on.",
    "version": "0.0",
    "x-build-id": "JiQiU9TP13Es0mMU5"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dead00~instagram-comment-bot/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dead00-instagram-comment-bot",
        "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/dead00~instagram-comment-bot/runs": {
      "post": {
        "operationId": "runs-sync-dead00-instagram-comment-bot",
        "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/dead00~instagram-comment-bot/run-sync": {
      "post": {
        "operationId": "run-sync-dead00-instagram-comment-bot",
        "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",
        "required": [
          "comments",
          "cookies",
          "post_urls"
        ],
        "properties": {
          "cookies": {
            "title": "Instagram Cookies (JSON Array)",
            "type": "array",
            "description": "Instagram cookies exported from EditThisCookie browser extension as JSON array. To get cookies: 1) Log into Instagram in your browser, 2) Install EditThisCookie extension, 3) Visit Instagram.com, 4) Click the EditThisCookie extension icon, 5) Click 'Export' button, 6) Copy the entire JSON array and paste it here. The scraper will automatically extract the required sessionid cookie from this array.",
            "default": [
              {
                "domain": ".instagram.com",
                "expirationDate": 1814876448.63205,
                "hostOnly": false,
                "httpOnly": true,
                "name": "ps_n",
                "path": "/",
                "sameSite": "no_restriction",
                "secure": true,
                "session": false,
                "storeId": null,
                "value": "1"
              },
              {
                "domain": ".instagram.com",
                "expirationDate": 1814876448.631928,
                "hostOnly": false,
                "httpOnly": true,
                "name": "datr",
                "path": "/",
                "sameSite": "no_restriction",
                "secure": true,
                "session": false,
                "storeId": null,
                "value": "H3kdanH2MbHui_QNjbhI00F2"
              },
              {
                "domain": ".instagram.com",
                "expirationDate": 1788157251.527997,
                "hostOnly": false,
                "httpOnly": false,
                "name": "ds_user_id",
                "path": "/",
                "sameSite": "no_restriction",
                "secure": true,
                "session": false,
                "storeId": null,
                "value": "24023462161"
              },
              {
                "domain": ".instagram.com",
                "expirationDate": 1814941251.527599,
                "hostOnly": false,
                "httpOnly": false,
                "name": "csrftoken",
                "path": "/",
                "sameSite": null,
                "secure": true,
                "session": false,
                "storeId": null,
                "value": "erNxz46RVm16lnwLAgo2vkD74MXLLpq1"
              },
              {
                "domain": ".instagram.com",
                "expirationDate": 1811852448.282709,
                "hostOnly": false,
                "httpOnly": true,
                "name": "ig_did",
                "path": "/",
                "sameSite": "no_restriction",
                "secure": true,
                "session": false,
                "storeId": null,
                "value": "7488A0E4-6019-46AB-9930-060079B87E45"
              },
              {
                "domain": ".instagram.com",
                "expirationDate": 1814876448.631994,
                "hostOnly": false,
                "httpOnly": true,
                "name": "ps_l",
                "path": "/",
                "sameSite": "lax",
                "secure": true,
                "session": false,
                "storeId": null,
                "value": "1"
              },
              {
                "domain": ".instagram.com",
                "expirationDate": 1780986047,
                "hostOnly": false,
                "httpOnly": false,
                "name": "wd",
                "path": "/",
                "sameSite": "lax",
                "secure": true,
                "session": false,
                "storeId": null,
                "value": "1536x872"
              },
              {
                "domain": ".instagram.com",
                "expirationDate": 1814876448.631963,
                "hostOnly": false,
                "httpOnly": true,
                "name": "mid",
                "path": "/",
                "sameSite": "no_restriction",
                "secure": true,
                "session": false,
                "storeId": null,
                "value": "ah15HwALAAEGbcMzWI3fgQN1e-PO"
              },
              {
                "domain": ".instagram.com",
                "expirationDate": 1811916374.540459,
                "hostOnly": false,
                "httpOnly": true,
                "name": "sessionid",
                "path": "/",
                "sameSite": null,
                "secure": true,
                "session": false,
                "storeId": null,
                "value": "24023462161%3A37zbvk4xCt726b%3A18%3AAYhDPwahNY35UA6ZXsgof-_csfG0QHKZcXo7BJpEqA"
              },
              {
                "domain": ".instagram.com",
                "expirationDate": 1780986047,
                "hostOnly": false,
                "httpOnly": false,
                "name": "dpr",
                "path": "/",
                "sameSite": "no_restriction",
                "secure": true,
                "session": false,
                "storeId": null,
                "value": "1.25"
              },
              {
                "domain": ".instagram.com",
                "hostOnly": false,
                "httpOnly": true,
                "name": "rur",
                "path": "/",
                "sameSite": "lax",
                "secure": true,
                "session": true,
                "storeId": null,
                "value": "\"LDC\\05424023462161\\0541811917249:01ff0b97a70666002d27e68d3cf51b7ad2b97603eae34a83d9dc4842c047690021710491\""
              }
            ]
          },
          "comments": {
            "title": "Comments to Post",
            "type": "array",
            "description": "List of comments that will be randomly selected and posted",
            "default": [
              "Love this! ❤️"
            ],
            "items": {
              "type": "string"
            }
          },
          "post_urls": {
            "title": "Specific Post URLs",
            "type": "array",
            "description": "Direct URLs to Instagram posts or reels to comment on",
            "default": [
              "https://www.instagram.com/reel/DMf7ha2NJED/"
            ],
            "items": {
              "type": "string"
            }
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}