{
  "openapi": "3.0.1",
  "info": {
    "title": "Website Contact, Email, Phone & Social Scraper ($2/1k)",
    "description": "Extract verified emails (including Cloudflare-protected addresses), phone numbers, WhatsApp, 12 social media links, JSON-LD address & ad pixels/tech stack — one clean row per website ($2/1k). Chain directly with Google Maps datasets.",
    "version": "1.0",
    "x-build-id": "FKiKxg0pR43dGrYI1"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/aimtomisbehave~website-contact-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-aimtomisbehave-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/aimtomisbehave~website-contact-scraper/runs": {
      "post": {
        "operationId": "runs-sync-aimtomisbehave-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/aimtomisbehave~website-contact-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-aimtomisbehave-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": {
          "urls": {
            "title": "Websites or Domains to Scrape",
            "type": "array",
            "description": "List of business URLs or bare domains (e.g., 'shopify.com' or 'https://cal.com'). Leave empty when enriching a Dataset or CSV.",
            "items": {
              "type": "string"
            }
          },
          "datasetId": {
            "title": "Apify Dataset (Chain Directly from Google Maps / Lead Scrapers)",
            "type": "string",
            "description": "Select an existing Apify Dataset containing websites (auto-detects 'website', 'url', 'domain', 'companyWebsite' and preserves all original columns like title, rating, placeId, phone & address)."
          },
          "csvUrl": {
            "title": "CSV or Google Sheets URL (Optional)",
            "type": "string",
            "description": "Direct CSV URL or public Google Sheets link containing website URLs or domains (preserves original CSV columns)."
          },
          "urlColumn": {
            "title": "Website Column Name (Optional)",
            "type": "string",
            "description": "Leave blank to auto-detect ('website', 'url', 'domain', 'site', etc.).",
            "default": ""
          },
          "preserveDatasetFields": {
            "title": "Preserve Original Dataset / CSV Columns",
            "type": "boolean",
            "description": "Merges your original Google Maps / Apollo / CSV fields (e.g. title, placeId, totalScore, phone, street) directly into each enriched output record.",
            "default": true
          },
          "onlyMissingEmails": {
            "title": "Skip Rows That Already Have an Email ($0 Charge)",
            "type": "boolean",
            "description": "When enriching a Dataset or CSV, passes through rows that already have a valid email without crawling or billing.",
            "default": false
          },
          "maxPagesPerDomain": {
            "title": "Max Contact/About Pages Per Website",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Crawls the homepage first, then follows discovered /contact, /about, /team, /impressum, /legal links up to this page cap.",
            "default": 4
          },
          "verifyEmailMx": {
            "title": "Verify Extracted Email MX & Mail Provider (Included Free)",
            "type": "boolean",
            "description": "Checks DNS MX records and identifies the company's Mail Provider (Google Workspace, Microsoft 365, etc.) and personal vs. role inboxes.",
            "default": true
          },
          "defaultPhoneCountry": {
            "title": "Default Country for Local Phone Numbers",
            "type": "string",
            "description": "2-letter ISO country code used when parsing domestic phone numbers without a '+' country prefix (international '+' numbers are always detected automatically).",
            "default": "US"
          },
          "onlyWithContacts": {
            "title": "Export Only Websites Where Contacts/Socials Were Found",
            "type": "boolean",
            "description": "Filters out websites that expose zero emails, phone numbers, or social profiles (note: zero-contact websites are already $0 either way!).",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration (Optional)",
            "type": "object",
            "description": "Optional Apify Proxy configuration for heavily WAF-protected target websites. Runs fast & proxy-free by default using Chrome TLS impersonation."
          },
          "concurrency": {
            "title": "Parallel Website Workers",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Number of websites crawled concurrently (1 to 30).",
            "default": 15
          },
          "maxDomains": {
            "title": "Maximum Websites to Process (Optional)",
            "minimum": 1,
            "type": "integer",
            "description": "Optional cap on total rows processed in this run."
          },
          "apifyToken": {
            "title": "Cross-Account Apify API Token (Optional)",
            "type": "string",
            "description": "Only needed if reading a private Dataset ID belonging to a different Apify account."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}