{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Maps Scraper — Places, Leads, Emails & Socials",
    "description": "Fast no-browser Google Maps scraper with built-in website email, phone, and social profile extraction. Scrapes places by keyword + location or coordinates with automatic grid tiling, ratings, hours, websites, and domain-ranked business emails at flat pay-per-place pricing.",
    "version": "0.1",
    "x-build-id": "XyahyyPCPX8hikS7k"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/leopoldsaint~google-maps-leads-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-leopoldsaint-google-maps-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/leopoldsaint~google-maps-leads-scraper/runs": {
      "post": {
        "operationId": "runs-sync-leopoldsaint-google-maps-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/leopoldsaint~google-maps-leads-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-leopoldsaint-google-maps-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",
        "required": [
          "searchQueries"
        ],
        "properties": {
          "searchQueries": {
            "title": "Search Queries",
            "type": "array",
            "description": "Google Maps search queries (e.g. 'dentists', 'coffee shops', 'HVAC contractors'). Combine with Locations below or include the city directly in each query.",
            "items": {
              "type": "string"
            },
            "default": [
              "dentists in Austin TX"
            ]
          },
          "locations": {
            "title": "Locations (Optional)",
            "type": "array",
            "description": "Optional list of cities, regions, or postal codes to pair with each Search Query (e.g. 'Austin, TX', 'Miami, FL'). Leave empty if locations are already inside Search Queries.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "latitude": {
            "title": "Center Latitude (Optional)",
            "type": "number",
            "description": "Optional map center latitude (e.g. 30.2672 for Austin). Overrides geocoding when paired with Center Longitude."
          },
          "longitude": {
            "title": "Center Longitude (Optional)",
            "type": "number",
            "description": "Optional map center longitude (e.g. -97.7431 for Austin). Overrides geocoding when paired with Center Latitude."
          },
          "zoomRadiusKm": {
            "title": "Search Radius (km)",
            "minimum": 1,
            "maximum": 100,
            "type": "number",
            "description": "Approximate search radius in kilometers around the location center (1 to 100 km).",
            "default": 25
          },
          "useGridSearch": {
            "title": "Deep Grid Search (Multi-Point Tiling)",
            "type": "boolean",
            "description": "Automatically divide the target area into a 3x3 coordinate grid to discover more than 120 places per query.",
            "default": false
          },
          "extractContacts": {
            "title": "Extract Emails & Socials From Website (Free)",
            "type": "boolean",
            "description": "Visit each business's website homepage and /contact page to extract domain-ranked emails, social media profiles, and tech stack — included free in flat per-place pricing.",
            "default": true
          },
          "maxContactPagesPerSite": {
            "title": "Max Contact Pages per Website",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Maximum pages (homepage + contact/about pages) crawled per business website when contact extraction is enabled.",
            "default": 2
          },
          "minRating": {
            "title": "Minimum Star Rating",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Only return businesses with a Google Maps rating at or above this value (0 = no filter).",
            "default": 0
          },
          "minReviews": {
            "title": "Minimum Review Count",
            "minimum": 0,
            "type": "integer",
            "description": "Only return businesses with at least this many Google Maps reviews (0 = no filter).",
            "default": 0
          },
          "onlyWithWebsite": {
            "title": "Only Businesses With Website",
            "type": "boolean",
            "description": "Skip places that do not list a website URL on Google Maps.",
            "default": false
          },
          "onlyWithPhone": {
            "title": "Only Businesses With Phone",
            "type": "boolean",
            "description": "Skip places that do not list a phone number on Google Maps.",
            "default": false
          },
          "onlyWithEmail": {
            "title": "Only Businesses With Email",
            "type": "boolean",
            "description": "Only emit leads where at least one public email was discovered on the business website (requires Extract Emails enabled).",
            "default": false
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Two-letter Google Maps language code (e.g. en, es, de, fr, pt).",
            "default": "en"
          },
          "country": {
            "title": "Country Code",
            "type": "string",
            "description": "Two-letter Google Maps country code (e.g. us, gb, ca, au, de, fr, in).",
            "default": "us"
          },
          "maxPlacesPerQuery": {
            "title": "Max Places per Query",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Maximum unique places to extract per search query/location pair.",
            "default": 20
          },
          "maxTotalPlaces": {
            "title": "Max Total Places",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Hard cap on total unique places delivered across the entire run.",
            "default": 25
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Optional Apify Proxy fallback used automatically if Google Maps rate-limits direct requests.",
            "default": {
              "useApifyProxy": true
            }
          },
          "demoMode": {
            "title": "Demo Mode",
            "type": "boolean",
            "description": "Run offline on bundled synthetic sample places without network calls or event charges.",
            "default": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}