{
  "openapi": "3.0.1",
  "info": {
    "title": "Email Scraper: Website Emails, Phones & Contact Details",
    "description": "Find email addresses, phone numbers, social profiles and postal addresses on any website. Paste URLs or domains; several pages per site are visited. One deduplicated row per site. No API keys needed.",
    "version": "1.9",
    "x-build-id": "NTDlTgvQ48ZobwspD"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/santamaria-automations~website-email-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-santamaria-automations-website-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/santamaria-automations~website-email-scraper/runs": {
      "post": {
        "operationId": "runs-sync-santamaria-automations-website-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/santamaria-automations~website-email-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-santamaria-automations-website-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": {
          "urls": {
            "title": "Website URLs",
            "type": "array",
            "description": "Website URLs or bare domains to scan for contact details. Each site is crawled up to maxPagesPerSite pages, starting with the legal page (Impressum), the contact page and the footer links. Example: [\"https://www.example-company.ch\", \"another-business.de\"]",
            "items": {
              "type": "string"
            }
          },
          "companies": {
            "title": "Companies (with company_id passthrough)",
            "type": "array",
            "description": "Alternative to urls. Each entry carries a company_id that is echoed on the output row so you can join the result back to your data. The optional name and address tell the actor which branch you mean when the website belongs to a larger organisation. Combine with urls freely. A place context (name, address, place_id) lets the actor pick the mailbox and the contact person of that place on a parent site; a directory page is followed once to the place's own website. Example: [{\"company_id\": \"acme-123\", \"website_url\": \"https://www.example-company.ch\", \"name\": \"Example Company Zurich\", \"address\": \"Bahnhofstrasse 1, 8001 Zurich\"}]",
            "items": {
              "type": "object",
              "properties": {
                "company_id": {
                  "title": "Company ID",
                  "type": "string",
                  "description": "Your internal identifier, echoed on the output row so you can join enrichment results back to your source data. Example: acme-123"
                },
                "website_url": {
                  "title": "Website URL",
                  "type": "string",
                  "description": "The company's website URL to crawl for emails, phones and social profiles. An entry with a company_id and an empty website_url returns a row with email_status no_website and no crawl. Example: https://www.example-company.ch"
                },
                "name": {
                  "title": "Branch or company name",
                  "type": "string",
                  "description": "Optional. Name of the branch or location you want the email for. When the website belongs to a parent organisation, a mailbox that matches this name is preferred over the parent's general mailbox. Example: Kita Matthaeusgemeinde"
                },
                "address": {
                  "title": "Branch address",
                  "type": "string",
                  "description": "Optional. Street, postal code and city of the branch. Used together with name to recognise the branch contact on the page. Example: Platz der Deutschen Einheit 1, 65183 Wiesbaden"
                },
                "company_name": {
                  "title": "Company name (alias)",
                  "type": "string",
                  "description": "Optional alias of name, the format the Google Maps Scraper sends. Example: Kita Matthaeusgemeinde"
                },
                "place_id": {
                  "title": "Place ID",
                  "type": "string",
                  "description": "Optional. Google Maps place ID of the place this website belongs to, echoed in place_results. Example: ChIJ6edADc5xvUcRaRDLb_UmevM"
                },
                "place": {
                  "title": "Place",
                  "type": "object",
                  "description": "Optional. One place as an object. Example: {\"name\": \"Kita Sonnenschein\", \"address\": \"Hauptstrasse 5, 65183 Wiesbaden\", \"place_id\": \"ChIJ6edADc5xvUcRaRDLb_UmevM\"}"
                },
                "places": {
                  "title": "Places on this website",
                  "type": "array",
                  "description": "Optional. Use when one website serves several places (a parent organisation with branches). The site is crawled once and each place gets its own entry in place_results with its own mailbox and contacts. Example: [{\"name\": \"Kita Sonnenschein\", \"address\": \"Hauptstrasse 5, 65183 Wiesbaden\", \"place_id\": \"abc\"}, {\"name\": \"Kita Mondschein\", \"address\": \"Gartenweg 2, 65185 Wiesbaden\", \"place_id\": \"def\"}]",
                  "items": {
                    "type": "object"
                  }
                }
              },
              "required": [
                "website_url"
              ]
            }
          },
          "places": {
            "title": "Places (with website per place)",
            "type": "array",
            "description": "Alternative to companies for place lists. Each entry has website_url plus the place context. Places on the same website are crawled once and answered one by one in place_results. Example: [{\"website_url\": \"https://www.example-kitas.de\", \"name\": \"Kita Sonnenschein\", \"address\": \"Hauptstrasse 5, 65183 Wiesbaden\", \"place_id\": \"abc\"}]",
            "items": {
              "type": "object"
            }
          },
          "maxPagesPerSite": {
            "title": "Max Pages Per Site",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum number of pages to visit per website. The legal page, the contact page and the footer legal link are fetched before any other page, so small values still reach them. Higher values find more contacts but take longer. Example: 10",
            "default": 10
          },
          "maxSecondsPerSite": {
            "title": "Max seconds per site",
            "minimum": 5,
            "maximum": 600,
            "type": "integer",
            "description": "Time limit for one website in seconds. When it runs out the crawl of that site stops, everything found so far is kept, and the row says so in error_message (partial: time budget). The contact pages are read first, so the limit only cuts the other pages. Example: 45",
            "default": 45
          },
          "followExternalLinks": {
            "title": "Follow External Links",
            "type": "boolean",
            "description": "Whether to follow links to external domains. Disabled by default to stay on the target website. Example: false",
            "default": false
          },
          "preFetchedByURL": {
            "title": "Pre-fetched HTML by URL (internal, orchestrator use only)",
            "type": "object",
            "description": "Map of URL -> pre-fetched homepage result. When set, this actor skips the initial homepage GET and starts crawling from the discovered internal links directly. Contact / impressum pages are still fetched normally. Used by the google-maps-scraper orchestrator to consolidate homepage fetches. Direct users should leave this blank. Example: leave empty."
          },
          "preFetchedByCompany": {
            "title": "Pre-fetched HTML by company_id (internal, orchestrator use only)",
            "type": "object",
            "description": "Same as preFetchedByURL but keyed by company_id (matches the `companies` input). Preferred over URL-keyed lookup when a company_id is present. Example: leave empty."
          },
          "enableBrowserFallback": {
            "title": "Enable browser-tier fallback (paid add-on)",
            "type": "boolean",
            "description": "When enabled, sites that fail HTTP extraction (blocked, empty results despite 200 OK, cross-scheme redirect failures) are re-processed by the sister actor santamaria-automations/website-email-scraper-browser, which uses a real browser. This starts a SEPARATE billed run on the browser actor (about 10x the per-page cost of this actor), so you will see two runs and two charges. The browser run ID is saved to this run's key-value store as BROWSER_FALLBACK_RUN_ID. Useful for European B2C sites with heavy bot protection, or when yield matters more than cost. Example: false",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}