{
  "openapi": "3.0.1",
  "info": {
    "title": "Instagram Scraper – Posts, Places & Hashtags (No Login)",
    "description": "Scrape public Instagram without an account: latest posts and reels of a profile, post comments, profile details, hashtag post counts and places with coordinates and recent posts. One price per result, tiny $0.00005 start fee; URLs that return nothing are listed and never billed.",
    "version": "1.0",
    "x-build-id": "Vmq4pRBrapfuJK4Mc"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/badr_xba~instagram-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-badr_xba-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/badr_xba~instagram-scraper/runs": {
      "post": {
        "operationId": "runs-sync-badr_xba-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/badr_xba~instagram-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-badr_xba-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": {
          "directUrls": {
            "title": "🔗 Instagram URLs, usernames or #hashtags",
            "type": "array",
            "description": "One per line: profile (https://www.instagram.com/natgeo/, natgeo or @natgeo), profile reels tab (…/natgeo/reels/), post or reel (…/p/DLNsnpUTdVS/, …/reel/CigMSGeD4Hd/), hashtag (…/explore/tags/crossfit/ or #crossfit) or place (…/explore/locations/7538318/). Mobile links, instagr.am links, links with ?igsh=… tracking and whole lists pasted on one line (comma or space separated) are all understood; duplicates are read once.",
            "items": {
              "type": "string"
            }
          },
          "resultsType": {
            "title": "📦 What to get",
            "enum": [
              "posts",
              "reels",
              "comments",
              "details"
            ],
            "type": "string",
            "description": "Posts: the posts of a profile, hashtag or place, or the full post for a post URL. Reels: reels with likes, comments and plays. Comments: the comments shown on a post or reel URL. Details: one row describing the profile, hashtag, place or post itself.",
            "default": "posts"
          },
          "resultsLimit": {
            "title": "💯 Results per URL (up to 12 posts per profile without login)",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum results for each URL. Instagram shows logged-out visitors up to 12 posts or 12 reels per profile, about 15 comments per post, the top 12 reels per hashtag and about 15 recent posts per place.",
            "default": 12
          },
          "onlyPostsNewerThan": {
            "title": "📅 Only posts newer than",
            "type": "string",
            "description": "Keeps only posts published after this date (UTC): 2026-09-01, 2026-09-01T13:00:00, or a period such as \"7 days\", \"2 months\". For the posts of a profile, this filter needs \"Open each profile post for full details\" (includePostDetails): Instagram shows a profile's posts to logged-out visitors without their date, so without that option they cannot be filtered and are kept (the run log and RUN_SUMMARY warn you). Rows without a date are always kept."
          },
          "includePostDetails": {
            "title": "Open each profile post for full details",
            "type": "boolean",
            "description": "Instagram shows a profile's posts to logged-out visitors without likes, comments count or date: with this option off, likesCount, commentsCount and timestamp stay empty for the posts of a profile, and \"Only posts newer than\" cannot filter them. Turn this on to open every post (still logged out, no account needed) and add likesCount, commentsCount, timestamp, location, tagged users and the latest comments. Slower: one extra page per post.",
            "default": false
          },
          "commentsSort": {
            "title": "Comment order",
            "enum": [
              "instagram",
              "newest",
              "mostLiked"
            ],
            "type": "string",
            "description": "Order of the comments saved with \"What to get\" = Comments, applied to the comments Instagram shows logged-out visitors (about 15 per post) before \"Results per URL\" keeps the first ones. Instagram's order is the default (as before).",
            "default": "instagram"
          },
          "addParentData": {
            "title": "Add the parent page to every row",
            "type": "boolean",
            "description": "Adds a parentData object to each post, reel or comment: the profile, hashtag, place or post it was found on (name, URL, followers or posts count, ...). Handy when one run mixes many URLs. Off by default (rows unchanged).",
            "default": false
          },
          "maxItems": {
            "title": "Maximum results for the whole run",
            "minimum": 0,
            "type": "integer",
            "description": "Hard ceiling on rows saved (and billed) across all URLs. 0 = no ceiling. The run also stops cleanly when your maximum cost per run is reached.",
            "default": 0
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Instagram blocks datacenter addresses. Keep the residential group for reliable results.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          },
          "failRunOnError": {
            "title": "Mark the run as FAILED when Instagram blocks every input",
            "type": "boolean",
            "description": "Off (default): when Instagram blocks or refuses every input, or no input is usable, the run ends SUCCEEDED with a clear message and RUN_SUMMARY status BLOCKED or CUSTOMER_ERROR, so schedules keep running and nothing is charged. On: such a run ends FAILED (useful for integrations that alert on failed runs). Technical errors always end the run FAILED. This Actor never logs in or bypasses Instagram.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}