{
  "openapi": "3.0.1",
  "info": {
    "title": "Fast Instagram Scraper",
    "description": "Fast, low-cost Instagram scraper ($0.30/1k) with no login required. Extracts public posts, reels, comments, profiles, hashtags, bio emails, and engagement stats. Drop-in replacement for apify/instagram-scraper.",
    "version": "0.1",
    "x-build-id": "3DDeDE3oyxX2LZ1lR"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/solutionssmart~fast-instagram-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-solutionssmart-fast-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/solutionssmart~fast-instagram-scraper/runs": {
      "post": {
        "operationId": "runs-sync-solutionssmart-fast-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/solutionssmart~fast-instagram-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-solutionssmart-fast-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": "Content to scrape",
            "enum": [
              "posts",
              "details",
              "comments",
              "reels",
              "mentions",
              "stories"
            ],
            "type": "string",
            "description": "**Posts** returns a feed of content. **Profile, hashtag, or place details** returns metadata about the page: follower count, bio, post count, profile picture, plus contact and engagement data.<br><br>Comments only work with post URLs, e.g. `instagram.com/p/ABC123xyz/`, not `instagram.com/username/`.",
            "default": "posts"
          },
          "directUrls": {
            "title": "Instagram URLs, usernames or hashtags",
            "uniqueItems": true,
            "type": "array",
            "description": "One or more Instagram URLs, usernames (`humansofny` or `@humansofny`) or hashtags (`#travel`).<br><br>URL format must match your content type:<ul><li><code>/p/</code> for posts and comments</li><li><code>/reel/</code> for reels</li><li><code>/username/</code> for profile details</li></ul>Leave blank if you use the search query instead.",
            "items": {
              "type": "string",
              "pattern": "^\\s*((https?:\\/\\/)?([A-Za-z0-9-]+\\.)?instagram\\.com\\/.*|@?[A-Za-z0-9._]{1,30}\\/?|#[^\\s#]+)\\s*$"
            }
          },
          "resultsLimit": {
            "title": "Results limit per URL",
            "minimum": 1,
            "type": "integer",
            "description": "How many posts, reels or comments to scrape per Instagram URL or hashtag. When omitted there is no limit. Higher values increase cost.<br><br>Use `1` to get a single post per page."
          },
          "onlyPostsNewerThan": {
            "title": "Filter by date",
            "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": "Limit how far back to scrape. Enter a date in `YYYY-MM-DD`, ISO format, or as a relative value, e.g. `1 day`, `2 months`, `3 years`.<br><br>Times are in UTC, not local time. Pinned posts still appear unless you turn on **Skip pinned posts**; `0 minutes` returns only pinned posts."
          },
          "search": {
            "title": "Search query",
            "type": "string",
            "description": "Hashtags or usernames to look up, separated by commas. Use `#` for hashtags, e.g. `#travel`."
          },
          "searchType": {
            "title": "Search type",
            "enum": [
              "hashtag",
              "profile",
              "place",
              "user"
            ],
            "type": "string",
            "description": "Hashtag search returns the hashtag and related hashtags with their top posts. Profile search treats each term as an exact username. Place search is not available logged out.",
            "default": "hashtag"
          },
          "searchLimit": {
            "title": "Search results limit",
            "minimum": 1,
            "maximum": 250,
            "type": "integer",
            "description": "How many hashtags to return per search term: the term itself plus related hashtags. Defaults to 1 when omitted. No effect on profile search (each term is one exact username).<br>To limit posts per result, use **Results limit per URL**."
          },
          "skipPinnedPosts": {
            "title": "Skip pinned posts",
            "type": "boolean",
            "description": "Do not let pinned posts bypass the date filter. With a date filter, pinned posts are filtered by date like any other post (recent pinned posts are kept); without one, pinned posts are dropped. When off, pinned posts are kept even if they are older than the date filter.",
            "default": false
          },
          "isNewestComments": {
            "title": "Newest comments first",
            "type": "boolean",
            "description": "With **Comments**, return the newest comments first instead of Instagram's default ranking.",
            "default": false
          },
          "includeNestedComments": {
            "title": "Include comment replies",
            "type": "boolean",
            "description": "Not supported: Instagram shows comment replies only to logged-in users. With **Comments**, this adds one <code>login_required</code> row per post (not charged), and <code>replies</code> is always null.",
            "default": false
          },
          "addParentData": {
            "title": "Add parent metadata",
            "type": "boolean",
            "description": "Adds a `dataSource` field to feed items (`profile` or `hashtag`) and the parent page data as `metaData`.",
            "default": false
          },
          "includeTopPosts": {
            "title": "Include hashtag top posts",
            "type": "boolean",
            "description": "With hashtag details, fill `topPosts` with the hashtag's top posts.",
            "default": false
          },
          "addProfileStatistics": {
            "title": "Add profile statistics",
            "type": "boolean",
            "description": "Accepted for compatibility with apify/instagram-scraper. Logged-out Instagram does not expose that statistics block; use the `engagement` and `contacts` fields instead.",
            "default": false
          },
          "enrichPosts": {
            "title": "Full post details",
            "type": "boolean",
            "description": "Fetch each post's full data: comment count and preview, carousel items, video URL, tagged users, music and exact dimensions. Charged as the post-details event ($0.90 per 1,000 posts). Turn off for fast mode: only the result event, posts from the profile grid (caption, likes, timestamp, type, image, owner, pinned flag).",
            "default": true
          },
          "extractContacts": {
            "title": "Extract contacts",
            "type": "boolean",
            "description": "With profile details, add a `contacts` object: emails, phone numbers and links found in the bio, bio links and business fields.",
            "default": true
          },
          "addRelatedProfiles": {
            "title": "Related profiles",
            "type": "boolean",
            "description": "With profile details, fill `relatedProfiles` with the accounts Instagram suggests. Costs one extra request per profile.",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Residential proxies are required: Instagram login-walls datacenter IPs. Each worker uses its own sticky proxy session and rotates it after about 100 requests or a block.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 32,
            "type": "integer",
            "description": "Parallel workers, each with its own proxy session. Also capped by memory (one concurrent request per 8 MB).",
            "default": 8
          },
          "docIds": {
            "title": "GraphQL doc_id overrides",
            "type": "object",
            "description": "Only needed when Instagram rotates its query ids faster than this Actor is updated. Map a purpose (`profile`, `profileExtras`, `posts`, `post`, `comments`, `reelsTab`, `hashtag`, `related`) or a query's friendly name to a doc_id. Overrides are tried before the built-in ids; the Actor also rediscovers ids on its own when all built-in ones fail.",
            "default": {}
          },
          "probe": {
            "title": "Probe mode",
            "type": "boolean",
            "description": "Diagnostics: test every Instagram endpoint against fixed public canaries, write the PROBE records, push and charge nothing.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}