{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Maps Lead Generator — Email & Phone",
    "description": "Search Google Maps → get every business's email and phone automatically. The only Maps scraper that visits each website to find real email addresses.",
    "version": "1.0",
    "x-build-id": "2Vnl7ml1JvkQS2ghm"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/intelscrape~google-maps-lead-generator/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-intelscrape-google-maps-lead-generator",
        "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/intelscrape~google-maps-lead-generator/runs": {
      "post": {
        "operationId": "runs-sync-intelscrape-google-maps-lead-generator",
        "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/intelscrape~google-maps-lead-generator/run-sync": {
      "post": {
        "operationId": "run-sync-intelscrape-google-maps-lead-generator",
        "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": [
          "searchQueries"
        ],
        "properties": {
          "searchQueries": {
            "title": "🔍 Search Queries",
            "type": "array",
            "description": "What businesses are you looking for? Examples: 'dentists in Miami', 'restaurants Brooklyn NY', 'plumbers Dallas TX'",
            "items": {
              "type": "string"
            }
          },
          "maxResults": {
            "title": "Max Businesses",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "How many businesses do you want? Start with 20 to test, then scale up.",
            "default": 20
          },
          "dataTier": {
            "title": "💎 Data Tier",
            "enum": [
              "Listings Only ($3 / 1k)",
              "Listings + Verified Email & Phone ($20 / 1k)"
            ],
            "type": "string",
            "description": "Choose your extraction tier. Premium verified leads guarantee high inbox placement.",
            "default": "Listings + Verified Email & Phone ($20 / 1k)"
          },
          "newLeadsOnly": {
            "title": "🆕 New Leads Only (Delta Mode)",
            "type": "boolean",
            "description": "If enabled, we will remember which businesses we've already extracted for you and skip them in future runs. Guaranteed exclusivity.",
            "default": true
          },
          "enrichSocial": {
            "title": "📱 Find Social Media Links",
            "type": "boolean",
            "description": "Extract Facebook, Instagram, LinkedIn, Twitter, YouTube, and TikTok links from each business website.",
            "default": true
          },
          "useScraperApi": {
            "title": "🛡️ Use ScraperAPI for Emails",
            "type": "boolean",
            "description": "Route website email-scraping through ScraperAPI to bypass bot protection and lift the email hit rate.",
            "default": false
          },
          "scraperApiKey": {
            "title": "ScraperAPI Key (Optional)",
            "type": "string",
            "description": "Your ScraperAPI key. If left blank, we will attempt to use the developer default if configured."
          },
          "scrapeContactPages": {
            "title": "🔎 Deep Scan Contact Pages",
            "type": "boolean",
            "description": "Follow /contact, /about, and /team pages to find hidden email addresses. Slower but finds 30% more emails.",
            "default": true
          },
          "language": {
            "title": "Language",
            "enum": [
              "en",
              "es",
              "fr",
              "de",
              "pt",
              "it",
              "ja",
              "ko",
              "zh",
              "ar",
              "hi",
              "ru"
            ],
            "type": "string",
            "description": "Google Maps language for results.",
            "default": "en"
          },
          "countryCode": {
            "title": "Country",
            "enum": [
              "",
              "us",
              "uk",
              "ca",
              "au",
              "de",
              "fr",
              "es",
              "it",
              "br",
              "mx",
              "in",
              "jp"
            ],
            "type": "string",
            "description": "Limit results to a specific country.",
            "default": ""
          },
          "verifierProvider": {
            "title": "Verification Provider (Optional)",
            "enum": [
              "default",
              "millionverifier",
              "zerobounce"
            ],
            "type": "string",
            "description": "We cover verification costs by default. If you prefer to use your own account, select the provider.",
            "default": "default"
          },
          "apiKey": {
            "title": "API Key (Optional)",
            "type": "string",
            "description": "Your API key for the selected verification provider. Leave blank to use our default verification."
          },
          "csvUrl": {
            "title": "📄 Bulk CSV Upload (URL)",
            "type": "string",
            "description": "Provide a link to a raw CSV file (e.g. Google Sheets Export) containing 'Name' or 'Query' headers to process huge lists automatically."
          },
          "webhookUrl": {
            "title": "Webhook URL",
            "type": "string",
            "description": "Auto-send results to Zapier, Make.com, or your CRM when done."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}