{
  "openapi": "3.0.1",
  "info": {
    "title": "Website Email, Contact & Tech Stack Scraper - Domain & VIES",
    "description": "B2B domain enrichment and website email contact scraper: extract corporate emails, phones, social links, DNS MX/SPF/DMARC, website tech stack, Impressum/KVK/HRB/SIREN IDs, and EU VAT validated via official VIES API. Export CSV, JSON or sync API.",
    "version": "0.1",
    "x-build-id": "8LPfrotZ4kXTXfAW9"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/angaba92~website-email-contact-tech-stack-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-angaba92-website-email-contact-tech-stack-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/angaba92~website-email-contact-tech-stack-scraper/runs": {
      "post": {
        "operationId": "runs-sync-angaba92-website-email-contact-tech-stack-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/angaba92~website-email-contact-tech-stack-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-angaba92-website-email-contact-tech-stack-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": {
          "domains": {
            "title": "Company domains or website URLs",
            "type": "array",
            "description": "List of company domains (e.g. sipgate.de, hetzner.com) or full website URLs (e.g. https://www.odoo.com) to enrich. Duplicate domains are normalized and deduplicated before crawling and billing. Leave omitted only for a quick 3-domain demo run.",
            "items": {
              "type": "string"
            }
          },
          "maxResults": {
            "title": "Max enriched domains",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum number of reachable enriched company domains to deliver (each delivered row triggers one domain-enriched event).",
            "default": 100
          },
          "maxPagesPerDomain": {
            "title": "Max pages crawled per domain",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Maximum public pages fetched per domain (homepage plus highest-signal contact, about, impressum, legal notice, and privacy pages).",
            "default": 4
          },
          "concurrency": {
            "title": "Concurrent domains",
            "minimum": 1,
            "maximum": 15,
            "type": "integer",
            "description": "Number of distinct company domains processed in parallel.",
            "default": 5
          },
          "corporateOnly": {
            "title": "Corporate role emails only (GDPR legal-entity mode)",
            "type": "boolean",
            "description": "When enabled (default), returns functional corporate role addresses (info@, contact@, sales@, support@, office@, press@, legal@, etc.) and filters out likely personal employee emails.",
            "default": true
          },
          "sameDomainEmailsOnly": {
            "title": "Same-domain emails only",
            "type": "boolean",
            "description": "When enabled (default), keeps only emails belonging to the target company domain (filtering out external dispute boards, agencies, or third-party embeds).",
            "default": true
          },
          "checkDnsMx": {
            "title": "Check DNS MX, SPF & DMARC records",
            "type": "boolean",
            "description": "Verify whether the domain can receive email via DNS MX records, extract SPF/DMARC policy, and identify the mail provider (Google Workspace, Microsoft 365, Cloudflare, etc.).",
            "default": true
          },
          "detectTechStack": {
            "title": "Detect website tech stack",
            "type": "boolean",
            "description": "Identify CMS, e-commerce, frontend frameworks, CRM/chat widgets, analytics pixels, consent tools, payment providers, and CDN/hosting from HTTP headers and HTML.",
            "default": true
          },
          "validateVatVies": {
            "title": "Validate EU VAT numbers via official VIES API",
            "type": "boolean",
            "description": "Cross-check extracted EU/XI VAT IDs against the official European Commission VIES REST API to confirm active VAT status and retrieve registered legal entity name and address when published.",
            "default": true
          },
          "keepSubdomains": {
            "title": "Keep non-www subdomains separate",
            "type": "boolean",
            "description": "When false (default), subdomains like blog.example.com normalize to example.com. Enable to crawl and enrich specific subdomains independently.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration (optional)",
            "type": "object",
            "description": "Optional Apify Proxy settings. Disabled by default to minimize platform usage costs; enable datacenter or residential proxies if target domains use strict WAF rules."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}