{
  "openapi": "3.0.1",
  "info": {
    "title": "Local Business Lead Enricher & Website Contact Auditor",
    "description": "Enrich Google Maps Scraper results and local business lists with emails, phones, social links, website checks, contact pages, and transparent CRM-ready lead scores.",
    "version": "0.1",
    "x-build-id": "hcevlY7zIJfNdmdFe"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/leadforge412~local-business-lead-enricher-website-contact-auditor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-leadforge412-local-business-lead-enricher-website-contact-auditor",
        "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/leadforge412~local-business-lead-enricher-website-contact-auditor/runs": {
      "post": {
        "operationId": "runs-sync-leadforge412-local-business-lead-enricher-website-contact-auditor",
        "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/leadforge412~local-business-lead-enricher-website-contact-auditor/run-sync": {
      "post": {
        "operationId": "run-sync-leadforge412-local-business-lead-enricher-website-contact-auditor",
        "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": {
          "apifyDatasetId": {
            "title": "Apify Dataset ID",
            "type": "string",
            "description": "Optional dataset ID containing business records. Expected fields include title, name, companyName, website, url, phone, address, categoryName, categories, rating, reviewsCount, and placeId."
          },
          "startUrls": {
            "title": "Business website URLs",
            "type": "array",
            "description": "Optional direct list of business website URLs. String URLs and Apify request-list objects with a url field are accepted.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Maximum input businesses",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of input businesses to process across dataset records and direct URLs.",
            "default": 100
          },
          "maxPhonesPerSite": {
            "title": "Maximum phones per website",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum number of reliable phone numbers to keep per website after source-aware filtering. Tel links are kept first.",
            "default": 10
          },
          "defaultCountryCode": {
            "title": "Default country code",
            "type": "string",
            "description": "Optional ISO 3166-1 alpha-2 country code used to normalize local phone numbers when the country cannot be inferred automatically. Examples: DE, US, GB, FR, IT.",
            "default": null
          },
          "maxPagesPerWebsite": {
            "title": "Maximum pages per website",
            "minimum": 1,
            "maximum": 25,
            "type": "integer",
            "description": "Maximum number of pages to crawl for each business website, including the homepage.",
            "default": 5
          },
          "maxConcurrency": {
            "title": "Maximum concurrency",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum number of concurrent HTTP requests used by CheerioCrawler.",
            "default": 5
          },
          "requestTimeoutSecs": {
            "title": "Request timeout seconds",
            "minimum": 5,
            "maximum": 120,
            "type": "integer",
            "description": "Timeout for each page request and handler.",
            "default": 30
          },
          "crawlContactPages": {
            "title": "Crawl contact and business pages",
            "type": "boolean",
            "description": "When enabled, the Actor follows likely contact, about, impressum, booking, reservation, menu, legal, and privacy pages on the same website.",
            "default": true
          },
          "extractEmails": {
            "title": "Extract emails",
            "type": "boolean",
            "description": "Extract email addresses from text and mailto links, including common public obfuscation patterns.",
            "default": true
          },
          "extractPhones": {
            "title": "Extract phone numbers",
            "type": "boolean",
            "description": "Extract phone numbers from visible page text and tel links.",
            "default": true
          },
          "extractSocials": {
            "title": "Extract social links",
            "type": "boolean",
            "description": "Extract Instagram, Facebook, LinkedIn, YouTube, TikTok, WhatsApp, and Telegram links.",
            "default": true
          },
          "checkWebsiteProblems": {
            "title": "Audit website quality signals",
            "type": "boolean",
            "description": "Detect SSL, contact pages, contact forms, booking/menu pages, schema.org business data, and missing contact data.",
            "default": true
          },
          "makeLeadScore": {
            "title": "Calculate lead score",
            "type": "boolean",
            "description": "Calculate a transparent 0-100 lead score and quality label.",
            "default": true
          },
          "allowedDomainsOnly": {
            "title": "Stay on original domain",
            "type": "boolean",
            "description": "When enabled, the Actor will not crawl pages outside the original business website domain.",
            "default": true
          },
          "debugMode": {
            "title": "Debug logging",
            "type": "boolean",
            "description": "Enable more verbose run logs.",
            "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}