{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Maps Scraper | Lead Gen, Emails & Multi-City Search",
    "description": "Google Maps lead generation scraper: parallel multi-city keyword search, business email finder, phone, website & ratings. Nearby discovery, place URLs, lead filters & webhooks. Real-time data for outbound sales, agencies, local SEO & market research. Fast, no browser.",
    "version": "0.0",
    "x-build-id": "6cgdr40AjNgWYOfTb"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/b2b_leads~google-maps-scraper-lead-gen-emails-multi-city-search/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-b2b_leads-google-maps-scraper-lead-gen-emails-multi-city-search",
        "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/b2b_leads~google-maps-scraper-lead-gen-emails-multi-city-search/runs": {
      "post": {
        "operationId": "runs-sync-b2b_leads-google-maps-scraper-lead-gen-emails-multi-city-search",
        "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/b2b_leads~google-maps-scraper-lead-gen-emails-multi-city-search/run-sync": {
      "post": {
        "operationId": "run-sync-b2b_leads-google-maps-scraper-lead-gen-emails-multi-city-search",
        "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": {
          "enableSearch": {
            "title": "Search",
            "type": "boolean",
            "description": "Search Google Maps by keyword and location. Enabled by default.",
            "default": true
          },
          "searchTasks": {
            "title": "Search tasks",
            "type": "array",
            "description": "Add one row per search. Pair a keyword with a city or area.",
            "items": {
              "type": "object",
              "properties": {
                "query": {
                  "title": "Keyword",
                  "type": "string",
                  "description": "Search keyword (e.g. \"restaurants\", \"plumbers\", \"hotels near airport\").",
                  "editor": "textfield"
                },
                "location": {
                  "title": "Location",
                  "type": "string",
                  "description": "City or area for this keyword (e.g. \"New York, NY\", \"Austin, TX\").",
                  "editor": "textfield"
                },
                "placesPerQuery": {
                  "title": "Max places",
                  "type": "integer",
                  "description": "Maximum businesses for this task. Uses the global default below if omitted.",
                  "minimum": 1,
                  "editor": "number"
                }
              },
              "required": [
                "query"
              ]
            }
          },
          "placesPerQuery": {
            "title": "Default max places per task",
            "minimum": 1,
            "type": "integer",
            "description": "Default maximum businesses per search task. Override per task in the list above.",
            "default": 20
          },
          "maxPagesPerQuery": {
            "title": "Max pages per query",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum depth to paginate each search (safety cap for very large runs).",
            "default": 50
          },
          "minRating": {
            "title": "Minimum rating",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Only keep places with at least this star rating (0–5). Leave empty for no filter."
          },
          "priceLevels": {
            "title": "Price levels",
            "type": "array",
            "description": "Filter by price level when Google exposes it on the listing.",
            "items": {
              "type": "string",
              "enum": [
                "free",
                "inexpensive",
                "moderate",
                "expensive",
                "very_expensive"
              ],
              "enumTitles": [
                "Free",
                "Inexpensive ($)",
                "Moderate ($$)",
                "Expensive ($$$)",
                "Very expensive ($$$$)"
              ]
            },
            "default": []
          },
          "openNow": {
            "title": "Open now only",
            "type": "boolean",
            "description": "Skip places that appear closed right now.",
            "default": false
          },
          "excludeClosed": {
            "title": "Exclude permanently closed",
            "type": "boolean",
            "description": "Skip permanently closed businesses.",
            "default": true
          },
          "requirePhone": {
            "title": "Require phone number",
            "type": "boolean",
            "description": "Only return places that have a phone number.",
            "default": false
          },
          "requireWebsite": {
            "title": "Require website",
            "type": "boolean",
            "description": "Only return places that have a website URL.",
            "default": false
          },
          "categoryFilter": {
            "title": "Category contains",
            "type": "string",
            "description": "Keep only places whose category list contains this text (e.g. \"dentist\", \"hotel\").",
            "default": ""
          },
          "fetchEmails": {
            "title": "Find emails",
            "type": "boolean",
            "description": "Reliable lead-gen option: scans the business website and Google Maps page for contact emails. Adds emails[] on each place row. Works independently of extended details.",
            "default": false
          },
          "enableNearby": {
            "title": "Nearby Discovery",
            "type": "boolean",
            "description": "Discover businesses by category around a city or area (restaurants, hotels, dentists, etc.).",
            "default": false
          },
          "nearbyCategories": {
            "title": "Categories",
            "type": "array",
            "description": "Business categories to discover nearby. All selected by default when Nearby is enabled.",
            "items": {
              "type": "string",
              "enum": [
                "restaurants",
                "hotels",
                "cafes",
                "bars",
                "gyms",
                "dentists",
                "doctors",
                "pharmacies",
                "gas_stations",
                "parking",
                "shopping",
                "beauty_salons",
                "auto_repair",
                "lawyers",
                "real_estate",
                "schools",
                "banks",
                "hospitals"
              ],
              "enumTitles": [
                "Restaurants",
                "Hotels",
                "Cafes",
                "Bars",
                "Gyms",
                "Dentists",
                "Doctors",
                "Pharmacies",
                "Gas stations",
                "Parking",
                "Shopping",
                "Beauty salons",
                "Auto repair",
                "Lawyers",
                "Real estate",
                "Schools",
                "Banks",
                "Hospitals"
              ]
            },
            "default": [
              "restaurants",
              "hotels",
              "cafes",
              "dentists",
              "gyms"
            ]
          },
          "nearbyLocation": {
            "title": "Location",
            "type": "string",
            "description": "City or area for nearby discovery (e.g. \"Miami, FL\").",
            "default": ""
          },
          "nearbyRadiusMeters": {
            "title": "Radius (meters)",
            "minimum": 100,
            "maximum": 100000,
            "type": "integer",
            "description": "Search radius around the location. Zoom is auto-calculated from this.",
            "default": 5000
          },
          "placesPerCategory": {
            "title": "Places per category",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum places to collect per nearby category.",
            "default": 20
          },
          "enablePlaceDetails": {
            "title": "Place Details",
            "type": "boolean",
            "description": "Scrape full structured data for specific Google Maps place URLs.",
            "default": false
          },
          "placeUrls": {
            "title": "Place URLs",
            "type": "array",
            "description": "Google Maps place URLs or maps.app.goo.gl short links.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "includeImages": {
            "title": "Include place images",
            "type": "boolean",
            "description": "Extract photo URLs when available on place detail pages.",
            "default": true
          },
          "enableScrapeByUrl": {
            "title": "Scrape By URL",
            "type": "boolean",
            "description": "Scrape any supported Google Maps URL (place links, short links).",
            "default": false
          },
          "scrapeUrls": {
            "title": "URLs",
            "type": "array",
            "description": "Google Maps URLs to scrape.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "enableLeadFilters": {
            "title": "Enable lead filters",
            "type": "boolean",
            "description": "Apply extra lead-generation filters on search and nearby results.",
            "default": false
          },
          "leadRequirePhone": {
            "title": "Leads must have phone",
            "type": "boolean",
            "description": "Only keep places with a phone number.",
            "default": true
          },
          "leadRequireWebsite": {
            "title": "Leads must have website",
            "type": "boolean",
            "description": "Only keep places with a website.",
            "default": false
          },
          "leadMinRating": {
            "title": "Lead minimum rating",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Only keep places rated at least this high."
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Language for business names and addresses (e.g. en, es, de).",
            "default": "en"
          },
          "country": {
            "title": "Country",
            "type": "string",
            "description": "Country or region for localized results (e.g. us, uk, de).",
            "default": "us"
          },
          "maxItems": {
            "title": "Max total items",
            "minimum": 1,
            "type": "integer",
            "description": "Global cap on total dataset rows across all features. Set high for large runs (e.g. 10000+).",
            "default": 10000
          },
          "webhookUrl": {
            "title": "Webhook URL",
            "type": "string",
            "description": "Optional. Every record is always saved to the run's dataset — this webhook is an ADDITIONAL real-time push. When set, each new record is also POSTed to this URL (CRM, Slack incoming webhook, Zapier, Make, Google Sheets).",
            "default": ""
          },
          "webhookFormat": {
            "title": "Webhook format",
            "enum": [
              "json",
              "slack"
            ],
            "type": "string",
            "description": "json = full record object; slack = Slack-friendly message payload.",
            "default": "json"
          },
          "includeRaw": {
            "title": "Include raw data",
            "type": "boolean",
            "description": "Include extra debug data on each record. Larger output — for advanced users only.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy settings",
            "type": "object",
            "description": "Apify residential proxy (US) is enabled by default for reliable Google Maps collection.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "US"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}