{
  "openapi": "3.0.1",
  "info": {
    "title": "Contact Details Scraper + Sales Signals",
    "description": "Contact details scraper for company websites: emails, phones and social profiles, plus sales signals (Google Ads, Meta pixel, online booking, hiring, web agency, content age, Google Workspace or Microsoft 365) and tech stack. Pay only for websites where an email or phone is found.",
    "version": "0.3",
    "x-build-id": "irLfKuGVDLT6rKfNd"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/kondasviktor~contact-details-scraper-sales-signals/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-kondasviktor-contact-details-scraper-sales-signals",
        "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/kondasviktor~contact-details-scraper-sales-signals/runs": {
      "post": {
        "operationId": "runs-sync-kondasviktor-contact-details-scraper-sales-signals",
        "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/kondasviktor~contact-details-scraper-sales-signals/run-sync": {
      "post": {
        "operationId": "run-sync-kondasviktor-contact-details-scraper-sales-signals",
        "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": "Company website URLs (homepage or any page on the domain). Optional if Source dataset is set. Directory and social links (Yelp, Facebook, Gelbeseiten…) are skipped for free.",
            "items": {
              "type": "string"
            }
          },
          "sourceDataset": {
            "title": "Source dataset ID",
            "type": "string",
            "description": "Optional. Apify dataset ID from Finder (or any run) — reads website/url fields. Combine with or instead of websites[]."
          },
          "maxWebsites": {
            "title": "Max websites",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Cap after merging websites[] and sourceDataset.",
            "default": 1000
          },
          "maxPagesPerSite": {
            "title": "Max pages per site",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Homepage plus priority contact/about/legal/career pages. Higher finds more emails; keep low for speed.",
            "default": 6
          },
          "requestTimeoutSecs": {
            "title": "Request timeout (seconds)",
            "minimum": 5,
            "maximum": 60,
            "type": "integer",
            "description": "HTTP timeout per page fetch.",
            "default": 25
          },
          "concurrency": {
            "title": "Concurrency",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many websites to read in parallel over plain HTTP (blocked sites then go through the browser one at a time).",
            "default": 8
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Use Apify Proxy for sites that block datacenter IPs (Cloudflare/Vercel challenges). Prefer RESIDENTIAL for enterprise sites like Iron Mountain.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          },
          "salesSignals": {
            "title": "Sales signals",
            "type": "boolean",
            "description": "Google Ads and Meta pixel, online booking, the agency credited in the footer, open job roles, sitemap size and last content update, AI crawlers blocked in robots.txt, email provider (Google Workspace / Microsoft 365) and a plain-language salesSignals list.",
            "default": true
          },
          "includePeople": {
            "title": "Include people (names and job titles)",
            "type": "boolean",
            "description": "Read team / about pages for named people with their job title (e.g. Founder, Managing Director) and the company's email pattern when a real address matches a name. This is personal data: only turn it on if you have a lawful basis to process it. Emails are never guessed.",
            "default": false
          },
          "skipDirectoryDomains": {
            "title": "Skip directory and social domains",
            "type": "boolean",
            "description": "Skip listing sites that are not a company's own website (Yelp, Yellow Pages, Facebook, LinkedIn, marketplaces, Wikipedia). Skipped rows are free.",
            "default": true
          },
          "enableAIEnrichment": {
            "title": "Enable AI company profile",
            "type": "boolean",
            "description": "Classify business type + one-line ICP summary. Paid Apify users get included Gemini (Actor secret). Free plan: 5 profiles/run. Or pass a BYOK key below.",
            "default": false
          },
          "enableRegistryLookup": {
            "title": "Enable registry / legal name lookup",
            "type": "boolean",
            "description": "Match domain/VAT to no-key registries (Norway Brønnøysund, France recherche-entreprises, US SEC EDGAR). Adds legalName and registration fields.",
            "default": false
          },
          "defaultCountry": {
            "title": "Default country (ISO)",
            "type": "string",
            "description": "Used for registry lookup when country cannot be inferred from VAT or TLD (e.g. NO, FR, US)."
          },
          "aiProvider": {
            "title": "AI provider",
            "enum": [
              "auto",
              "gemini",
              "claude",
              "openai",
              "openrouter"
            ],
            "type": "string",
            "description": "Used when AI enrichment is enabled. `auto` prefers included Gemini, then BYOK Claude/OpenAI/OpenRouter.",
            "default": "auto"
          },
          "aiModel": {
            "title": "OpenRouter model override",
            "type": "string",
            "description": "Optional. Only applied when provider is OpenRouter (or auto picks OpenRouter)."
          },
          "geminiApiKey": {
            "title": "Gemini API key (BYOK)",
            "type": "string",
            "description": "Optional BYOK Gemini key. Leave empty to use included Gemini when the Actor secret is configured."
          },
          "anthropicApiKey": {
            "title": "Anthropic API key",
            "type": "string",
            "description": "BYOK Claude key (or set ANTHROPIC_API_KEY env)."
          },
          "openaiApiKey": {
            "title": "OpenAI API key",
            "type": "string",
            "description": "BYOK OpenAI key (or set OPENAI_API_KEY env)."
          },
          "openrouterApiKey": {
            "title": "OpenRouter API key",
            "type": "string",
            "description": "BYOK OpenRouter key (or set OPENROUTER_API_KEY env)."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}