{
  "openapi": "3.0.1",
  "info": {
    "title": "Website Email Extractor & Contact Scraper",
    "description": "Turn a list of websites into one row per company with emails, phones and LinkedIn/Facebook/Instagram/X profiles. Contact pages are crawled first, Cloudflare-protected emails decoded and email domains checked. Pay only for websites where contacts are found.",
    "version": "0.2",
    "x-build-id": "YCMmz0vtMSk7bdKTN"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/whoareyouanas~website-link-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-whoareyouanas-website-link-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/whoareyouanas~website-link-scraper/runs": {
      "post": {
        "operationId": "runs-sync-whoareyouanas-website-link-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/whoareyouanas~website-link-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-whoareyouanas-website-link-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",
            "type": "array",
            "description": "Domains or URLs to scan, one per line. Bare domains like acme.com work; duplicates and www/non-www variants are merged.",
            "items": {
              "type": "string"
            }
          },
          "outputFormat": {
            "title": "Output format",
            "enum": [
              "website",
              "email",
              "page"
            ],
            "type": "string",
            "description": "One row per website (all contacts merged, best for CRMs and outreach), one row per email, or one row per crawled page with links, images and files.",
            "default": "website"
          },
          "includeWebsitesWithoutContacts": {
            "title": "Include websites without contacts",
            "type": "boolean",
            "description": "Also output websites where nothing was found or that failed to load (status column explains why). Every row is a billed result.",
            "default": false
          },
          "inputDatasetId": {
            "title": "Websites from a dataset (optional)",
            "type": "string",
            "description": "ID of an Apify dataset to read websites from, e.g. the output of a Google Maps or Yellow Pages scraper run. The website/url/domain field is detected automatically."
          },
          "inputDatasetUrlField": {
            "title": "Dataset website field",
            "type": "string",
            "description": "Field to read from each dataset item when auto-detection is not enough. Dot paths like company.website are supported."
          },
          "maxPagesPerSite": {
            "title": "Max pages per website",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Page budget for each website. Contact, imprint and about pages are visited first, so 5–10 pages is usually enough.",
            "default": 10
          },
          "stopWhenContactsFound": {
            "title": "Stop when contacts are found",
            "type": "boolean",
            "description": "After the homepage and contact-like pages, stop crawling a website once an email is found. Turn off to use the full page budget.",
            "default": true
          },
          "maxDepth": {
            "title": "Max depth",
            "minimum": 0,
            "type": "integer",
            "description": "How many clicks away from the homepage to follow links. 0 = homepage only.",
            "default": 2
          },
          "maxPages": {
            "title": "Max pages for the whole run",
            "minimum": 0,
            "type": "integer",
            "description": "Optional overall page cap shared by all websites. 0 = no overall cap (the per-website budget still applies).",
            "default": 0
          },
          "crawlerType": {
            "title": "Crawler type",
            "enum": [
              "http",
              "browser"
            ],
            "type": "string",
            "description": "HTTP is fast and cheap and works for most business websites. Browser renders JavaScript (React/Vue single-page sites, contact details injected by scripts) but is about 10x slower.",
            "default": "http"
          },
          "sameDomainOnly": {
            "title": "Same domain only",
            "type": "boolean",
            "description": "If enabled, crawler follows only links from the same domain as each seed URL.",
            "default": true
          },
          "includeSubdomains": {
            "title": "Include subdomains",
            "type": "boolean",
            "description": "Treat subdomains as internal when same-domain crawling is enabled.",
            "default": false
          },
          "includeUrlGlobs": {
            "title": "Include URL globs",
            "type": "array",
            "description": "If non-empty, only URLs matching at least one glob are crawled.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "excludeUrlGlobs": {
            "title": "Exclude URL globs",
            "type": "array",
            "description": "URLs matching any glob are skipped.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "extractLinks": {
            "title": "Extract links",
            "type": "boolean",
            "description": "Extract and classify internal and external page links. Page output format only.",
            "default": true
          },
          "extractEmails": {
            "title": "Extract emails",
            "type": "boolean",
            "description": "Extract email addresses from page content and mailto links.",
            "default": true
          },
          "checkEmailDomains": {
            "title": "Check email domains",
            "type": "boolean",
            "description": "Free DNS check that every email domain has a mail server (MX record). Removes typos like gmial.com and dead domains before they reach your results. This does not verify individual mailboxes.",
            "default": true
          },
          "extractPhones": {
            "title": "Extract phone numbers",
            "type": "boolean",
            "description": "Extract phone numbers from tel: links, page text and JSON-LD. Numbers are validated and returned in E.164 format (e.g. +14155552671).",
            "default": true
          },
          "defaultPhoneCountry": {
            "title": "Default phone country",
            "type": "string",
            "description": "Two-letter country code (e.g. US, GB, DE) used to read local-format numbers like (415) 555-2671. Without it, only numbers written with a + country prefix are extracted from text.",
            "default": ""
          },
          "extractSocial": {
            "title": "Extract social links",
            "type": "boolean",
            "description": "Extract profile links for major social platforms.",
            "default": true
          },
          "extractImages": {
            "title": "Extract image URLs",
            "type": "boolean",
            "description": "Extract image URLs from page markup and metadata. Page output format only.",
            "default": true
          },
          "extractFiles": {
            "title": "Extract file URLs",
            "type": "boolean",
            "description": "Extract downloadable file links such as PDFs, docs, and archives. Page output format only.",
            "default": true
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of pages fetched in parallel across all websites.",
            "default": 20
          },
          "maxConcurrencyPerSite": {
            "title": "Max parallel requests per website",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "How many pages of the same website are fetched at once. Low values are polite and avoid rate limits; many websites are still crawled in parallel.",
            "default": 3
          },
          "requestTimeoutSecs": {
            "title": "Request timeout (secs)",
            "minimum": 1,
            "type": "integer",
            "description": "Timeout for loading and processing a single page.",
            "default": 20
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional proxy settings. Leave empty for direct connections."
          },
          "mode": {
            "title": "Output mode (legacy)",
            "type": "string",
            "description": "Kept for older integrations: full = page rows, emails_only = email rows. Use Output format instead."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}