{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Maps Lead Generation & Contact Scraper",
    "description": "Build B2B lead lists from Google Maps: name, category, address, phone, website, opening hours and GPS coordinates for any search in any city - then auto-enrich each lead with emails and social accounts from its website. Export to JSON, CSV, Excel, NDJSON. No API key.",
    "version": "0.0",
    "x-build-id": "oQzcW7KqnJ4u4Iajc"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/fanndev~google-maps-lead-generation-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-fanndev-google-maps-lead-generation-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/fanndev~google-maps-lead-generation-scraper/runs": {
      "post": {
        "operationId": "runs-sync-fanndev-google-maps-lead-generation-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/fanndev~google-maps-lead-generation-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-fanndev-google-maps-lead-generation-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": {
          "searchQueries": {
            "title": "Search queries",
            "type": "array",
            "description": "What to look for, e.g. 'dentist', 'coffee shop', 'law firm'. Each query is run across the location you set below. A location is required when you use queries.",
            "items": {
              "type": "string"
            }
          },
          "areaName": {
            "title": "Location - named area",
            "type": "string",
            "description": "Easiest way to set a location: a built-in city or country, e.g. 'jakarta', 'bali', 'singapore', 'london', 'new york', 'indonesia'. For anywhere else, use a centre point with a radius, or a bounding box."
          },
          "centerLatitude": {
            "title": "Location - centre latitude",
            "type": "string",
            "description": "Latitude of the centre point. Use with centre longitude and radius."
          },
          "centerLongitude": {
            "title": "Location - centre longitude",
            "type": "string",
            "description": "Longitude of the centre point."
          },
          "radiusKm": {
            "title": "Location - radius (km)",
            "type": "string",
            "description": "Search this many kilometres around the centre point. Results are also filtered to this exact radius using each lead's real coordinates."
          },
          "boundingBox": {
            "title": "Location - bounding box [south, west, north, east]",
            "type": "array",
            "description": "Most precise option. The box is tiled into multiple search points for coverage, then results are filtered to the box using each lead's real coordinates."
          },
          "tileSizeKm": {
            "title": "Search tile size (km)",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "How far apart the search points are placed inside your area. Smaller = more thorough and more requests. Leave empty to pick automatically from the area size."
          },
          "maxResultsPerQuery": {
            "title": "Max results per query",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Stop each query after this many unique businesses. Google returns 20 per request.",
            "default": 100
          },
          "placeUrls": {
            "title": "Specific Google Maps URLs",
            "type": "array",
            "description": "Optional. Scrape named businesses directly instead of (or as well as) searching. Paste Google Maps URLs; short links are followed automatically.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "placeIds": {
            "title": "Specific Place IDs / CIDs / feature IDs",
            "type": "array",
            "description": "Optional. Accepts a Place ID (ChIJ...), a numeric CID, or a raw feature ID (0x...:0x...).",
            "items": {
              "type": "string"
            }
          },
          "enrichFromWebsite": {
            "title": "Enrich from the business website",
            "type": "boolean",
            "description": "Visit each lead's website and extract email addresses and social media accounts. This is what makes the leads outreach-ready - Google never exposes an email.",
            "default": true
          },
          "followContactPage": {
            "title": "Follow the contact page",
            "type": "boolean",
            "description": "When a homepage has no email, follow one same-domain contact/about link and try there. One extra request per lead, only when needed.",
            "default": true
          },
          "enrichmentConcurrency": {
            "title": "Enrichment concurrency",
            "minimum": 1,
            "maximum": 15,
            "type": "integer",
            "description": "How many business websites to fetch at once.",
            "default": 6
          },
          "fetchPlaceDetails": {
            "title": "Fetch full place details",
            "type": "boolean",
            "description": "Google returns two richnesses of record and chooses by client; the Apify platform usually gets the reduced one, which has no review count and only today's opening hours. Switch this on to fetch each lead's detail page: it reliably recovers review counts, review URLs and descriptions. The full 7-day schedule often cannot be recovered from a datacenter IP at all - check openingHoursComplete on each lead. Costs one extra request per lead.",
            "default": false
          },
          "requirePhone": {
            "title": "Only keep leads with a phone number",
            "type": "boolean",
            "description": "Drop businesses with no phone number. Useful when your outreach is cold-calling rather than email.",
            "default": false
          },
          "requireWebsite": {
            "title": "Only keep leads with a website",
            "type": "boolean",
            "description": "Drop businesses with no website. Also the ones enrichment can actually find an email for, so pair it with enrichment.",
            "default": false
          },
          "requireEmail": {
            "title": "Only keep leads with an email address",
            "type": "boolean",
            "description": "Applied after enrichment. Needs 'Enrich from the business website' switched on, otherwise nothing has an email and every lead is dropped.",
            "default": false
          },
          "minRating": {
            "title": "Minimum rating",
            "type": "string",
            "description": "Only keep businesses rated at or above this, e.g. 4.0. Leave empty for no rating filter."
          },
          "exportFormats": {
            "title": "Extra export files",
            "type": "array",
            "description": "Also write the leads to the key-value store in these formats. The Apify dataset is always produced regardless.",
            "items": {
              "type": "string",
              "enum": [
                "json",
                "csv",
                "excel",
                "ndjson"
              ],
              "enumTitles": [
                "JSON",
                "CSV",
                "Excel (.xlsx)",
                "NDJSON"
              ]
            },
            "default": []
          },
          "language": {
            "title": "Language (hl)",
            "type": "string",
            "description": "Google interface language. Affects category names and opening-hours wording.",
            "default": "en"
          },
          "region": {
            "title": "Region (gl)",
            "type": "string",
            "description": "Two-letter country code biasing Google's results, e.g. US, ID, GB. Set this to the country you are targeting.",
            "default": "US"
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Off by default, and that is the recommended setting: these Google endpoints have no WAF, so the platform's own IP works and costs nothing. Enable a proxy only to spread load across IPs at high volume, and leave the group list empty so Apify picks a group your plan has. RESIDENTIAL is NOT recommended for Google - it is commonly answered with a consent or CAPTCHA interstitial, which makes searches return nothing.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}