{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Maps Local Leads Scraper",
    "description": "Scrape Google Maps for local business leads. Get names, phone numbers, websites, addresses, ratings, review counts, and more. Perfect for lead generation, prospecting, and market research.",
    "version": "2.3",
    "x-build-id": "V2F93s7cZHZDmawXx"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/alizarin_refrigerator-owner~local-leads-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-alizarin_refrigerator-owner-local-leads-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/alizarin_refrigerator-owner~local-leads-scraper/runs": {
      "post": {
        "operationId": "runs-sync-alizarin_refrigerator-owner-local-leads-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/alizarin_refrigerator-owner~local-leads-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-alizarin_refrigerator-owner-local-leads-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": {
          "searchQuery": {
            "title": "Search Query",
            "type": "string",
            "description": "Business category to search for (e.g., 'plumbers', 'dentists', 'restaurants')",
            "default": "plumbers"
          },
          "location": {
            "title": "Location",
            "type": "string",
            "description": "City and state to search in (e.g., 'Dallas, TX' or 'New York, NY')",
            "default": "Dallas, TX"
          },
          "maxResults": {
            "title": "Maximum Results",
            "minimum": 10,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum number of leads to scrape (default: 100, max: 500)",
            "default": 100
          },
          "includeEmail": {
            "title": "Extract Emails (Website Scrape) - FREE",
            "type": "boolean",
            "description": "Scrape emails directly from business websites (free but slower)",
            "default": false
          },
          "findLinkedIn": {
            "title": "Find LinkedIn Pages - FREE",
            "type": "boolean",
            "description": "Search Google for company LinkedIn pages (free, adds ~1 second per lead)",
            "default": false
          },
          "useHunterIo": {
            "title": "Use Hunter.io",
            "type": "boolean",
            "description": "Professional email finding with verified addresses (requires API key from hunter.io)",
            "default": false
          },
          "hunterApiKey": {
            "title": "Hunter.io API Key",
            "type": "string",
            "description": "Your Hunter.io API key"
          },
          "useApollo": {
            "title": "Use Apollo.io",
            "type": "boolean",
            "description": "Find decision-maker contacts with titles and LinkedIn profiles (requires API key from apollo.io)",
            "default": false
          },
          "apolloApiKey": {
            "title": "Apollo.io API Key",
            "type": "string",
            "description": "Your Apollo.io API key"
          },
          "useClearbit": {
            "title": "Use Clearbit",
            "type": "boolean",
            "description": "Enrich with company info, social profiles, and tech stack (requires API key from clearbit.com)",
            "default": false
          },
          "clearbitApiKey": {
            "title": "Clearbit API Key",
            "type": "string",
            "description": "Your Clearbit API key"
          },
          "useSnovIo": {
            "title": "Use Snov.io",
            "type": "boolean",
            "description": "Email finder and verification with contact details (requires credentials from snov.io)",
            "default": false
          },
          "snovIoClientId": {
            "title": "Snov.io Client ID",
            "type": "string",
            "description": "Your Snov.io Client ID"
          },
          "snovIoClientSecret": {
            "title": "Snov.io Client Secret",
            "type": "string",
            "description": "Your Snov.io Client Secret"
          },
          "useFullContact": {
            "title": "Use FullContact",
            "type": "boolean",
            "description": "Company profiles with employee count, founded year, and social links (requires API key from fullcontact.com)",
            "default": false
          },
          "fullContactApiKey": {
            "title": "FullContact API Key",
            "type": "string",
            "description": "Your FullContact API key"
          },
          "useLusha": {
            "title": "Use Lusha",
            "type": "boolean",
            "description": "Find verified emails and direct phone numbers for decision-makers (requires API key from lusha.com)",
            "default": false
          },
          "lushaApiKey": {
            "title": "Lusha API Key",
            "type": "string",
            "description": "Your Lusha API key"
          },
          "minRating": {
            "title": "Minimum Rating (Filter)",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Only include businesses with this rating or higher (0-5)",
            "default": 0
          },
          "maxRating": {
            "title": "Maximum Rating (Filter)",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Only include businesses with this rating or lower (useful for finding businesses that need help)",
            "default": 5
          },
          "hasWebsite": {
            "title": "Must Have Website (Filter)",
            "type": "boolean",
            "description": "Only include businesses that have a website listed",
            "default": false
          },
          "noWebsite": {
            "title": "Must NOT Have Website (Filter)",
            "type": "boolean",
            "description": "Only include businesses WITHOUT a website (great for web design leads)",
            "default": false
          },
          "anthropicApiKey": {
            "title": "Anthropic API Key (BYOK)",
            "type": "string",
            "description": "Your Anthropic API key to enable AI-powered lead scoring and prioritization. Get yours at console.anthropic.com. Leave empty to skip AI analysis."
          },
          "enableAiScoring": {
            "title": "Enable AI Lead Scoring",
            "type": "boolean",
            "description": "When enabled with an API key, Claude analyzes each lead and provides: quality score (0-100), priority tier (hot/warm/cold), and personalized outreach recommendations.",
            "default": true
          },
          "demoMode": {
            "title": "Demo Mode",
            "type": "boolean",
            "description": "Run with sample data to test without real scraping. Returns realistic sample output instantly.",
            "default": false
          },
          "webhookUrl": {
            "title": "Webhook URL",
            "type": "string",
            "description": "URL to POST results when scraping completes (Zapier, Make, n8n, custom endpoint)"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}