{
  "openapi": "3.0.1",
  "info": {
    "title": "Instagram B2B Email Scraper By Verified Leads Filter",
    "description": "📸 Instagram B2B Email Scraper extracts business emails from Instagram profiles & bios—plus company name, website, category, followers, and contact links. 🎯 Ideal for B2B lead gen, sales outreach & market research. 🚀 Fast, accurate, and CSV/CRM-ready.",
    "version": "1.0",
    "x-build-id": "bUx4Z3a7WikOYBi88"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapier~instagram-b2b-email-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapier-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/scrapier~instagram-b2b-email-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapier-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/scrapier~instagram-b2b-email-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapier-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": {
          "searchKeywords": {
            "title": "🔍 Search Keywords",
            "type": "array",
            "description": "🔎 Search terms for Instagram via Google (e.g. marketing, fitness, real estate). ✨ Add one or many keywords. Accepts base key 'keywords' too.",
            "items": {
              "type": "string"
            }
          },
          "leadMode": {
            "title": "🎯 Extraction Mode",
            "enum": [
              "b2b",
              "personal"
            ],
            "type": "string",
            "description": "👤 personal = Gmail/Outlook discovery | 🏢 b2b = corporate email patterns. Accepts base key 'mode' too."
          },
          "personalDomainFilter": {
            "title": "📬 Custom Email Domains",
            "type": "array",
            "description": "👤 Personal mode: filter results to these domains (e.g. @gmail.com, @outlook.com). ⏭️ Ignored in B2B mode. Accepts base key 'customDomains' too.",
            "items": {
              "type": "string"
            }
          },
          "b2bPatternFilter": {
            "title": "🔎 B2B Search Patterns",
            "type": "array",
            "description": "🏢 B2B only: 📂 empty list runs all patterns; or name specific keys from b2b_patterns.py (e.g. email_for_bookings, bio_email_basic). Accepts base key 'patterns' too.",
            "items": {
              "type": "string"
            }
          },
          "targetNetwork": {
            "title": "🌐 Platform",
            "enum": [
              "Instagram.com"
            ],
            "type": "string",
            "description": "📱 Target social platform for email discovery. Accepts base key 'platform' too."
          },
          "locationQuery": {
            "title": "📍 Location",
            "type": "string",
            "description": "🗺️ Geographic filter added to search queries (e.g. London, New York). 🌍 Leave empty for global results. Accepts base key 'location' too."
          },
          "maxLeadEmails": {
            "title": "📊 Maximum Total Emails",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "🎯 Maximum number of emails to collect across all keywords and patterns. Accepts base key 'maxEmails' too."
          },
          "maxPerPatternCap": {
            "title": "🧩 Max Emails Per B2B Pattern",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "📈 Cap emails collected per B2B search pattern (🏢 B2B mode only). Accepts base key 'maxEmailsPerPattern' too."
          },
          "verifyDeliverability": {
            "title": "✅ Verify Email Deliverability",
            "type": "boolean",
            "description": "🛰️ Run a DNS-over-HTTPS (Cloudflare/Google) MX lookup per email domain → mxFound + mxHost, cached per domain, and factor it into the confidence score. SMTP/catch-all probing is intentionally excluded (blocked from datacenter IPs). Default on.",
            "default": true
          },
          "enrichProfile": {
            "title": "🧬 Enrich With Real Profile Data",
            "type": "boolean",
            "description": "✅ Fetch each discovered lead's live Instagram profile (followers count, business account flag, business category, verified status, bio, external URL) via the public web_profile_info endpoint, plus a list of related/lookalike profiles. Off by default (adds one extra request per lead). Ported from the base Instagram B2B Email Scraper actor.",
            "default": false
          },
          "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. 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. Ported from the base Instagram B2B Email Scraper actor.",
            "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.",
            "default": ""
          },
          "disableAutoProxyFallback": {
            "title": "🚫 Disable Auto Proxy Fallback",
            "type": "boolean",
            "description": "☑️ Leave unchecked (default) to keep the automatic direct → datacenter → residential proxy escalation active on blocks (matches base behavior). ✅ Check to force direct connections only, ignoring the fallback chain. Accepts base key 'useProxy' too (useProxy:false ⇒ disabled)."
          },
          "proxyConfiguration": {
            "title": "⚙️ Advanced Proxy Settings",
            "type": "object",
            "description": "🔧 Optional proxy override when auto proxy fallback is enabled. 🎯 Leave as default for best performance."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}