{
  "openapi": "3.0.1",
  "info": {
    "title": "B2B Lead Intelligence",
    "description": "Transform company URLs into actionable sales intelligence. Extract contact info, tech stack, social profiles, and business signals\n  from any company website.",
    "version": "1.0",
    "x-build-id": "WrBTd0TtNord5svEt"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/ghewaretech~b2b-lead-intelligence/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-ghewaretech-b2b-lead-intelligence",
        "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/ghewaretech~b2b-lead-intelligence/runs": {
      "post": {
        "operationId": "runs-sync-ghewaretech-b2b-lead-intelligence",
        "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/ghewaretech~b2b-lead-intelligence/run-sync": {
      "post": {
        "operationId": "run-sync-ghewaretech-b2b-lead-intelligence",
        "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": {
          "mode": {
            "title": "Run Mode",
            "enum": [
              "feed",
              "enriched"
            ],
            "type": "string",
            "description": "How much work to do per lead. 'feed' = fast trigger feed: source the leads, attach signals + ICP relevance, no per-site crawl. 5x cheaper, ~30s for 20 leads, thinner data. 'enriched' = full crawl: contacts, tech stack, decision-makers, intent signals — everything.",
            "default": "enriched"
          },
          "idealCustomerProfile": {
            "title": "Ideal Customer Profile (ICP)",
            "type": "object",
            "description": "Describe your target customer. Drives both sourcing relevance (which discovered companies surface to the top) and the per-lead 0-100 fit score with reasons / disqualifiers. Leave empty only if you are running URL-only enrichment without scoring."
          },
          "sourcing": {
            "title": "Lead Sourcing",
            "type": "object",
            "description": "Pick the public sources to scan. The actor discovers companies matching your ICP, dedupes across sources, ranks by relevance (signal-type weighting + multi-source overlap + ICP keyword/industry hits), then enriches the top N in the same run."
          },
          "urls": {
            "title": "Direct Company URLs (optional)",
            "type": "array",
            "description": "Skip the sourcing block and feed URLs directly when you already have a target list (e.g. existing CRM accounts you want enriched + scored). Combinable with sourcing — both sets get enriched in the same run.",
            "items": {
              "type": "string"
            }
          },
          "extractKeyPeople": {
            "title": "Extract Decision Makers",
            "type": "boolean",
            "description": "Crawl team / leadership / about pages and extract decision-makers (name, title, role category, LinkedIn URL). Categories: founder, executive, sales, marketing, tech, product, finance, people.",
            "default": true
          },
          "detectIntentSignals": {
            "title": "Detect Buying-Intent Signals",
            "type": "boolean",
            "description": "Surface trigger events worth reaching out about: recent funding mentions, hiring surges (open roles by department), leadership changes, product launches, and recent press headlines.",
            "default": true
          },
          "generateOutreachHooks": {
            "title": "Generate Outreach Hooks (LLM)",
            "type": "boolean",
            "description": "Use Apify's built-in LLM (OpenRouter proxy) to generate 2-3 ready-to-send personalisation hooks per lead, grounded in the extracted signals. Adds an LLM cost (billed as Apify platform usage). Off by default.",
            "default": false
          },
          "extractEmails": {
            "title": "Extract Emails",
            "type": "boolean",
            "description": "Find and extract business email addresses (info@, sales@, contact@, etc.). Filters out generic emails like noreply@.",
            "default": true
          },
          "extractPhones": {
            "title": "Extract Phone Numbers",
            "type": "boolean",
            "description": "Find and extract phone numbers in various formats (US, international, formatted).",
            "default": true
          },
          "detectTechStack": {
            "title": "Detect Tech Stack",
            "type": "boolean",
            "description": "Identify 50+ technologies including CMS (WordPress, Shopify), analytics (GA, Mixpanel), chat widgets (Intercom, Drift), payment (Stripe), and frameworks (React, Vue).",
            "default": true
          },
          "includeSocialProfiles": {
            "title": "Include Social Profiles",
            "type": "boolean",
            "description": "Extract links to social media profiles: LinkedIn, Twitter/X, Facebook, YouTube, GitHub, Instagram, Crunchbase.",
            "default": true
          },
          "detectBusinessSignals": {
            "title": "Detect Business Signals",
            "type": "boolean",
            "description": "Identify business signals: careers page (hiring), pricing page, blog activity, customer logos, and estimate company size (1-10, 11-50, 51-200, 200+).",
            "default": true
          },
          "maxPagesPerDomain": {
            "title": "Max Pages Per Domain",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum pages to crawl per company. More pages = better decision-maker and intent-signal coverage but longer runtime and higher cost. Recommended: 10 for basic enrichment, 20+ for full BD analysis.",
            "default": 10
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Use Apify Proxy to avoid being blocked by websites. Highly recommended for large-scale enrichment or sites with bot protection."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}