{
  "openapi": "3.0.1",
  "info": {
    "title": "Instagram Scraper – Profiles, Posts & Reels",
    "description": "Extract public Instagram profiles, recent posts, Reels and carousels using usernames or URLs. Export available captions, dates and engagement metrics as JSON or CSV. Clear per-target coverage and no Instagram login required; availability varies.",
    "version": "0.0",
    "x-build-id": "4fimDtQxJbd4Z2Fg0"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/overbifrost~instagram-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-overbifrost-instagram-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/overbifrost~instagram-scraper/runs": {
      "post": {
        "operationId": "runs-sync-overbifrost-instagram-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/overbifrost~instagram-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-overbifrost-instagram-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",
        "required": [
          "targets"
        ],
        "properties": {
          "targets": {
            "title": "Instagram profiles, posts or Reel links",
            "minItems": 1,
            "maxItems": 100,
            "type": "array",
            "description": "Paste a username (for example nasa), a public profile URL, or standard Instagram /p/ or /reel/ share links. One target per line.",
            "items": {
              "type": "string",
              "maxLength": 500
            }
          },
          "maxMediaPerProfile": {
            "title": "Recent posts/Reels per profile",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "How many recent posts/Reels to request from each profile. Choose 0 for profile details only. Public history can be incomplete.",
            "default": 12
          },
          "resultsLimit": {
            "title": "Maximum media results",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum number of unique posts/Reels saved across this run. Profile information is separate.",
            "default": 200
          },
          "proxyStrategy": {
            "title": "Connection",
            "enum": [
              "APIFY_RESIDENTIAL",
              "AUTO",
              "APIFY_DATACENTER",
              "NONE"
            ],
            "type": "string",
            "description": "Choose Residential for profiles and feeds. Datacenter is an option for direct post/Reel links, but profiles may return LOGIN_REQUIRED. Per-result prices are the same for both connections and include platform usage. AUTO uses datacenter. The selected connection applies to the whole run and does not switch automatically after a failure.",
            "default": "AUTO"
          },
          "includeProfileInfo": {
            "title": "Include profile details",
            "type": "boolean",
            "description": "Save a PROFILE row per profile target (name, bio, counts, verification). Disable to collect media only.",
            "default": true
          },
          "mediaTypes": {
            "title": "Post types",
            "type": "array",
            "description": "Optional filter: keep only these media types. Leave empty to keep all observed types.",
            "items": {
              "type": "string",
              "enum": [
                "IMAGE",
                "VIDEO",
                "CAROUSEL",
                "REEL",
                "UNKNOWN"
              ]
            }
          },
          "dateFrom": {
            "title": "Published from",
            "type": "string",
            "description": "Keep media whose observed publication timestamp is on or after this value. Accepts a date, ISO timestamp or relative value such as -7 days for seven days ago."
          },
          "dateTo": {
            "title": "Published to",
            "type": "string",
            "description": "Keep media whose observed publication timestamp is on or before this value. A date-only value includes the whole UTC day."
          },
          "unknownDate": {
            "title": "Media without a publication date",
            "type": "string",
            "description": "Choose what happens when a media item's publication time is unavailable. Used only when a date filter is set.",
            "default": "KEEP_FLAGGED"
          },
          "minLikes": {
            "title": "Minimum likes",
            "minimum": 0,
            "maximum": 1000000000,
            "type": "integer",
            "description": "Keep media with at least this many observed likes. Items whose like count was not observed never satisfy a positive minimum."
          },
          "minComments": {
            "title": "Minimum comments",
            "minimum": 0,
            "maximum": 1000000000,
            "type": "integer",
            "description": "Keep media with at least this many observed comments. Unobserved counts never satisfy a positive minimum."
          },
          "minViews": {
            "title": "Minimum views",
            "minimum": 0,
            "maximum": 1000000000,
            "type": "integer",
            "description": "Keep Reels/video with at least this many observed views or plays. Unobserved counts never satisfy a positive minimum."
          },
          "outputFormat": {
            "title": "Output format",
            "enum": [
              "FULL",
              "FLAT",
              "COMPACT"
            ],
            "type": "string",
            "description": "FULL preserves all available fields. FLAT is spreadsheet-friendly; COMPACT is smaller. Usually leave FULL.",
            "default": "FULL"
          },
          "writeCsv": {
            "title": "Create an additional media CSV file",
            "type": "boolean",
            "description": "Apify datasets can already be exported as CSV, Excel or JSON. Enable only if you also want a separate media.csv file in the key-value store.",
            "default": false
          },
          "saveDiagnostics": {
            "title": "Save diagnostics",
            "type": "boolean",
            "description": "Advanced API setting, not shown in the form. Include per-record diagnostic details.",
            "default": false
          },
          "profileEmbedDiagnostic": {
            "title": "Private public-profile embed HTTP probe",
            "type": "boolean",
            "description": "Advanced JSON-only research. Exactly one profile, no media, resultsLimit=1, APIFY_RESIDENTIAL and maxTotalRequests=1. Makes one public embed request and reports only source shape; never returns a scraped profile or charges PPE.",
            "default": false
          },
          "browserDiagnostic": {
            "title": "Private anonymous browser diagnostic",
            "type": "boolean",
            "description": "Advanced JSON-only opt-in. Single public profile; APIFY_RESIDENTIAL, maxMediaPerProfile=0, maxConcurrency=1, maxTotalRequests <= 60. Runs Chromium and may incur residential traffic. Unverified; do not enable for customer runs.",
            "default": false
          },
          "browserBlockStylesheets": {
            "title": "Private browser: block stylesheets",
            "type": "boolean",
            "description": "Experimental A/B only. Requires browserDiagnostic=true and paid residential proxy. Default false preserves working source. CSS removal may make the observed profile disappear.",
            "default": false
          },
          "browserStopOnVerifiedHeader": {
            "title": "Private browser: stop on verified header",
            "type": "boolean",
            "description": "Private optional A/B. Requires browserDiagnostic=true. Stop rendering early only after exact username/URL and at least two visible statistics (one exact) are verified. May reduce data completeness; default false retains the proven settle behavior.",
            "default": false
          },
          "maxTotalRequests": {
            "title": "Max total requests",
            "minimum": 1,
            "maximum": 400,
            "type": "integer",
            "description": "Advanced API setting, not shown in the form. Hard network request budget for predictable operating cost.",
            "default": 200
          },
          "maxConcurrency": {
            "title": "Concurrency",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Advanced API setting, not shown in the form. Bounded worker count.",
            "default": 3
          },
          "minDelayMs": {
            "title": "Min delay between requests (ms)",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Advanced API setting, not shown in the form. Optional pacing in milliseconds.",
            "default": 0
          },
          "maxDelayMs": {
            "title": "Max delay between requests (ms)",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Advanced API setting, not shown in the form. Optional maximum pacing in milliseconds."
          },
          "publicGraphqlDiagnostic": {
            "title": "Private GraphQL single-media diagnostic",
            "type": "boolean",
            "description": "Private JSON-only, nonbillable source experiment. Exactly one public /p/ or /reel/ URL, residential proxy, maxTotalRequests=2, maxConcurrency=1, resultsLimit=1, includeProfileInfo=false, maxMediaPerProfile=0 and saveDiagnostics=true. Never customer-facing.",
            "default": false
          },
          "profileFeedDiagnostic": {
            "title": "Private profile-to-up-to-three-media diagnostic",
            "type": "boolean",
            "description": "Private, nonbillable development canary. Exactly one public profile, 1–3 post/Reel leads, each with an independent max-25-request browser navigation. Require maxTotalRequests=25×(1+maxMediaPerProfile) (50/75/100), resultsLimit=1+maxMediaPerProfile, single concurrency, saved diagnostics and explicit residential. No pagination, complete feed or customer-facing support.",
            "default": false
          },
          "browserStickyProxySession": {
            "title": "Private V9 residential sticky session",
            "type": "boolean",
            "description": "Private one-profile/one-media cost/reliability comparison only. Requires both external JavaScript blocks and media commit navigation, residential proxy and 50 total requests. Reuses one residential IP per run. No additional requests, retries or automatic rotation; no guarantee of network success.",
            "default": false
          },
          "browserMediaCommitNavigation": {
            "title": "Private V6 media HTTP-commit navigation",
            "type": "boolean",
            "description": "Only for a private one-profile/one-media feed with both script blocks enabled. Wait for the HTTP document commit rather than DOMContentLoaded, then inspect bounded inline JSON. Strict owner and shortcode checks stay mandatory.",
            "default": false
          },
          "browserProfileBlockScripts": {
            "title": "Private profile-page external JS blocking",
            "type": "boolean",
            "description": "V5 private one-profile/one-media comparison. Requires profileFeedDiagnostic and browserMediaBlockScripts true, one MEDIA, 50 total admitted requests. Only profile-side external script network resources are denied. Can yield zero media.",
            "default": false
          },
          "browserMediaBlockScripts": {
            "title": "Private media-page external JS blocking",
            "type": "boolean",
            "description": "Private cost A/B only when profileFeedDiagnostic=true with maxMediaPerProfile=1. Blocks external media-page JS requests only, not profile-side scripts or HTML-embedded source JSON; no savings guaranteed.",
            "default": false
          },
          "browserMediaDiagnostic": {
            "title": "Private browser media research",
            "type": "boolean",
            "description": "Private, nonbillable one-public-media Chromium probe. Requires one /p/ or /reel/ input, 25 maxTotalRequests, residential proxy, maxMediaPerProfile=0, includeProfileInfo=false, maxConcurrency=1, resultsLimit=1, saveDiagnostics=true and no other diagnostics.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}