{
  "openapi": "3.0.1",
  "info": {
    "title": "Instagram Profile Email & Phone Scraper",
    "description": "Extract public emails and phone numbers from Instagram profiles by username or URL. Each row adds bio, followers, following, business category, website, bio links, verification and recent posts. Optional email domain check and account age estimate. Unknown usernames are not charged. No login needed.",
    "version": "1.0",
    "x-build-id": "Sc0bocDmtjr7e1ZQc"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/khadinakbar~instagram-profile-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-khadinakbar-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/khadinakbar~instagram-profile-scraper/runs": {
      "post": {
        "operationId": "runs-sync-khadinakbar-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/khadinakbar~instagram-profile-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-khadinakbar-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",
        "required": [
          "usernames"
        ],
        "properties": {
          "usernames": {
            "title": "Instagram usernames or profile URLs",
            "type": "array",
            "description": "One or more Instagram accounts to scrape. Accepts bare usernames ('natgeo'), @-handles ('@nasa'), or full profile URLs ('https://instagram.com/nike'). Returns one record per profile; private accounts return metadata only (no posts). NOT for hashtags or post URLs — use a hashtag/post scraper for those. Free Apify plan runs return up to 25 results per run.",
            "items": {
              "type": "string"
            }
          },
          "onlyWithContact": {
            "title": "Only profiles with a public email or phone",
            "type": "boolean",
            "description": "Return only profiles that show a public email or phone. Profiles without one are not charged, but we still pay to look them up, so these runs use the filtered-run price once it is live and stop early if too few profiles match (safety limit: more than 4 lookups per delivered profile after the first 20). Default off.",
            "default": false
          },
          "minFollowers": {
            "title": "Minimum followers",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only profiles with at least this many followers. Filtered runs use the filtered-run price once it is live and stop early if too few profiles match. Default off."
          },
          "maxFollowers": {
            "title": "Maximum followers",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only profiles with at most this many followers. Default off."
          },
          "accountType": {
            "title": "Account type",
            "enum": [
              "any",
              "business",
              "creator",
              "personal"
            ],
            "type": "string",
            "description": "Keep only business, creator or personal accounts. 'Any' keeps everything (default).",
            "default": "any"
          },
          "verifiedOnly": {
            "title": "Only verified accounts",
            "type": "boolean",
            "description": "Keep only accounts with the blue tick. Default off.",
            "default": false
          },
          "bioContains": {
            "title": "Bio or name contains any of these words",
            "type": "array",
            "description": "Keep only profiles whose bio, name or category contains at least one of these words (not case sensitive). Default off.",
            "items": {
              "type": "string"
            }
          },
          "skipPreviouslyDelivered": {
            "title": "Skip profiles already delivered to me",
            "type": "boolean",
            "description": "Skips handles this Actor delivered to your account in earlier runs, so you never pay twice for the same profile. A small store named instagram-profile-delivered is kept in your account. Default off.",
            "default": false
          },
          "includeAccountAge": {
            "title": "Add estimated account age",
            "type": "boolean",
            "description": "Adds the estimated month and year the account was created, its age in years, and how reliable the estimate is. The estimate comes from the numeric ID Instagram assigned when the account was created, so it is usually right to within a few months and is not an official date. Included in the normal profile price. The default is off.",
            "default": false
          },
          "scrapeRecentPosts": {
            "title": "Include recent posts",
            "type": "boolean",
            "description": "Whether to include the profile's most recent posts (up to 12) in each record, with caption, like and comment counts, media type, thumbnail, and timestamp. Defaults to true. Set to false for lighter, profile-only records when you only need follower and contact data.",
            "default": true
          },
          "maxRecentPosts": {
            "title": "Max recent posts per profile",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum recent posts to include per profile. Instagram's public profile endpoint returns at most 12 per request, so larger values are automatically capped at 12 (no error). Set 0, or turn off 'Include recent posts', for none. Defaults to 12.",
            "default": 12
          },
          "verifyEmails": {
            "title": "Check email domains",
            "type": "boolean",
            "description": "Adds an emailCheck field to every profile that has a public email: mx_ok (the domain accepts mail), no_mail_server, invalid_format or unknown. It proves the domain can receive email, not that the mailbox exists. Included in the normal profile price. The default is off.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration (not used)",
            "type": "object",
            "description": "No longer used. Profiles are read from owner-managed data sources, so no proxy is needed. Kept only so saved tasks keep working.",
            "default": {}
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}