{
  "openapi": "3.0.1",
  "info": {
    "title": "Instagram Scraper",
    "description": "Fast no-login Instagram scraper. Extract profiles, posts, reels, comments, hashtags, locations, tagged feeds and audio reels. Paste URLs or search by keyword — clean structured JSON. Works on any post age via 5-tier HTML fallback. Date filter, dedup, parallel race, residential proxy.",
    "version": "1.0",
    "x-build-id": "woFHxa2a3COek2Ycm"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/vortex_data~instagram-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-vortex_data-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/vortex_data~instagram-scraper/runs": {
      "post": {
        "operationId": "runs-sync-vortex_data-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/vortex_data~instagram-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-vortex_data-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",
        "properties": {
          "resultsType": {
            "title": "What do you want to scrape?",
            "enum": [
              "posts",
              "reels",
              "details",
              "comments"
            ],
            "type": "string",
            "description": "Public URLs = no cookies: profile, post/reel/tv, audio. Locked URLs/Search = cookies required: hashtag, location, tagged, /reels/, private/login-limited. Comments = direct post/reel/tv only; public may be preview only.",
            "default": "posts"
          },
          "publicUrls": {
            "title": "Public URLs (no cookies)",
            "uniqueItems": true,
            "type": "array",
            "description": "Paste URLs that Instagram exposes publicly.\n\nGood here:\n- Public profile: `instagram.com/{username}/`\n- Public post: `instagram.com/p/{shortcode}/`\n- Public reel: `instagram.com/reel/{shortcode}/`\n- Audio page: `instagram.com/reels/audio/{audio_id}/`\n\nLeave this empty if you only want to use Keyword Search with cookies.",
            "items": {
              "type": "string",
              "pattern": "^https?://(www\\.)?instagram\\.com/"
            }
          },
          "lockedUrls": {
            "title": "Locked URLs (cookies required)",
            "uniqueItems": true,
            "type": "array",
            "description": "Paste URLs that need your Instagram session.\n\nPut these here:\n- Hashtag: `instagram.com/explore/tags/{tag}/`\n- Location: `instagram.com/explore/locations/{id}/...`\n- Reels tab: `instagram.com/{username}/reels/`\n- Tagged feed: `instagram.com/{username}/tagged/`\n- Private, age-limited, hidden, or login-limited profile/post/reel URLs\n\nIf this field is filled, also paste Instagram cookies below.",
            "items": {
              "type": "string",
              "pattern": "^https?://(www\\.)?instagram\\.com/"
            }
          },
          "sessionCookies": {
            "title": "Instagram cookies",
            "type": "string",
            "description": "Required only for Locked URLs and Keyword Search.\n\nLeave empty for Public URLs such as public profiles, public posts/reels, comments on public posts/reels, and audio URLs.\n\nPaste your browser Cookie header, for example:\n`sessionid=...; csrftoken=...; ds_user_id=...; mid=...`\n\nUse only your own Instagram cookies. They are sensitive and work like a temporary password."
          },
          "search": {
            "title": "Keyword Search",
            "type": "string",
            "description": "Optional. Requires Instagram cookies above. Leave empty when you already pasted direct URLs."
          },
          "searchType": {
            "title": "Search target",
            "enum": [
              "hashtag",
              "profile",
              "place"
            ],
            "type": "string",
            "description": "Only used when Keyword Search is filled.",
            "default": "hashtag"
          },
          "searchLimit": {
            "title": "Search matches",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "How many search matches to scrape.",
            "default": 10
          },
          "resultsLimit": {
            "title": "Results per URL",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum records to extract from each URL. Example: 100 results per URL and 3 profile URLs can save up to 300 records.",
            "default": 10
          },
          "maxTotalResults": {
            "title": "Max total results",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Optional cost safety cap across the whole run. Leave empty for no overall cap."
          },
          "onlyPostsNewerThan": {
            "title": "Only newer than",
            "pattern": "^(\\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])(T[0-2]\\d:[0-5]\\d(:[0-5]\\d)?(\\.\\d+)?Z?)?$|^\\d+\\s*(minute|hour|day|week|month|year)s?$",
            "type": "string",
            "description": "Optional date filter for posts/reels. The actor stops paging after it reaches older posts.\n\nAccepted formats:\n- `2026-01-15`\n- `2026-01-15T10:00:00Z`\n- `1 day`, `2 weeks`, `3 months`, `1 year`"
          },
          "addParentData": {
            "title": "Add source info",
            "type": "boolean",
            "description": "Adds `dataSource` and parent fields such as username, shortcode, tag, location id, or audio id. Useful when scraping multiple URLs into one dataset.",
            "default": false
          },
          "dedupResults": {
            "title": "Remove duplicate posts",
            "type": "boolean",
            "description": "Keeps only the first copy when the same post appears from multiple sources. Recommended.",
            "default": true
          },
          "concurrency": {
            "title": "Parallel URLs",
            "minimum": 1,
            "maximum": 32,
            "type": "integer",
            "description": "How many URLs to scrape at the same time. Higher is faster, but can cause more Instagram throttling.",
            "default": 4
          },
          "requestRetryBudget": {
            "title": "Retries per request",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "Retries for network errors, 5xx, 429, and bad JSON. Instagram 401 session blocks rotate immediately instead of waiting here.",
            "default": 3
          },
          "urlRetryBudget": {
            "title": "Retries per URL",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "How many real page failures are allowed inside one URL before the actor skips it. Burnt proxy sessions do not consume this budget.",
            "default": 5
          },
          "globalRateLimitBudget": {
            "title": "Stop after Instagram blocks",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Run-wide number of Instagram throttling signals allowed before the actor stops. Counts HTTP 429 and HTTP 401 login-required proxy-session blocks.",
            "default": 50
          },
          "maxHttpRequests": {
            "title": "Max HTTP attempts",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Hard cap on outbound Instagram HTTP attempts, including retries. Raise only for planned high-volume runs.",
            "default": 20000
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}