{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Maps Business Leads Scraper — Phone, Email & Socials",
    "description": "Scrape Google Maps local businesses by keyword, category, city/ZIP, coordinates, or Maps URL. Extracts Place ID, ratings, review counts, phone numbers, street addresses, opening hours, attributes, websites, and enriched business emails & social profiles. No API key required.",
    "version": "0.1",
    "x-build-id": "k031HOXs0NzJHv4UY"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/foxlabs~google-maps-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-foxlabs-google-maps-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/foxlabs~google-maps-scraper/runs": {
      "post": {
        "operationId": "runs-sync-foxlabs-google-maps-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/foxlabs~google-maps-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-foxlabs-google-maps-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": "Full Google Maps search queries (e.g., 'dentist in Austin, TX', 'specialty coffee shop in Berlin', 'HVAC contractor 78701') or plain business categories combined with the Locations list.",
            "default": [
              "Dentist in Austin, TX"
            ],
            "items": {
              "type": "string"
            }
          },
          "locations": {
            "title": "Locations (Optional)",
            "type": "array",
            "description": "Optional list of cities, states, countries, or postal codes (e.g., ['Austin, TX', 'Dallas, TX']). When provided, any query in Search Queries that does not already contain ' in ' or a comma is paired with each location.",
            "items": {
              "type": "string"
            }
          },
          "googleMapsUrls": {
            "title": "Google Maps URLs (Optional)",
            "type": "array",
            "description": "Direct Google Maps search URLs (https://www.google.com/maps/search/...) or place URLs (https://www.google.com/maps/place/...).",
            "items": {
              "type": "string"
            }
          },
          "maxPlacesPerQuery": {
            "title": "Max Places per Search Query",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum number of unique deduplicated Google Maps places to extract per search query or URL (up to 200 per query).",
            "default": 20
          },
          "maxTotalPlaces": {
            "title": "Max Total Places (Run Cap)",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Hard ceiling on total paid place records emitted across the entire run.",
            "default": 100
          },
          "enrichContacts": {
            "title": "Enrich Website Emails & Social Links",
            "type": "boolean",
            "description": "When enabled, crawls each business's official external website (homepage + contact/about page) to extract verified business emails and social media profiles (Instagram, Facebook, LinkedIn, X/Twitter, TikTok, YouTube). Adds one 'contact-enrichment' event per website-enriched place.",
            "default": false
          },
          "minRating": {
            "title": "Minimum Star Rating Filter",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Optional minimum Google Maps star rating (e.g., 4.0 or 4.5). Places below this rating are skipped without charge."
          },
          "minReviews": {
            "title": "Minimum Review Count Filter",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Optional minimum number of Google reviews (e.g., 10 or 50). Places with fewer reviews are skipped without charge."
          },
          "onlyWithWebsite": {
            "title": "Only Places With Website",
            "type": "boolean",
            "description": "When true, skips places that have no external website listed on Google Maps.",
            "default": false
          },
          "onlyWithPhone": {
            "title": "Only Places With Phone Number",
            "type": "boolean",
            "description": "When true, skips places that have no phone number listed on Google Maps.",
            "default": false
          },
          "language": {
            "title": "Results Language (hl)",
            "type": "string",
            "description": "Two-letter ISO language code for Google Maps labels, categories, and opening hours (e.g., 'en', 'de', 'es', 'fr', 'tr').",
            "default": "en"
          },
          "countryCode": {
            "title": "Region Bias (gl)",
            "type": "string",
            "description": "Two-letter ISO country code for Google Maps region bias (e.g., 'us', 'gb', 'de', 'ca', 'au', 'tr').",
            "default": "us"
          },
          "latitude": {
            "title": "Custom Viewport Latitude (Optional)",
            "minimum": -90,
            "maximum": 90,
            "type": "number",
            "description": "Optional center latitude (-90 to 90) when targeting a specific coordinate viewport."
          },
          "longitude": {
            "title": "Custom Viewport Longitude (Optional)",
            "minimum": -180,
            "maximum": 180,
            "type": "number",
            "description": "Optional center longitude (-180 to 180) when targeting a specific coordinate viewport."
          },
          "zoomMeters": {
            "title": "Viewport Radius / Altitude Meters",
            "minimum": 500,
            "maximum": 1000000,
            "type": "integer",
            "description": "Viewport altitude parameter in meters for coordinate-centered searches (smaller = tighter neighborhood zoom; default 25000 covers a metro area).",
            "default": 25000
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Apify Proxy configuration. Works out of the box with standard Apify Proxy.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}