{
  "openapi": "3.0.1",
  "info": {
    "title": "Local Lead Finder Pro | $4/1K | Lead Score, Tech Stack, Pitch",
    "description": "Premium lead finder for web agencies and SDR teams. Scrape YellowPages and auto-enrich every lead with a 0-100 lead score, website tech stack (Wix/WordPress/Shopify), real emails, phone E.164, mobile + SEO audit, and an outreach pitch. CSV export for HubSpot/Pipedrive. 30+ fields per lead.",
    "version": "1.0",
    "x-build-id": "onRruiS4hA1rm6bxm"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/apivault_labs~local-business-lead-finder-pro/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-apivault_labs-local-business-lead-finder-pro",
        "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/apivault_labs~local-business-lead-finder-pro/runs": {
      "post": {
        "operationId": "runs-sync-apivault_labs-local-business-lead-finder-pro",
        "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/apivault_labs~local-business-lead-finder-pro/run-sync": {
      "post": {
        "operationId": "run-sync-apivault_labs-local-business-lead-finder-pro",
        "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",
        "required": [
          "category",
          "location"
        ],
        "properties": {
          "category": {
            "title": "Business Category",
            "type": "string",
            "description": "Type of business to search for. Examples: plumbers, restaurants, dentists, auto-repair, lawyers, hair-salons."
          },
          "location": {
            "title": "Location",
            "type": "string",
            "description": "City and state. Examples: 'New York NY', 'Los Angeles CA', 'Chicago IL', 'Miami FL'."
          },
          "pages": {
            "title": "Pages to Scrape",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Number of result pages to scrape (each page ~30 businesses).",
            "default": 1
          },
          "onlyWithoutWebsite": {
            "title": "Only Without Website",
            "type": "boolean",
            "description": "If true, only return businesses that don't have a website (the hottest leads for web agencies).",
            "default": false
          },
          "maxConcurrency": {
            "title": "Max Concurrency",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Number of YellowPages pages to scrape in parallel.",
            "default": 3
          },
          "timeout": {
            "title": "Timeout (seconds)",
            "minimum": 30,
            "maximum": 300,
            "type": "integer",
            "description": "Maximum time to wait for each YellowPages page.",
            "default": 120
          },
          "enrichWebsites": {
            "title": "Check websites (alive + tech stack + emails + phones)",
            "type": "boolean",
            "description": "For every lead with a website, do a quick HEAD/GET to detect: alive status, SSL validity, tech stack (Wix, WordPress, Shopify, Squarespace, GoDaddy, Webflow, Weebly, Joomla, Drupal, ClickFunnels, GoHighLevel), real emails (from mailto: links + page text), and phone numbers (from tel: links + page text). Adds ~1-2 sec per lead with a website.",
            "default": true
          },
          "enrichEmailGuesses": {
            "title": "Generate email guesses",
            "type": "boolean",
            "description": "Generate plausible email addresses (info@, contact@, hello@, office@) from the business website domain. Use these as fallback when no real email is scraped. Verify with a tool like Hunter or NeverBounce before sending.",
            "default": true
          },
          "enrichSocialUrls": {
            "title": "Build social search URLs",
            "type": "boolean",
            "description": "Add 1-click search links for Facebook, Instagram, LinkedIn, Google Maps and Google search — useful to verify online presence in seconds.",
            "default": true
          },
          "includeOutreachPitch": {
            "title": "Generate outreach pitch",
            "type": "boolean",
            "description": "Auto-write a personalised cold-outreach opener (~2 sentences) tailored to whether the business has no website / a dead site / a Wix template / etc.",
            "default": true
          },
          "enrichBrandAge": {
            "title": "Detect brand age (via Wayback Machine)",
            "type": "boolean",
            "description": "For leads with a website, query the Wayback Machine for the earliest archived snapshot. An established brand (5+ years online) with a dead site is a prime replacement target — gets a +10 leadScore bonus.",
            "default": true
          },
          "enrichGeocode": {
            "title": "Geocode addresses (lat/lng via OpenStreetMap)",
            "type": "boolean",
            "description": "Resolve every business address to lat/lng coordinates via OpenStreetMap Nominatim. Useful for territory routing in CRMs or plotting on a map. Off by default because Nominatim asks for ≤1 req/sec, so this slows runs by ~1s per lead.",
            "default": false
          },
          "excludeChains": {
            "title": "Exclude corporate chains / franchises",
            "type": "boolean",
            "description": "Drop national chains and franchises (Roto-Rooter, Aamco, Subway, Domino's, Great Clips, Anytime Fitness, RE/MAX, Servpro, Verizon, AT&T, ~50 brands matched by name). Most agencies skip these because corporate marketing controls the spend.",
            "default": false
          },
          "minLeadScore": {
            "title": "Minimum lead score (0-100)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Drop leads below this composite score. Score combines: no-website bonus, website-on-DIY-builder, dead-website, review count, rating, years in business. Tiers: cold <35, warm 35-54, hot 55-74, on-fire 75+.",
            "default": 0
          },
          "maxResults": {
            "title": "Max results (after enrichment + sorting)",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "Hard cap on returned leads, applied after lead-score sorting. 0 = no cap. Use this to keep cost predictable.",
            "default": 0
          },
          "exportFormat": {
            "title": "Export format",
            "enum": [
              "default",
              "csv",
              "both"
            ],
            "type": "string",
            "description": "Output shape. 'default' = full JSON. 'csv' = flat record with HubSpot/Pipedrive-friendly column names. 'both' = full JSON plus a nested '_csv' field.",
            "default": "default"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}