{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Maps Scraper – Places, Phones, Emails & Websites",
    "description": "Scrape Google Maps places without login or browser: name, category, address, phone, website, rating, review count, hours and coordinates. Optional emails and social profiles from each business website, filters for leads (no website, min rating) and new-places monitoring.",
    "version": "0.1",
    "x-build-id": "vjcl5kekkYDWlJOWL"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/smoldesk~google-maps-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-smoldesk-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/smoldesk~google-maps-scraper/runs": {
      "post": {
        "operationId": "runs-sync-smoldesk-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/smoldesk~google-maps-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-smoldesk-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": {
          "searchTerms": {
            "title": "What to search for",
            "type": "array",
            "description": "Business types or names, as you'd type them into Google Maps (e.g. 'dentist', 'coffee shop', 'Starbucks'). Each term is searched in each location.",
            "default": [
              "coffee shop"
            ],
            "items": {
              "type": "string"
            }
          },
          "locations": {
            "title": "Where",
            "type": "array",
            "description": "Cities, neighborhoods, postcodes or countries (e.g. 'Austin, TX', 'Shoreditch London', '10001'). Leave empty if your search terms already include a place.",
            "default": [
              "Kuala Lumpur"
            ],
            "items": {
              "type": "string"
            }
          },
          "searchUrls": {
            "title": "Google Maps search URLs (optional)",
            "type": "array",
            "description": "Paste search URLs copied from Google Maps, e.g. https://www.google.com/maps/search/pizza/@40.73,-73.99,14z — the map area in the URL is used.",
            "items": {
              "type": "string"
            }
          },
          "maxPlacesPerSearch": {
            "title": "Max places per search",
            "minimum": 0,
            "type": "integer",
            "description": "Places to save for each search (term × location). Google lists about 120 per search; turn on 'Split big areas' to go past that. 0 = as many as Google gives.",
            "default": 20
          },
          "maxPlaces": {
            "title": "Max places in total",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many places across all searches. 0 = no limit.",
            "default": 0
          },
          "splitArea": {
            "title": "Split big areas to get more than ~120 places",
            "type": "boolean",
            "description": "When a search is full (Google shows ~120 places max), search a 3×3 grid of smaller areas inside it. More places, more requests.",
            "default": false
          },
          "splitDepth": {
            "title": "Split levels",
            "minimum": 1,
            "maximum": 2,
            "type": "integer",
            "description": "1 = up to 9 smaller areas per search, 2 = split again (up to 81) for whole cities or countries.",
            "default": 1
          },
          "scrapeContacts": {
            "title": "Find emails & social profiles",
            "type": "boolean",
            "description": "Visit each business website (homepage + up to 2 contact/about pages) for emails, social profiles (Facebook, Instagram, LinkedIn, X, TikTok, YouTube, WhatsApp) and extra phone numbers. Charged only when something is found.",
            "default": false
          },
          "maxContactPages": {
            "title": "Website pages to check",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Pages per website when finding contacts (homepage first, then contact/about pages).",
            "default": 3
          },
          "topReviews": {
            "title": "Top reviews (up to 5 per place)",
            "type": "boolean",
            "description": "Add the top reviews Google shows without signing in (up to 5 per place). Full review history needs a Google login, which this Actor doesn't use.",
            "default": false
          },
          "website": {
            "title": "Website filter",
            "enum": [
              "any",
              "withWebsite",
              "withoutWebsite"
            ],
            "type": "string",
            "description": "'Without a website' is handy for finding businesses that need one.",
            "default": "any"
          },
          "minRating": {
            "title": "Minimum rating",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Skip places rated below this (0 = no filter). Places with no rating are skipped when this is set.",
            "default": 0
          },
          "minReviews": {
            "title": "Minimum number of reviews",
            "minimum": 0,
            "type": "integer",
            "description": "Skip places with fewer reviews (0 = no filter).",
            "default": 0
          },
          "requirePhone": {
            "title": "Only places with a phone number",
            "type": "boolean",
            "description": "Skip places that list no phone number.",
            "default": false
          },
          "categoryFilter": {
            "title": "Category must contain",
            "type": "array",
            "description": "Keep only places whose Google category contains one of these words, e.g. 'dentist' keeps 'Dentist' and 'Cosmetic dentist'. Case-insensitive. Empty = all categories.",
            "items": {
              "type": "string"
            }
          },
          "skipClosed": {
            "title": "Skip closed places",
            "type": "boolean",
            "description": "Skip places Google marks as permanently or temporarily closed.",
            "default": true
          },
          "onlyNewPlaces": {
            "title": "Only new places (monitoring)",
            "type": "boolean",
            "description": "Remember places from earlier runs with the same searches and filters, and save only places not seen before. Schedule the Actor to get newly listed businesses.",
            "default": false
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Language code for names, categories and hours (e.g. en, de, fr, es, ms, ja).",
            "default": "en"
          },
          "countryCode": {
            "title": "Country (optional)",
            "type": "string",
            "description": "Two-letter country code to bias results (e.g. us, gb, de). Usually not needed when the location is in the search."
          },
          "proxyConfiguration": {
            "title": "Proxy (optional)",
            "type": "object",
            "description": "Not needed: the Actor uses the run's IP and switches to Apify datacenter proxy by itself if Google slows it down. Residential proxy is not used."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}