{
  "openapi": "3.0.1",
  "info": {
    "title": "Instagram Profile Scraper: Instagram Followers Count, Bio",
    "description": "Scrape Instagram profile data with no login: by username, link or id, or an Instagram user search by keyword. Exact followers count, following, posts, bio with links, e-mails and phones, category, business flag, 12 latest posts, engagement rate, related accounts. Business profiles come back whole.",
    "version": "0.1",
    "x-build-id": "PmneSLEhpVUAjJKJJ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/hyperbach~instagram-profile-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-hyperbach-instagram-profile-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/hyperbach~instagram-profile-scraper/runs": {
      "post": {
        "operationId": "runs-sync-hyperbach-instagram-profile-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/hyperbach~instagram-profile-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-hyperbach-instagram-profile-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": {
          "usernames": {
            "title": "Usernames, profile links or ids",
            "maxItems": 10000,
            "type": "array",
            "description": "Instagram profiles, one per line, in any form: a username (`natgeo`, `@natgeo`), a profile link (`https://www.instagram.com/natgeo/`, with `?igsh=` or any other parameter, `m.instagram.com`, `instagr.am`, a reels or tagged tab, an app `/_u/` link, a story link), a numeric profile id (`787132`), or a post or reel link (its author's profile is read). A handle is read whole: `trading.com` stays `trading.com`. The same profile given twice is one row and one charge. A private, restricted, missing or unavailable profile, or a value that names nothing, is a free row that says why.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "Keywords (find accounts)",
            "type": "array",
            "description": "Words that find Instagram accounts (`coffee roasters`, `yoga studio berlin`): each keyword is asked of the Threads account search and Meta's Ad Library page search (a Threads account is its Instagram account; a page names its Instagram account), joined by username in rank order, and each account found is read as a profile. A keyword with no account is a free row.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxResultsPerQuery": {
            "title": "Max accounts per keyword",
            "minimum": 1,
            "maximum": 25,
            "type": "integer",
            "description": "How many accounts each keyword reads, in rank order (both searches together list up to about 25).",
            "default": 10
          },
          "relatedDepth": {
            "title": "Related accounts as rows (depth)",
            "minimum": 0,
            "maximum": 3,
            "type": "integer",
            "description": "0 = each profile's related accounts stay a list inside its row. 1 = each related account of every profile you gave is read as its own row too; 2 and 3 go one and two levels further (breadth first, each account once). Bound it with `maxRelatedPerProfile` and `maxItems`.",
            "default": 0
          },
          "maxRelatedPerProfile": {
            "title": "Max related accounts per profile",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "How many of a profile's related accounts the crawl reads (Instagram lists up to 50); 0 = all of them.",
            "default": 0
          },
          "relatedOnlyVerified": {
            "title": "Crawl verified related accounts only",
            "type": "boolean",
            "description": "With `relatedDepth` above 0, read only the related accounts that carry the verified badge.",
            "default": false
          },
          "includeReelPlays": {
            "title": "Reels with their plays",
            "type": "boolean",
            "description": "Add the profile's 12 latest reels with their play counts (`latest_reels`, `avg_reel_plays`) and the plays on the latest posts that are reels. One more call per profile.",
            "default": false
          },
          "includeHighlights": {
            "title": "Highlight titles",
            "type": "boolean",
            "description": "Add the titles of the profile's story highlights (up to 10, `highlights`), the active story's time (`latest_story_at`), the linked Facebook page (`linked_facebook_page`) and the memorialized flag. A profile served by the fallback route has them anyway; on the others it is one more call per profile.",
            "default": false
          },
          "minFollowers": {
            "title": "Min followers",
            "minimum": 0,
            "maximum": 10000000000,
            "type": "integer",
            "description": "Keep a profile only with at least this many followers. A profile left out by a filter is a free row (`filtered`) for a value you gave, and is skipped for an account a keyword or the crawl found. 0 = no minimum.",
            "default": 0
          },
          "maxFollowers": {
            "title": "Max followers",
            "minimum": 0,
            "maximum": 10000000000,
            "type": "integer",
            "description": "Keep a profile only with at most this many followers. 0 = no maximum.",
            "default": 0
          },
          "verifiedOnly": {
            "title": "Verified accounts only",
            "type": "boolean",
            "description": "Keep only the profiles with the verified badge.",
            "default": false
          },
          "businessOnly": {
            "title": "Business accounts only",
            "type": "boolean",
            "description": "Keep only business accounts (`account_type` business); creator and personal accounts are left out.",
            "default": false
          },
          "skipPrivate": {
            "title": "Leave out private accounts",
            "type": "boolean",
            "description": "A private account is always free; with this on it becomes a `filtered` row instead of a `private` row with its public fields.",
            "default": false
          },
          "hasBioContact": {
            "title": "Only profiles with an e-mail or phone in the bio",
            "type": "boolean",
            "description": "Keep only the profiles whose bio text carries an e-mail address or a phone number.",
            "default": false
          },
          "bioKeywords": {
            "title": "Bio keywords",
            "type": "array",
            "description": "Keep only the profiles whose bio contains at least one of these words (case does not matter).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "categories": {
            "title": "Categories",
            "type": "array",
            "description": "Keep only the profiles whose Instagram category contains one of these words (`cafe`, `coach`, `brand`); a profile with no category is left out.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "monitorStore": {
            "title": "Monitor memory name",
            "pattern": "^([A-Za-z0-9][A-Za-z0-9._-]{0,62})?$",
            "type": "string",
            "description": "A name for a memory between runs (letters, digits, '.', '_', '-'). With it, each profile row says what changed since the last run of the same memory: `change_type`, `changed_fields`, `followers_change`, `following_change`, `posts_change`, `new_posts`. For a scheduled task. Empty = no memory.",
            "default": ""
          },
          "maxItems": {
            "title": "Max profiles (whole run)",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "The most charged profile rows of the whole run, over every input, keyword and related account; 0 = no cap beyond your inputs and your charge limit.",
            "default": 0
          },
          "proxyUrl": {
            "title": "Proxy URL",
            "type": "string",
            "description": "Your own proxy (scheme://user:pass@host:port) for every call instead of ours. Leave empty: the Actor brings its own connections at no cost to you."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}