{
  "openapi": "3.0.1",
  "info": {
    "title": "Local Business Lead Finder with Verified Emails",
    "description": "Turn Google Maps exports, CSVs, Apify datasets, or local business discovery into deduped CRM-ready leads with public emails, social links, lead scoring, and new-leads-only monitoring.",
    "version": "0.2",
    "x-build-id": "UGJoQlvtbQsj6cOrG"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/stevennguyen~local-business-lead-intelligence/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-stevennguyen-local-business-lead-intelligence",
        "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/stevennguyen~local-business-lead-intelligence/runs": {
      "post": {
        "operationId": "runs-sync-stevennguyen-local-business-lead-intelligence",
        "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/stevennguyen~local-business-lead-intelligence/run-sync": {
      "post": {
        "operationId": "run-sync-stevennguyen-local-business-lead-intelligence",
        "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": {
          "businesses": {
            "title": "Seed businesses",
            "type": "array",
            "description": "Known businesses to enrich. Paste Google Maps Scraper output rows, CSV-transformed rows, or manual seeds. Fields can include name/title, website, phone, address, city, state, category, rating, reviewCount, googleMapsUrl, and placeId.",
            "default": [
              {
                "name": "Apify Technologies",
                "website": "https://apify.com",
                "category": "Software company",
                "address": "Prague, Czechia",
                "rating": 4.8,
                "reviewCount": 100,
                "sourceUrl": "https://apify.com"
              }
            ]
          },
          "csvText": {
            "title": "CSV rows to enrich",
            "type": "string",
            "description": "Optional CSV paste. Useful for Google Maps exports. Header names such as Company, Website, Phone, Reviews Count, Rating, Category, Google Maps URL are auto-mapped.",
            "default": ""
          },
          "inputDatasetId": {
            "title": "Input dataset ID",
            "type": "string",
            "description": "Optional Apify dataset ID to enrich, for example the dataset produced by Google Maps Scraper or another Actor.",
            "default": ""
          },
          "inputDatasetItemsLimit": {
            "title": "Dataset item limit",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum records to load from the input dataset.",
            "default": 1000
          },
          "verticalPreset": {
            "title": "Vertical preset",
            "enum": [
              "custom",
              "roofing",
              "hvac",
              "plumbing",
              "dentists",
              "med_spas",
              "law_firms",
              "restaurants",
              "auto_repair",
              "cleaning"
            ],
            "type": "string",
            "description": "Adds buyer-specific discovery terms and lead-scoring hints.",
            "default": "custom"
          },
          "businessType": {
            "title": "Custom business type",
            "type": "string",
            "description": "Optional custom business type used for discovery query generation and context, e.g. storm damage roof repair.",
            "default": ""
          },
          "locations": {
            "title": "Locations",
            "type": "array",
            "description": "Optional locations used with vertical preset/business type to generate OpenStreetMap discovery queries, e.g. Austin, TX.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "OpenStreetMap discovery queries",
            "type": "array",
            "description": "Optional keyless discovery queries for Overpass/OpenStreetMap, e.g. roofing contractor in Austin, TX. This is a discovery fallback, not Google Maps scraping.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxResultsPerQuery": {
            "title": "Max OSM results per query",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum businesses to pull from each OSM discovery query.",
            "default": 50
          },
          "maxLeads": {
            "title": "Max businesses to process",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum unique businesses to process after combining and deduping seeds, CSV, dataset, and discovery results.",
            "default": 1000
          },
          "findEmails": {
            "title": "Find emails on websites",
            "type": "boolean",
            "description": "Fetch business websites and contact/about pages to find public business email addresses.",
            "default": true
          },
          "verifyEmailMx": {
            "title": "Check email domain MX records",
            "type": "boolean",
            "description": "Performs DNS MX checks on discovered email domains. This is not mailbox-level verification.",
            "default": true
          },
          "includeSocialProfiles": {
            "title": "Extract social profile links",
            "type": "boolean",
            "description": "Extract public Facebook, Instagram, LinkedIn, YouTube, TikTok, X/Twitter, and Pinterest profile links from business websites.",
            "default": true
          },
          "excludeChains": {
            "title": "Down-rank likely chains/franchises",
            "type": "boolean",
            "description": "Apply a score penalty to obvious chain/franchise businesses so independent local leads rank higher.",
            "default": true
          },
          "onlyWithWebsite": {
            "title": "Output only leads with websites",
            "type": "boolean",
            "description": "Skip records that have no website after normalization.",
            "default": false
          },
          "requireEmail": {
            "title": "Output only leads with emails",
            "type": "boolean",
            "description": "Skip records when no public business email is found.",
            "default": false
          },
          "minLeadScore": {
            "title": "Minimum lead score",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Skip leads below this score. Set 0 to keep all scored leads.",
            "default": 0
          },
          "minRating": {
            "title": "Minimum rating",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Businesses below this rating are still output unless qualification filters are enabled, but scoring marks them lower.",
            "default": 0
          },
          "minReviews": {
            "title": "Minimum reviews",
            "minimum": 0,
            "type": "integer",
            "description": "Businesses below this review count are still output unless qualification filters are enabled, but scoring marks them lower.",
            "default": 0
          },
          "onlyNewSinceLastRun": {
            "title": "Only output new/changed leads",
            "type": "boolean",
            "description": "Uses the default key-value store to compare stable fingerprints across runs. Unchanged leads are counted but not pushed to the dataset.",
            "default": false
          },
          "outputPreset": {
            "title": "Output preset",
            "enum": [
              "standard",
              "hubspot",
              "salesforce",
              "apollo"
            ],
            "type": "string",
            "description": "Adds preset-specific CRM helper fields.",
            "default": "standard"
          },
          "contactPaths": {
            "title": "Extra contact paths",
            "type": "array",
            "description": "Optional extra website paths to check for contact details, e.g. /team, /locations, /estimate.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxPagesPerWebsite": {
            "title": "Max pages per website",
            "minimum": 1,
            "maximum": 12,
            "type": "integer",
            "description": "Maximum website pages to fetch per business for email/social extraction.",
            "default": 5
          },
          "requestTimeoutSecs": {
            "title": "Website request timeout",
            "minimum": 3,
            "maximum": 60,
            "type": "integer",
            "description": "Maximum seconds to wait for each website/contact page request.",
            "default": 15
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}