{
  "openapi": "3.0.1",
  "info": {
    "title": "Instagram B2B Email Scraper With Business Profile Leads",
    "description": "📧 Instagram B2B Email Scraper finds public business emails from Instagram profiles & bios — with name, username, category, website, followers, and bio link. 🚀 Perfect for B2B lead gen, outreach, and sales. 🔁 Fast, accurate, CSV export for clean, targeted contact lists.",
    "version": "1.0",
    "x-build-id": "MIa6otD5PMNy7HKxL"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/api-empire~instagram-b2b-email-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-api-empire-instagram-b2b-email-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/api-empire~instagram-b2b-email-scraper/runs": {
      "post": {
        "operationId": "runs-sync-api-empire-instagram-b2b-email-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/api-empire~instagram-b2b-email-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-api-empire-instagram-b2b-email-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": {
          "leadKeywords": {
            "title": "🔍 Search Keywords",
            "type": "array",
            "description": "🔎 Search terms for Instagram business leads via Google (e.g. marketing, fitness, real estate). ✨ Add one or many. (Base key 'keywords' also accepted.)",
            "items": {
              "type": "string"
            }
          },
          "extractionMode": {
            "title": "🎯 Lead Extraction Mode",
            "enum": [
              "b2b",
              "personal"
            ],
            "type": "string",
            "description": "👤 personal = Gmail/Outlook discovery | 🏢 b2b = corporate email patterns. (Base key 'mode' also accepted.)"
          },
          "allowedPersonalDomains": {
            "title": "📬 Personal Email Domains",
            "type": "array",
            "description": "👤 Personal mode: filter results to these domains (e.g. @gmail.com, @outlook.com). ⏭️ Ignored in B2B mode. (Base key 'customDomains' also accepted.)",
            "items": {
              "type": "string"
            }
          },
          "b2bPatternSelection": {
            "title": "🧩 B2B Search Pattern Keys",
            "type": "array",
            "description": "🏢 B2B only: 📂 empty list runs all 29 patterns; or name specific keys (e.g. email_for_bookings, bio_email_basic). (Base key 'patterns' also accepted.)",
            "items": {
              "type": "string"
            }
          },
          "sourcePlatform": {
            "title": "🌐 Target Platform",
            "enum": [
              "Instagram.com"
            ],
            "type": "string",
            "description": "📱 Target social platform for lead discovery. (Base key 'platform' also accepted.)"
          },
          "locationFilter": {
            "title": "📍 Location Filter",
            "type": "string",
            "description": "🗺️ Geographic filter added to search queries (e.g. London, New York). 🌍 Leave empty for global results. (Base key 'location' also accepted.)"
          },
          "maxLeadResults": {
            "title": "📊 Maximum Total Leads",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "🎯 Maximum number of leads to collect across all keywords and patterns. (Base key 'maxEmails' also accepted.)"
          },
          "maxResultsPerPattern": {
            "title": "🧩 Max Leads Per B2B Pattern",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "📈 Cap leads collected per B2B search pattern (🏢 B2B mode only). (Base key 'maxEmailsPerPattern' also accepted.)"
          },
          "enrichProfile": {
            "title": "🧬 Enrich With Real Profile Data",
            "type": "boolean",
            "description": "✅ Fetch each lead's live Instagram profile (followers, business category, verified, bio, external URL) via the public web_profile_info endpoint. Inherited from the base actor's own enrichProfile feature (not new) — this variant defaults it ON, whereas base defaults it OFF.",
            "default": true
          },
          "maxRelatedProfiles": {
            "title": "🔗 Max Related Profiles Per Lead",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "🕸️ Maximum number of lookalike/related profiles to capture per enriched lead (edge_related_profiles / edge_chaining). Only applies when 🧬 Enrich With Real Profile Data is on.",
            "default": 5
          },
          "extractPhone": {
            "title": "📱 Extract Phone Numbers",
            "type": "boolean",
            "description": "✅ Also scan each Google result snippet for a phone number (bios, contact sections, WhatsApp mentions) and normalize it with a country dial code. Off by default — leaves phoneNumber/dialCode/country as null so you know the field wasn't attempted. (Base key 'extractPhone', unchanged.)",
            "default": false
          },
          "country": {
            "title": "🌎 Target Country / Dial Code",
            "type": "string",
            "description": "🌍 Country name and/or dial code to target phone numbers by (e.g. 'United Kingdom (+44)', 'United States', or just '+91'). 🎯 When a dial code resolves, phone matches are normalized to it AND filtered to only that dial code. Only used when 📱 Extract Phone Numbers is ON. (Base key 'country', unchanged.)",
            "default": ""
          },
          "disableProxy": {
            "title": "🚫 Disable Proxy",
            "type": "boolean",
            "description": "☑️ Check to force a direct connection (no proxy) for Google Search + profile requests. Leave unchecked (default) to use smart proxy — matches base default. (Inverted base key 'useProxy' also accepted.)"
          },
          "advancedProxySettings": {
            "title": "⚙️ Advanced Proxy Settings",
            "type": "object",
            "description": "🔧 Optional proxy override when proxy is enabled. 🎯 Leave as default for best performance. (Base key 'proxyConfiguration' also accepted.)"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}