{
  "openapi": "3.0.1",
  "info": {
    "title": "InstaLead AI - Mass Instagram Email & Lead Scraper (PRO)",
    "description": "[PRO Edition - Paid Apify Plan or Custom Proxy Required] Extract targeted emails, contact info, phone numbers, bio links, and follower counts from Instagram profiles via Google SERP proxies. Free users should use our companion actor: instagram-email-phone-lead-scraper.",
    "version": "1.0",
    "x-build-id": "oXYfbszHH3pNQQUQs"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/automation_studio~instagram-email-lead-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-automation_studio-instagram-email-lead-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/automation_studio~instagram-email-lead-scraper/runs": {
      "post": {
        "operationId": "runs-sync-automation_studio-instagram-email-lead-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/automation_studio~instagram-email-lead-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-automation_studio-instagram-email-lead-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": {
          "search_keywords": {
            "title": "🎯 Search Keywords & Target Niches",
            "type": "array",
            "description": "Enter target niches, industries, or creator types (e.g. 'fitness coach', 'realtor miami', 'fashion brand').",
            "default": [
              "fitness coach"
            ],
            "items": {
              "type": "string"
            }
          },
          "direct_usernames": {
            "title": "👤 Direct Instagram Usernames (Optional)",
            "type": "array",
            "description": "Optional list of specific Instagram handles to find contact details for (e.g. 'gymshark', 'zara', 'nike').",
            "items": {
              "type": "string"
            }
          },
          "hashtags": {
            "title": "🏷️ Target Hashtags (Optional)",
            "type": "array",
            "description": "Optional hashtags to target (e.g. '#fitnesscoach', '#miamirealtor').",
            "items": {
              "type": "string"
            }
          },
          "location_filter": {
            "title": "📍 Target Location (Optional)",
            "type": "string",
            "description": "Optional city, state, or country filter (e.g. 'United States', 'New York', 'London')."
          },
          "email_domains": {
            "title": "✉️ Target Email Domains (Optional)",
            "type": "array",
            "description": "Restrict results to specific email providers (e.g. 'gmail.com', 'yahoo.com', 'outlook.com'). Leave empty for all providers.",
            "items": {
              "type": "string"
            }
          },
          "only_custom_domains": {
            "title": "🏢 Only Private Company Business Domains",
            "type": "boolean",
            "description": "Skip free webmail (Gmail/Yahoo/Outlook) and only extract corporate business emails (e.g. name@brand.com) — ideal for high-ticket B2B outreach.",
            "default": false
          },
          "max_results": {
            "title": "📊 Max Results to Scrape",
            "minimum": 3,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum number of total lead records to collect (5 to 10,000).",
            "default": 10
          },
          "only_with_email": {
            "title": "✅ Only Profiles With Public Email",
            "type": "boolean",
            "description": "Save only profiles that have a verified public contact email address.",
            "default": true
          },
          "extract_phone_numbers": {
            "title": "📞 Extract Phone & WhatsApp Numbers",
            "type": "boolean",
            "description": "Extract phone numbers and direct WhatsApp links from bio text.",
            "default": true
          },
          "extract_social_links": {
            "title": "🔗 Extract Social Media Links",
            "type": "boolean",
            "description": "Extract other social handles (TikTok, YouTube, LinkedIn, Twitter/X) found in bios.",
            "default": true
          },
          "custom_proxy_url": {
            "title": "🌐 Custom Proxy URL (Optional)",
            "type": "string",
            "description": "Enter your own rotating residential or SERP proxy URL (e.g. 'http://user:pass@proxy.example.com:8080'). If set, this proxy is used instead of Apify Proxy."
          },
          "proxyConfiguration": {
            "title": "🛡️ Apify Proxy (Requires Apify Paid Plan)",
            "type": "object",
            "description": "Apify Proxy configured with GOOGLE_SERP. Available to Apify Paid Subscribers (Personal, Team, Enterprise). Free users can run without proxy for 3 free sample leads, or use our free companion actor.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "GOOGLE_SERP"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}