{
  "openapi": "3.0.1",
  "info": {
    "title": "Website Contact Scraper: Emails, Phones & Social Links",
    "description": "Extract public business emails, phone numbers and social media links from any website. Contact pages found automatically, robots.txt respected, pay per result.",
    "version": "0.1",
    "x-build-id": "UIgSkQXpyIL30Xew4"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/badr_xba~website-contact-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-badr_xba-website-contact-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/badr_xba~website-contact-scraper/runs": {
      "post": {
        "operationId": "runs-sync-badr_xba-website-contact-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/badr_xba~website-contact-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-badr_xba-website-contact-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": {
          "websites": {
            "title": "Websites or domains",
            "type": "array",
            "description": "One website URL or domain per line (example.com, https://www.example.com/contact, münchen.de). Paths are removed and duplicates are read once. Empty input = a demo run with the 3 examples.",
            "items": {
              "type": "string"
            }
          },
          "websitesFile": {
            "title": "CSV / JSON file of websites (URL)",
            "type": "string",
            "description": "Public URL (or Apify key-value store record URL) of a CSV or JSON file. The column / field named website, domain or url is found automatically (or set it below)."
          },
          "datasetId": {
            "title": "Apify dataset ID",
            "type": "string",
            "description": "Pick (or paste the ID of) an existing dataset, for example the output of a Google Maps Actor run (field \"website\"). Read only."
          },
          "websiteField": {
            "title": "Website field / column name",
            "type": "string",
            "description": "Name of the field holding the website in the file or dataset (default: detected, for example website, domain or url)."
          },
          "maxWebsites": {
            "title": "Maximum websites",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "The run stops cleanly after this many websites.",
            "default": 1000
          },
          "maxPagesPerWebsite": {
            "title": "Maximum pages per website",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Home page included. Contact, imprint, about, team and support pages are read first.",
            "default": 5
          },
          "pageTypes": {
            "title": "Page types to look for",
            "type": "array",
            "description": "Pages read after the home page, in this order of priority.",
            "items": {
              "type": "string",
              "enum": [
                "contact",
                "imprint",
                "about",
                "team",
                "support"
              ],
              "enumTitles": [
                "Contact",
                "Imprint / legal notice",
                "About",
                "Team",
                "Support / help"
              ]
            },
            "default": [
              "contact",
              "imprint",
              "about",
              "team",
              "support"
            ]
          },
          "maxEmailsPerWebsite": {
            "title": "Maximum e-mails per website (0 = all)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "The best e-mails of each website are kept first (own domain, role addresses like info@ or contact@, found on a contact or imprint page). The price is per website, not per e-mail.",
            "default": 10
          },
          "stopAfterWebsitesWithoutContact": {
            "title": "Stop after N websites in a row without contact (0 = never)",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Protects your time and platform usage when a list contains no published e-mails or phones.",
            "default": 300
          },
          "maxConcurrency": {
            "title": "Websites read in parallel",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Each website is still read politely (at least 1 second between two pages of the same site).",
            "default": 10
          },
          "excludePersonalLookingEmails": {
            "title": "Leave out personal-looking e-mails (recommended)",
            "type": "boolean",
            "description": "firstname.lastname@ or private webmail addresses are left out and counted in the run summary.",
            "default": true
          },
          "onlyEmailsOnWebsiteDomain": {
            "title": "Only e-mails on the website's own domain",
            "type": "boolean",
            "description": "Keep only addresses @ the company's domain (leaves out web agencies, Gmail…).",
            "default": false
          },
          "excludeDisposable": {
            "title": "Leave out disposable e-mail domains",
            "type": "boolean",
            "description": "On (default): addresses on known throw-away e-mail domains (public CC0 list) are left out. They are counted in RUN_SUMMARY.",
            "default": true
          },
          "verifyEmails": {
            "title": "Check e-mail domains and MX records (paid add-on)",
            "type": "boolean",
            "description": "Looks up the domain and the mail server (MX) of each delivered e-mail and adds domainExists, mxFound and checkStatus. Charged per e-mail that gets an answer (event \"E-mail check\"); DNS timeouts are free. An MX record says the domain receives mail; it does not prove that one mailbox exists (no SMTP connection is made).",
            "default": false
          },
          "excludeNoMx": {
            "title": "Leave out e-mails whose domain has no MX record",
            "type": "boolean",
            "description": "Needs the add-on above. On: e-mails whose domain publishes no mail server are left out.",
            "default": false
          },
          "includeWebsitesWithoutContact": {
            "title": "Add a free row for websites without contact",
            "type": "boolean",
            "description": "One free row per website without a public e-mail or phone (status NO_CONTACT, BLOCKED, ROBOTS_DISALLOWED or UNREACHABLE), with its social links and company details when found.",
            "default": false
          },
          "failRunOnError": {
            "title": "Mark the run as failed when an input fails",
            "type": "boolean",
            "description": "By default the run succeeds and failed inputs are listed in FAILED_INPUTS (never charged).",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy for reading websites",
            "type": "object",
            "description": "Websites are read directly by default (polite pace, robots.txt respected).",
            "default": {
              "useApifyProxy": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}