{
  "openapi": "3.0.1",
  "info": {
    "title": "Company Contact Enricher - Website to B2B Leads",
    "description": "Transform company website URLs into enriched B2B contact data. Automatically scrapes team pages, detects email patterns, cross-references LinkedIn & identifies decision makers.\n- Website Scanning \n- Contact Extraction \n- Email Pattern Detection \n- LinkedIn Integration \n- Title Filtering \n- Webhooks",
    "version": "1.0",
    "x-build-id": "KUEpKGGafacXwNfbF"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/alizarin_refrigerator-owner~company-contact-enricher/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-alizarin_refrigerator-owner-company-contact-enricher",
        "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/alizarin_refrigerator-owner~company-contact-enricher/runs": {
      "post": {
        "operationId": "runs-sync-alizarin_refrigerator-owner-company-contact-enricher",
        "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/alizarin_refrigerator-owner~company-contact-enricher/run-sync": {
      "post": {
        "operationId": "run-sync-alizarin_refrigerator-owner-company-contact-enricher",
        "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": {
          "demoMode": {
            "title": "Demo Mode",
            "type": "boolean",
            "description": "Return sample data for testing (no charges). Set to false for live data.",
            "default": true
          },
          "websiteUrls": {
            "title": "Website URLs",
            "type": "array",
            "description": "Company website URLs to enrich (e.g., https://example.com)",
            "items": {
              "type": "string"
            }
          },
          "targetTitles": {
            "title": "Target Job Titles",
            "type": "array",
            "description": "Filter contacts by job titles (e.g., CEO, CTO, VP)",
            "items": {
              "type": "string"
            },
            "default": [
              "CEO",
              "CTO",
              "Founder",
              "Owner",
              "VP",
              "Director"
            ]
          },
          "maxContactsPerSite": {
            "title": "Max Contacts Per Site",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum contacts to return per company",
            "default": 10
          },
          "apolloApiKey": {
            "title": "Apollo.io API Key",
            "type": "string",
            "description": "Your Apollo.io API key for B2B contact lookup (primary source)"
          },
          "hunterApiKey": {
            "title": "Hunter.io API Key",
            "type": "string",
            "description": "Hunter.io API key for email finding (SMB fallback + email verification)"
          },
          "anthropicApiKey": {
            "title": "Anthropic API Key",
            "type": "string",
            "description": "Anthropic API key for AI-powered contact extraction from websites"
          },
          "firecrawlApiKey": {
            "title": "Firecrawl API Key",
            "type": "string",
            "description": "Firecrawl API key for fetching website content (required for AI extraction)"
          },
          "enableHunterFallback": {
            "title": "Enable Hunter.io Fallback",
            "type": "boolean",
            "description": "Use Hunter.io domain search when Apollo has no results",
            "default": true
          },
          "enableBBB": {
            "title": "Enable BBB Lookup",
            "type": "boolean",
            "description": "Search Better Business Bureau for owner/principal info",
            "default": true
          },
          "enableSocialLookup": {
            "title": "Enable Social Media Lookup",
            "type": "boolean",
            "description": "Cross-reference LinkedIn/Facebook business pages for owner info",
            "default": false
          },
          "enableStateSOS": {
            "title": "Enable State SOS Lookup",
            "type": "boolean",
            "description": "Search state Secretary of State business registrations for all 50 states. Uses 3-tier cascade: direct HTML scrapers for FL/NJ, Firecrawl+AI extraction for all states (with state-specific URLs + OpenCorporates fallback), and Google SERP for remaining coverage. Filters out corporate registered agents to find real business owners.",
            "default": true
          },
          "companyCity": {
            "title": "Company City",
            "type": "string",
            "description": "City for BBB lookup (e.g., Austin)"
          },
          "companyState": {
            "title": "Company State",
            "type": "string",
            "description": "State code for SOS/BBB lookup (e.g., TX, CA)"
          },
          "gbpData": {
            "title": "Google Business Profile Data",
            "type": "array",
            "description": "GBP data from google-maps-scraper (auto-populated in pipelines)",
            "items": {
              "type": "object"
            }
          },
          "socialProfiles": {
            "title": "Social Media Profiles",
            "type": "object",
            "description": "Social profiles for cross-reference (linkedin, facebook, instagram, twitter)"
          },
          "decisionMakerMode": {
            "title": "Decision Maker Mode",
            "type": "boolean",
            "description": "When enabled, prioritizes decision makers and filters out contacts without recognizable decision-making titles. Each contact gets a seniorityLevel and decisionMakerScore (0-100). Results are sorted by score descending (most senior first).",
            "default": false
          },
          "targetRoles": {
            "title": "Target Roles",
            "type": "array",
            "description": "Only return contacts matching these roles (fuzzy match — 'CEO' matches 'Chief Executive Officer', 'Dir. of Marketing' matches 'Director'). Leave empty to return all roles.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "seniorityFilter": {
            "title": "Minimum Seniority Level",
            "enum": [
              "c-level",
              "vp",
              "director",
              "manager",
              "any"
            ],
            "type": "string",
            "description": "Only return contacts at or above this seniority level. C-Level includes CEO, CTO, CFO, President, etc. VP includes Vice President, SVP, EVP. Director includes Director, Head of. Manager includes Manager, Lead, Supervisor. 'Any' returns all contacts.",
            "default": "any"
          },
          "lookupLinkedIn": {
            "title": "Lookup LinkedIn Profiles",
            "type": "boolean",
            "description": "Cross-reference contacts with LinkedIn (additional charge per lookup)",
            "default": false
          },
          "detectEmailPattern": {
            "title": "Detect Email Pattern",
            "type": "boolean",
            "description": "Generate emails using detected company pattern (first.last@domain.com)",
            "default": true
          },
          "includePhoneNumbers": {
            "title": "Include Phone Numbers",
            "type": "boolean",
            "description": "Include phone numbers when found",
            "default": true
          },
          "webhookUrl": {
            "title": "Webhook URL",
            "type": "string",
            "description": "URL to send results when complete (Zapier, Make, n8n)"
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Proxy settings for web scraping fallback",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}