{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Maps Scraper — Business Leads & Emails (No API Key)",
    "description": "Google Maps scraper for lead generation — no API key needed. Extract local business leads (name, address, phone, website, rating, reviews + verified emails) for any \"keyword in location\" search. Export to CSV/JSON/Excel or deliver straight to your Notion CRM in one run.",
    "version": "0.0",
    "x-build-id": "vLzT9bEmZ1vPIvq7L"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/nexgendata~google-maps-extractor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-nexgendata-google-maps-extractor",
        "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/nexgendata~google-maps-extractor/runs": {
      "post": {
        "operationId": "runs-sync-nexgendata-google-maps-extractor",
        "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/nexgendata~google-maps-extractor/run-sync": {
      "post": {
        "operationId": "run-sync-nexgendata-google-maps-extractor",
        "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": {
          "outputMode": {
            "title": "Output Mode",
            "enum": [
              "tracker",
              "raw"
            ],
            "type": "string",
            "description": "Choose output format. 'Lead Tracker' adds lead quality scoring (email/phone/website completeness), rating analysis, category breakdown, contact enrichment stats, and a summary report with auto-generated insights about the local market. 'Raw Data' gives flat business records for spreadsheet import.",
            "default": "raw"
          },
          "queries": {
            "title": "Search Queries",
            "description": "Business searches — include the type and location. Examples: 'plumbers in Chicago', 'dentists Austin TX', 'Italian restaurants Manhattan'. NO Google API key required — results are scraped directly from Google Maps. Aliases accepted: keywords, searchQueries, urls, startUrls, searches. Single strings and comma/newline-separated strings are auto-coerced to a list."
          },
          "keywords": {
            "title": "Keywords (alias for Search Queries)",
            "type": "array",
            "description": "Alias of `queries`. List of business search strings, e.g. ['coffee shops in Austin TX'].",
            "items": {
              "type": "string"
            }
          },
          "location": {
            "title": "Location Context (optional)",
            "type": "string",
            "description": "Add a location to all searches. Useful when your queries don't already include a city. Example: 'San Francisco, CA'."
          },
          "maxResults": {
            "title": "Maximum Results",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Max businesses per query. 20 for a quick scan, up to 100 for comprehensive local market coverage.",
            "default": 50
          },
          "max_results": {
            "title": "Maximum Results (alias)",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Alias of `maxResults`."
          },
          "enrich_contacts": {
            "title": "Enrich Contact Data",
            "type": "boolean",
            "description": "Visit each business website to extract emails and social media links. Adds ~1-2 seconds per business but dramatically increases lead value.",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Proxy used to scrape Google Maps and enrich business websites. Apify RESIDENTIAL proxy is strongly recommended (and used by default) — Google Maps is anti-bot defended.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          },
          "googleApiKey": {
            "title": "Google API Key (OPTIONAL)",
            "type": "string",
            "description": "OPTIONAL. Leave blank to scrape Google Maps directly with NO API key (default). If you DO supply a Google Cloud API key with Places API (New) enabled, the faster official-API path is used instead."
          },
          "google_api_key": {
            "title": "Google API Key (alias, optional)",
            "type": "string",
            "description": "Alias of `googleApiKey`. Optional — leave blank for key-free scraping."
          },
          "searchQueries": {
            "title": "Search Queries (alias)",
            "type": "array",
            "description": "Alias of `queries` for users coming from other Apify scrapers.",
            "items": {
              "type": "string"
            }
          },
          "urls": {
            "title": "Search Strings (alias)",
            "type": "array",
            "description": "Alias of `queries` (despite the name). Pass business search strings here.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Start URLs (alias)",
            "type": "array",
            "description": "Alias of `queries`. Accepts plain strings or {url: ...} dict items."
          },
          "searches": {
            "title": "Searches (alias)",
            "type": "array",
            "description": "Alias of `queries`.",
            "items": {
              "type": "string"
            }
          },
          "query": {
            "title": "Single Query (string alias)",
            "type": "string",
            "description": "Alternative — a single business search string when you only need one query."
          },
          "notionConnector": {
            "title": "Deliver to Notion (optional)",
            "type": "string",
            "description": "Optional. Connect your Notion workspace and the results are also written as a Notion page in the same run — the Actor never sees your Notion credentials. Authorize a Notion MCP connector in Apify Console → Settings → API & Integrations, then select it here."
          },
          "notionParentId": {
            "title": "Notion parent page ID (optional)",
            "type": "string",
            "description": "Optional. The Notion page ID to create the page under. If blank, Notion creates a private page in your workspace."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}