{
  "openapi": "3.0.1",
  "info": {
    "title": "Apify Actor Insta Event Sheriff",
    "description": "🚀 Specialized in Instagram Event Analysis. High-speed scraping with Internal Caching to save costs. Smart fake account detection & Follow-checks.\"",
    "version": "0.0",
    "x-build-id": "0MfCjS8QuFfObCwUc"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/convincing_yesterday~apify-actor-insta-event-sheriff/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-convincing_yesterday-apify-actor-insta-event-sheriff",
        "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/convincing_yesterday~apify-actor-insta-event-sheriff/runs": {
      "post": {
        "operationId": "runs-sync-convincing_yesterday-apify-actor-insta-event-sheriff",
        "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/convincing_yesterday~apify-actor-insta-event-sheriff/run-sync": {
      "post": {
        "operationId": "run-sync-convincing_yesterday-apify-actor-insta-event-sheriff",
        "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": {
          "post_url": {
            "title": "🔗 Post URL (Required)",
            "type": "string",
            "description": "Paste the full Instagram Post URL here (e.g., https://www.instagram.com/p/...). This is the only mandatory field."
          },
          "max_comments": {
            "title": "🎯 Max Comments (Goal)",
            "minimum": 0,
            "type": "integer",
            "description": "Stop collecting after N comments. 0 = Auto-detect from post (Risk of stopping early). Set high (e.g., 5000) to force deeper scroll.",
            "default": 0
          },
          "host_username": {
            "title": "👤 Host Username (For Verification)",
            "type": "string",
            "description": "Enter the username of the account hosting the event (without @). Used to check if commenters are following this account."
          },
          "cookies": {
            "title": "🍪 Instagram Cookies (Recommended for Stability)",
            "type": "string",
            "description": "Paste your cookies here. Supports:\n• JSON Array (EditThisCookie format)\n• Netscape Cookie File (Text)\n• Raw sessionid (e.g., 667690...)\n• Multi-Account: Use multiple JSON arrays in a list."
          },
          "deep_mode": {
            "title": "🕵️ Deep Mode (Advanced Profile Analysis)",
            "type": "boolean",
            "description": "If CHECKED: Visits each profile to calculate Trust Score and verify followers. ⚠️ SLOWER but more accurate for filtering bots.",
            "default": false
          },
          "verify_followers": {
            "title": "✅ Auto-Verify Follower Status (Risky)",
            "type": "boolean",
            "description": "If CHECKED: The Actor attempts to scrape your follower list automatically to check membership. ⚠️ WARNING: High risk of blocks for accounts with >5k followers. Use 'Known Followers List' instead.",
            "default": false
          },
          "known_followers": {
            "title": "📋 Known Followers List (Safe & Fast)",
            "type": "string",
            "description": "Paste your follower usernames here. Supports:\n• JSON Array: [\"user1\", \"user2\"]\n• Text: Comma, space, or newline separated list."
          },
          "proxy": {
            "title": "🛡️ Proxy (Residential Recommended)",
            "type": "object",
            "description": "Select 'Apify Proxy' -> 'Residential' for best results. Datacenter proxies are often blocked. If not specified, defaults to Residential proxy."
          },
          "use_cache": {
            "title": "⚡ Use Smart Caching",
            "type": "boolean",
            "description": "Save money! If enabled, re-running the same URL within 24h loads data instantly from cache instead of using compute credits.",
            "default": true
          },
          "cache_expiry_hours": {
            "title": "⏳ Cache Duration",
            "minimum": 1,
            "maximum": 168,
            "type": "integer",
            "description": "Hours to keep the cached data valid.",
            "default": 24
          },
          "profile_max_age_days": {
            "title": "📅 Profile Cache Max Age",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Maximum days to reuse profile data. If older, it will be re-scraped even if cache exists. Resets when reused.",
            "default": 90
          },
          "resume_max_age_hours": {
            "title": "⏱️ Resume (Max Cache Age)",
            "minimum": 0,
            "maximum": 168,
            "type": "integer",
            "description": "If a previous run failed recently, resume from where it left off. This setting limits how 'fresh' the cache must be to resume (e.g. 1 = 1 hour). Set 0 for unlimited.",
            "default": 1
          },
          "idle_timeout_minutes": {
            "title": "⏳ Idle Timeout (minutes)",
            "minimum": 0,
            "maximum": 30,
            "type": "integer",
            "description": "새 댓글이 이 시간(분) 이상 수집되지 않으면 수집 단계를 자동 종료하고 분석으로 넘어갑니다. 0이면 비활성화. 권장: 3~5분.",
            "default": 4
          },
          "max_retries_before_exit": {
            "title": "🔁 Max Dry-Scroll Retries",
            "minimum": 5,
            "maximum": 100,
            "type": "integer",
            "description": "새 댓글 없이 몇 번의 스크롤 후 수집을 종료할지 설정합니다 (Recovery 루프 횟수). 권장: 10~20. 낮을수록 빠르게 종료됩니다.",
            "default": 15
          },
          "max_recovery_attempts": {
            "title": "🔁 Max Account Rotations",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "수집이 막혔을 때 최대 몇 번까지 계정을 교체하며 복구를 시도할지 설정합니다. (기본값: 3)",
            "default": 3
          },
          "exclude_replies": {
            "title": "🚫 Exclude Replies (Top-level Only)",
            "type": "boolean",
            "description": "If CHECKED: Collect only main comments and skip reply threads. Faster and use fewer requests.",
            "default": false
          },
          "profile_usernames": {
            "title": "👤 Profile-Only Scrape (List of Usernames)",
            "type": "string",
            "description": "Optional: Paste a list of usernames to scrape their profile metrics directly (followers, posts, etc.). Supports JSON array or newline-separated text. If provided, Post URL is optional."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}