{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Maps Places Scraper: Google Places API, Phones, Hours",
    "description": "Scrape Google Maps places by search term and location, area, Maps link, place ID or shared list. Every place inside your area: phone, website, rating, review count and stars, opening hours, address, plus code, coordinates. No login, no API key; only delivered places are charged. Misses free.",
    "version": "0.1",
    "x-build-id": "PqY0YIt8zAqEli0bv"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/hyperbach~google-maps-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-hyperbach-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/hyperbach~google-maps-scraper/runs": {
      "post": {
        "operationId": "runs-sync-hyperbach-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/hyperbach~google-maps-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-hyperbach-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",
            "maxItems": 1000,
            "type": "array",
            "description": "What to look for, as you would type it into Google Maps: `restaurant`, `dentist`, `coffee shop`, a business name. Each term is searched in each location below. Give a location for an area walk; a term with no location reads Google's own answer to the words.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "locationQuery": {
            "title": "Location",
            "maxLength": 300,
            "type": "string",
            "description": "Where to search, in words: a city, county, state, country or neighbourhood (`New York, USA`, `Berlin, Germany`, `Queensland, Australia`). The place's boundary comes from OpenStreetMap, and only places inside it are delivered.",
            "default": ""
          },
          "locationQueries": {
            "title": "More locations",
            "maxItems": 500,
            "type": "array",
            "description": "More locations in words, one a line: every search term is searched in each of them (and in `Location`).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxCrawledPlacesPerSearch": {
            "title": "Max places per search",
            "minimum": 0,
            "maximum": 10000000,
            "type": "integer",
            "description": "The most places one search term in one location (or one search link, one shared list) delivers. 0 = every place the area holds. A search asks Google for no more than this.",
            "default": 0
          },
          "language": {
            "title": "Language",
            "pattern": "^[a-z]{2,3}(-[A-Za-z]{2,4})?$",
            "type": "string",
            "description": "Google's language code for the results (`en`, `de`, `fr`, `es`, `pt-BR`, `ja`…): categories, day names and hours come in it.",
            "default": "en"
          },
          "countryCode": {
            "title": "Country code",
            "pattern": "^([A-Za-z]{2})?$",
            "type": "string",
            "description": "Instead of `Location`: the country as a two-letter code (`us`, `gb`, `de`). Combine it with state, county, city or postal code.",
            "default": ""
          },
          "state": {
            "title": "State",
            "maxLength": 100,
            "type": "string",
            "description": "A state or region (`California`).",
            "default": ""
          },
          "county": {
            "title": "County",
            "maxLength": 100,
            "type": "string",
            "description": "A county (`Kings County`).",
            "default": ""
          },
          "city": {
            "title": "City",
            "maxLength": 100,
            "type": "string",
            "description": "A city (`Austin`).",
            "default": ""
          },
          "postalCode": {
            "title": "Postal code",
            "maxLength": 20,
            "type": "string",
            "description": "A postal code with its country (`10001` and country code `us`): only places whose own address carries this postal code are delivered.",
            "default": ""
          },
          "customGeolocation": {
            "title": "Custom area (GeoJSON)",
            "type": "object",
            "description": "An exact area instead of a location: a GeoJSON `Polygon` or `MultiPolygon` (longitude first, as GeoJSON writes it), or a `Point` with `radiusKm`, e.g. `{\"type\": \"Point\", \"coordinates\": [-73.98, 40.75], \"radiusKm\": 2}`. Only places inside it are delivered.",
            "default": {}
          },
          "startUrls": {
            "title": "Google Maps links",
            "maxItems": 5000,
            "type": "array",
            "description": "Google Maps links: a search link (`google.com/maps/search/pizza/@40.75,-73.99,14z`: its screen is the area), a place link, a `?cid=` link, a shared list or a `maps.app.goo.gl` short link. A search link's screen is walked in full; a place link gives that place; a list gives every place on it.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "placeIds": {
            "title": "Place IDs",
            "maxItems": 10000,
            "type": "array",
            "description": "Google place IDs (`ChIJ…`), feature IDs (`0x89c28b302b518203:0x988671e2a6e9141c`) or CIDs (`10990597158921114652`): one row each with the whole place.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "categoryFilterWords": {
            "title": "Only these categories",
            "maxItems": 200,
            "type": "array",
            "description": "Keep a place only when one of its Google categories contains one of these words (`pizza`, `italian`). A place left out is not charged.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "placeMinimumStars": {
            "title": "Minimum rating",
            "enum": [
              "",
              "two",
              "twoAndHalf",
              "three",
              "threeAndHalf",
              "four",
              "fourAndHalf"
            ],
            "type": "string",
            "description": "Keep places rated at least this (an unrated place is left out).",
            "default": ""
          },
          "placeMaximumStars": {
            "title": "Maximum rating",
            "enum": [
              "",
              "two",
              "twoAndHalf",
              "three",
              "threeAndHalf",
              "four",
              "fourAndHalf"
            ],
            "type": "string",
            "description": "Keep places rated at most this (an unrated place is kept).",
            "default": ""
          },
          "minimumReviews": {
            "title": "Minimum reviews",
            "minimum": 0,
            "maximum": 10000000,
            "type": "integer",
            "description": "Keep places with at least this many reviews; 0 = any.",
            "default": 0
          },
          "website": {
            "title": "Website",
            "enum": [
              "allPlaces",
              "withWebsite",
              "withoutWebsite"
            ],
            "type": "string",
            "description": "Keep every place, only places with a website, or only places without one.",
            "default": "allPlaces"
          },
          "skipClosedPlaces": {
            "title": "Skip permanently closed places",
            "type": "boolean",
            "description": "Leave out places Google marks as permanently closed.",
            "default": false
          },
          "excludePlaceIds": {
            "title": "Skip these places",
            "maxItems": 100000,
            "type": "array",
            "description": "Place IDs, feature IDs, CIDs or place links never delivered or charged (a list you already have).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "onlyNew": {
            "title": "Only new places (memory between runs)",
            "type": "boolean",
            "description": "Deliver only the places an earlier run with the same memory did not deliver. For a scheduled task that watches an area for new places.",
            "default": false
          },
          "stateStoreName": {
            "title": "Memory name",
            "pattern": "^([a-zA-Z0-9][a-zA-Z0-9._-]{0,63})?$",
            "type": "string",
            "description": "The name of the memory `onlyNew` keeps (letters, digits, '.', '_', '-'); empty = a name derived from the inputs.",
            "default": ""
          },
          "maxItems": {
            "title": "Max places (whole run)",
            "minimum": 0,
            "maximum": 10000000,
            "type": "integer",
            "description": "The most charged places of the whole run, over every search and link; 0 = no cap beyond your charge limit.",
            "default": 0
          },
          "proxyUrl": {
            "title": "Proxy URL",
            "type": "string",
            "description": "Your own proxy (scheme://user:pass@host:port) for every call instead of ours. Leave empty: the Actor brings its own connections at no cost to you."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}