{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Maps Scraper - Every Place, Not Just the Top 250",
    "description": "Extract every place from Google Maps with 40+ fields: ratings, phone, website, opening hours, popular times, amenities, photos, reviews. Full coverage past Google's 250-per-view cap, hundreds of places per minute. $4.99 per 1,000 places.",
    "version": "0.0",
    "x-build-id": "6xsx0hHgNkxSsyG0I"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/zen-studio~google-maps-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-zen-studio-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/zen-studio~google-maps-scraper/runs": {
      "post": {
        "operationId": "runs-sync-zen-studio-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/zen-studio~google-maps-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-zen-studio-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": {
          "searchStringsArray": {
            "title": "Search terms",
            "type": "array",
            "description": "What you'd type into the Google Maps search bar. One term per line, e.g. <code>restaurants</code> or <code>family dentist</code>.",
            "items": {
              "type": "string"
            }
          },
          "locationQuery": {
            "title": "Location — city, neighborhood, address, or ZIP",
            "type": "string",
            "description": "Where to search. Type it like you would in Google Maps: <code>Astoria, NY</code>, <code>Berlin Germany</code>, <code>90210</code>, or a full street address. Required together with <b>Search terms</b>, unless you use the structured or custom-area fields below."
          },
          "maxCrawledPlacesPerSearch": {
            "title": "Max places per search term",
            "minimum": 1,
            "type": "integer",
            "description": "How many places you want per search term. The actor systematically scans the location until it reaches this number or runs out of results. Smaller numbers finish faster.",
            "default": 50
          },
          "city": {
            "title": "City",
            "type": "string",
            "description": "City name only (no state or country — those have their own fields). Use instead of <b>Location</b> when you want a structured query.",
            "default": ""
          },
          "state": {
            "title": "State / Region",
            "type": "string",
            "description": "State or region. Pairs well with <b>City</b> in countries that use states (US, AU, IN, BR, MX, DE).",
            "default": ""
          },
          "county": {
            "title": "County / District / Département",
            "type": "string",
            "description": "County (US), regional district (CA), département (FR), or local equivalent.",
            "default": ""
          },
          "postalCode": {
            "title": "Postal code",
            "type": "string",
            "description": "Postal/ZIP code. Combine with <b>Country code</b> only — never with <b>City</b> (they conflict).",
            "default": ""
          },
          "customGeolocation": {
            "title": "Custom search area (GeoJSON)",
            "type": "object",
            "description": "GeoJSON Point or Polygon defining the exact area to search. Coordinate order is <code>[longitude, latitude]</code>. When set, this overrides all other location fields."
          },
          "startUrls": {
            "title": "Google Maps URLs",
            "type": "array",
            "description": "Skip the search step and scrape these places directly. Accepts <code>/maps/place/...</code>, <code>/maps?cid=...</code>, and shortened URLs.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "placeIds": {
            "title": "Place IDs",
            "type": "array",
            "description": "Google Maps place IDs like <code>ChIJN1t_tDeuEmsRUsoyG83frY4</code>. The <code>place_id:</code> prefix is accepted but optional.",
            "items": {
              "type": "string"
            }
          },
          "categoryFilterWord": {
            "title": "Category filter",
            "type": "string",
            "description": "Restrict results to one Google place category, given as its slug — e.g. <code>chinese_restaurant</code>, <code>hotel</code>, <code>plumber</code>, <code>coffee_shop</code>, <code>dentist</code>. Leave blank to include everything your search term returns.<br><br>Advanced: full list of 4,400+ category slugs → <a href=\"https://files.catbox.moe/qsc727.json\" target=\"_blank\">category reference</a>. The category must actually appear in your results to narrow them (e.g. <code>restaurants</code> + <code>chinese_restaurant</code>).",
            "default": ""
          },
          "placeMinimumStars": {
            "title": "Minimum rating",
            "enum": [
              "",
              "2.0",
              "2.5",
              "3.0",
              "3.5",
              "4.0",
              "4.5"
            ],
            "type": "string",
            "description": "Drop places below this average rating. Leave blank to include unrated places too.",
            "default": ""
          },
          "priceMin": {
            "title": "Min price per person (restaurants)",
            "minimum": 0,
            "type": "integer",
            "description": "Lowest typical dining price per person to include, in the local currency of your selected <b>Country</b> (e.g. <code>20</code> for $20 / €20). Leave at 0 for no lower limit. Only affects restaurant-type places.",
            "default": 0
          },
          "priceMax": {
            "title": "Max price per person (restaurants)",
            "minimum": 0,
            "type": "integer",
            "description": "Highest typical dining price per person to include, in the local currency of your selected <b>Country</b> (e.g. <code>60</code> for $60 / €60). Leave at 0 to turn the price filter <b>off</b>. Only affects restaurant-type places.",
            "default": 0
          },
          "openNow": {
            "title": "Open now only",
            "type": "boolean",
            "description": "Restrict to places that are currently open (in their local time).",
            "default": false
          },
          "skipClosedPlaces": {
            "title": "Skip permanently closed",
            "type": "boolean",
            "description": "Drop places marked permanently closed by Google.",
            "default": false
          },
          "websiteFilter": {
            "title": "Website filter",
            "enum": [
              "all",
              "with_website",
              "without_website"
            ],
            "type": "string",
            "description": "Keep places with a website, without one, or both.",
            "default": "all"
          },
          "searchMatching": {
            "title": "Name match strictness",
            "enum": [
              "all",
              "only_includes",
              "only_exact"
            ],
            "type": "string",
            "description": "How strictly the place name has to match your search term. <b>Anything Google returns</b> is the default and matches the usual Google Maps behavior.",
            "default": "all"
          },
          "maxReviews": {
            "title": "Reviews per place",
            "minimum": 0,
            "type": "integer",
            "description": "<code>0</code> = no reviews. Set to a large number (e.g. <code>99999</code>) to fetch all available. Each review is billed at $0.50/1k.",
            "default": 0
          },
          "reviewsSort": {
            "title": "Reviews sort",
            "enum": [
              "newest",
              "mostRelevant",
              "highestRanking",
              "lowestRanking"
            ],
            "type": "string",
            "description": "Sort order applied when fetching reviews. <b>Newest first</b> is most useful for monitoring; <b>Most relevant</b> matches the Google UI default.",
            "default": "newest"
          },
          "reviewsFilterString": {
            "title": "Filter reviews by keyword",
            "type": "string",
            "description": "Keep only reviews whose text contains this substring (case-insensitive). Leave blank to keep all. Useful for over-fetching, then narrowing.",
            "default": ""
          },
          "reviewsOrigin": {
            "title": "Reviews origin",
            "enum": [
              "all",
              "google"
            ],
            "type": "string",
            "description": "Whether to include reviews from partner sources (Tripadvisor, Booking, etc.) or restrict to Google-native reviews only.",
            "default": "all"
          },
          "maxImages": {
            "title": "Photos per place",
            "minimum": 0,
            "type": "integer",
            "description": "<code>0</code> = no photos. Each photo includes its tabs (All, Latest, Menu, Vibe, plus dish tabs), upload date, and source. Typical popular places have 100–200 photos available.",
            "default": 0
          },
          "maxVideos": {
            "title": "Videos per place",
            "minimum": 0,
            "type": "integer",
            "description": "<code>0</code> = no videos. Each video includes the poster image plus HLS, DASH, and best-quality MP4 stream URLs.",
            "default": 0
          },
          "excludeFields": {
            "title": "Trim heavy fields from output",
            "uniqueItems": true,
            "type": "array",
            "description": "Tick any fields you don't need — they get dropped from every place row to keep your dataset small. None are required for the actor to work; defaults include everything.",
            "items": {
              "type": "string",
              "enum": [
                "popularTimes",
                "amenities",
                "relatedPlaces",
                "metaDescription",
                "reviewTeasers",
                "bookingPartners",
                "immersiveView",
                "categoryGcids"
              ],
              "enumTitles": [
                "Popular times (7 days × 24 hours busyness chart) — ~10 KB/place",
                "Amenities (14 sections × items) — ~2 KB/place",
                "Related places (\"people also search for\") — ~3 KB/place",
                "Meta description (long marketing text) — ~1 KB/place",
                "Review teasers (featured snippets, author profile + photo)",
                "Booking partners (Resy, OpenTable provider blocks with logos)",
                "Immersive View (360° media URLs)",
                "Category GCIDs (machine-readable category slugs — keeps the human-readable 'Categories' field)"
              ]
            }
          },
          "language": {
            "title": "Language",
            "enum": [
              "en",
              "de",
              "fr",
              "es",
              "it",
              "pt",
              "nl",
              "pl",
              "ja",
              "zh-CN",
              "zh-TW",
              "ko",
              "ar",
              "tr",
              "ru"
            ],
            "type": "string",
            "description": "Display language used when fetching results. Affects category labels and review text language preference.",
            "default": "en"
          },
          "countryCode": {
            "title": "Country code",
            "enum": [
              "us",
              "gb",
              "de",
              "fr",
              "ca",
              "au",
              "in",
              "jp",
              "cn",
              "br",
              "mx",
              "es",
              "it",
              "nl",
              "pl",
              "tr",
              "ru",
              "kr",
              "sa",
              "ad",
              "ae",
              "af",
              "ag",
              "ai",
              "al",
              "am",
              "ao",
              "aq",
              "ar",
              "as",
              "at",
              "aw",
              "ax",
              "az",
              "ba",
              "bb",
              "bd",
              "be",
              "bf",
              "bg",
              "bh",
              "bi",
              "bj",
              "bl",
              "bm",
              "bn",
              "bo",
              "bq",
              "bs",
              "bt",
              "bv",
              "bw",
              "by",
              "bz",
              "cc",
              "cd",
              "cf",
              "cg",
              "ch",
              "ci",
              "ck",
              "cl",
              "cm",
              "co",
              "cr",
              "cu",
              "cv",
              "cw",
              "cx",
              "cy",
              "cz",
              "dj",
              "dk",
              "dm",
              "do",
              "dz",
              "ec",
              "ee",
              "eg",
              "eh",
              "er",
              "et",
              "fi",
              "fj",
              "fk",
              "fm",
              "fo",
              "ga",
              "gd",
              "ge",
              "gf",
              "gg",
              "gh",
              "gi",
              "gl",
              "gm",
              "gn",
              "gp",
              "gq",
              "gr",
              "gs",
              "gt",
              "gu",
              "gw",
              "gy",
              "hk",
              "hm",
              "hn",
              "hr",
              "ht",
              "hu",
              "id",
              "ie",
              "il",
              "im",
              "io",
              "iq",
              "ir",
              "is",
              "je",
              "jm",
              "jo",
              "ke",
              "kg",
              "kh",
              "ki",
              "km",
              "kn",
              "kp",
              "kw",
              "ky",
              "kz",
              "la",
              "lb",
              "lc",
              "li",
              "lk",
              "lr",
              "ls",
              "lt",
              "lu",
              "lv",
              "ly",
              "ma",
              "mc",
              "md",
              "me",
              "mf",
              "mg",
              "mh",
              "mk",
              "ml",
              "mm",
              "mn",
              "mo",
              "mp",
              "mq",
              "mr",
              "ms",
              "mt",
              "mu",
              "mv",
              "mw",
              "my",
              "mz",
              "na",
              "nc",
              "ne",
              "nf",
              "ng",
              "ni",
              "no",
              "np",
              "nr",
              "nu",
              "nz",
              "om",
              "pa",
              "pe",
              "pf",
              "pg",
              "ph",
              "pk",
              "pm",
              "pn",
              "pr",
              "ps",
              "pt",
              "pw",
              "py",
              "qa",
              "re",
              "ro",
              "rs",
              "rw",
              "sb",
              "sc",
              "sd",
              "se",
              "sg",
              "sh",
              "si",
              "sj",
              "sk",
              "sl",
              "sm",
              "sn",
              "so",
              "sr",
              "ss",
              "st",
              "sv",
              "sx",
              "sy",
              "sz",
              "tc",
              "td",
              "tf",
              "tg",
              "th",
              "tj",
              "tk",
              "tl",
              "tm",
              "tn",
              "to",
              "tt",
              "tv",
              "tw",
              "tz",
              "ua",
              "ug",
              "um",
              "uy",
              "uz",
              "va",
              "vc",
              "ve",
              "vg",
              "vi",
              "vn",
              "vu",
              "wf",
              "ws",
              "ye",
              "yt",
              "za",
              "zm",
              "zw"
            ],
            "type": "string",
            "description": "Country used to bias search results geographically. The first 19 entries are common defaults; the rest are alphabetical.",
            "default": "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}