{
  "openapi": "3.0.1",
  "info": {
    "title": "Instagram Scraper",
    "description": "🔥 The ultimate all-in-one Instagram powerhouse: scrape profiles, posts, reels, reposts, hashtags, locations & music-tagged content at scale—no login required, complete data access.",
    "version": "0.0",
    "x-build-id": "6L5osHEliiAlmesDQ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/api-ninja~instagram-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-api-ninja-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/api-ninja~instagram-scraper/runs": {
      "post": {
        "operationId": "runs-sync-api-ninja-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/api-ninja~instagram-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-api-ninja-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": {
          "urls": {
            "title": "🔗#️⃣📍🎵 Instagram URLs",
            "type": "array",
            "description": "Provide URLs for profiles, reels, hashtags, locations, or audio feeds. Examples: https://www.instagram.com/nasa/, https://www.instagram.com/explore/tags/travel/, or https://www.instagram.com/explore/locations/213131048/berlin-germany/, ",
            "items": {
              "type": "string"
            }
          },
          "maxResults": {
            "title": "Maximum results per source",
            "minimum": 20,
            "type": "integer",
            "description": "The maximum number of items to fetch for each individual URL or section. This is ignored if 'Scrape all available results' is enabled.",
            "default": 20
          },
          "scrapeAllResults": {
            "title": "Scrape all available results",
            "type": "boolean",
            "description": "If enabled, the scraper will ignore the result limit and attempt to fetch all available content for each provided source.",
            "default": false
          },
          "sections": {
            "title": "🗂️ Instagram Explore Sections",
            "type": "array",
            "description": "Select curated categories from the Instagram Explore tab to scrape content in specific niches.",
            "items": {
              "type": "string",
              "enum": [
                "10156104417160727",
                "591182567883601",
                "1192724957918688",
                "461625354020414",
                "1263953046970624",
                "304992868006958",
                "10155994923880727",
                "300306850568590",
                "1845816638816306",
                "785644171535705",
                "1132100650151702",
                "571266743272301",
                "445805859213236",
                "2411497869088676",
                "1630221763898806",
                "10155868806390727",
                "10155994924430727",
                "279398652740716",
                "1004784969545988",
                "283255969009841",
                "1104457256235585",
                "943656532390416",
                "206741089697034",
                "1781861538554814",
                "328048422111602",
                "1581846665389736",
                "523068831547973",
                "514454113372737",
                "2253590238193516",
                "2854818284736599",
                "245987712994021",
                "2460801400843066",
                "403114987113671",
                "10156104410190727",
                "373222982867065",
                "1028461920940268",
                "164724284439267",
                "2966260220305967",
                "1856624524418340",
                "736933136419726",
                "500507041185835",
                "217905073500242",
                "352384067066225",
                "543960606037894",
                "824690594825522",
                "3293536740733196",
                "600231224265932",
                "917256014984692"
              ],
              "enumTitles": [
                "Games",
                "Video Games",
                "Trick Shots",
                "Trivia Games",
                "Toys",
                "Video Game Collecting",
                "TV & Movies",
                "TV & Movies Celebrities",
                "Fantasy TV & Movies",
                "Bollywood TV & Movies",
                "Anime TV & Movies",
                "Romance TV & Movies",
                "Comedy TV & Movies",
                "American TV & Movies",
                "Animation TV & Movies",
                "Sports",
                "Music & Audio",
                "DJs",
                "Country Music",
                "Alternative Music",
                "Pop Music",
                "Hip Hop & Rap Music",
                "K-Pop Music",
                "Rock Music",
                "Singer-Songwriters",
                "Electronic & Dance Music",
                "R&B & Soul Music",
                "Pop Culture",
                "Popular Actors",
                "Celebrity Families",
                "TV Series",
                "Social Media Personalities",
                "TV Personalities",
                "Fashion & Beauty",
                "Street Fashion",
                "Fashion Design",
                "Gothic Fashion",
                "Kawaii Style",
                "Casual Fashion",
                "Sneakers",
                "Acrylic Nails",
                "Corn Starches",
                "Bloxburg House",
                "Hairstyles",
                "Tattoos",
                "Quotes",
                "Knotless Braids",
                "Photography"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}