{
  "openapi": "3.0.1",
  "info": {
    "title": "🔥Instagram Profile Finder🔥",
    "description": "Discover public Instagram profiles through Google Search and turn available public data into structured datasets. Extract bios, follower stats, links, public contact emails, latest-post previews, related accounts, and optional Facebook context.",
    "version": "0.0",
    "x-build-id": "GOuWC9jUf5TMhfDpN"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/instagram-scraper~instagram-profile-finder/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-instagram-scraper-instagram-profile-finder",
        "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/instagram-scraper~instagram-profile-finder/runs": {
      "post": {
        "operationId": "runs-sync-instagram-scraper-instagram-profile-finder",
        "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/instagram-scraper~instagram-profile-finder/run-sync": {
      "post": {
        "operationId": "run-sync-instagram-scraper-instagram-profile-finder",
        "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",
        "required": [
          "queries"
        ],
        "properties": {
          "queries": {
            "title": "Search queries",
            "minItems": 1,
            "maxItems": 5000,
            "type": "array",
            "description": "Business keywords and search operators used to discover public Instagram profiles. Do not enter search URLs.",
            "items": {
              "type": "string"
            }
          },
          "emailDiscoveryMode": {
            "title": "Email discovery mode",
            "type": "boolean",
            "description": "Opt in to replace each business search expression with Google searches for common email-provider domains.\n\nThis increases the number of searches and may find public email addresses, but it does not guarantee that every resulting Profile will have an email address.\n\nA publicly available email does not verify ownership or grant permission to send marketing messages; you are responsible for lawful use.",
            "default": false
          },
          "searchMode": {
            "title": "Search mode",
            "enum": [
              "profiles",
              "posts_and_reels",
              "only_posts",
              "only_reels"
            ],
            "type": "string",
            "description": "Choose direct Profile URL discovery, or discover Post and/or Reel URLs and resolve their public owners to Profiles.",
            "default": "profiles"
          },
          "searchTimeRange": {
            "title": "Search time range",
            "enum": [
              "day",
              "week",
              "month",
              "year"
            ],
            "type": "string",
            "description": "Limit search results to a recent time range. Leave blank to search all available results."
          },
          "queryMaxResults": {
            "title": "Maximum candidate URLs per query",
            "minimum": 10,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum number of unique valid Profile URLs retained from each query. This is not a guarantee of dataset records.",
            "default": 10
          },
          "searchCountry": {
            "title": "Search country",
            "pattern": "^[a-z]{2}$",
            "type": "string",
            "description": "Enter a two-letter lowercase country code, such as us. If not set, us is used.",
            "default": "us"
          },
          "searchLanguage": {
            "title": "Search language",
            "pattern": "^[A-Za-z]{2,10}(?:-[A-Za-z0-9]{2,10})*$",
            "type": "string",
            "description": "Enter a language code, such as en. If not set, en is used.",
            "default": "en"
          },
          "scrapeFacebookProfile": {
            "title": "Scrape Facebook Profile",
            "type": "boolean",
            "description": "When enabled, the actor looks for one Facebook profile URL in external_url, bio_links, fb_profile_biolink, or biography, then fetches fb_profile.",
            "default": false
          },
          "skipPostCount": {
            "title": "Skip Post Count",
            "type": "boolean",
            "description": "Skip post_count. Enable this to get profile data faster when post count is not required.",
            "default": false
          },
          "skipLatestPosts": {
            "title": "Skip Latest Posts",
            "type": "boolean",
            "description": "Skip latest_posts. Enable this to get profile data faster when latest posts are not required.",
            "default": true
          },
          "skipRelatedProfiles": {
            "title": "Skip Related Profiles",
            "type": "boolean",
            "description": "Skip related_profiles. Enable this to get profile data faster when related profiles are not required.",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}