{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Maps Places Scraper: Phones, Hours, Owners",
    "description": "Google Maps places past one search's ~200, read in map tiles, with phone, website, hours and owner. $0.20 per 1,000 places. Reviews, filters and drawn areas.",
    "version": "0.1",
    "x-build-id": "WE7H62xx9UftYSPvs"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/luzivanlt~google-maps-places-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-luzivanlt-google-maps-places-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/luzivanlt~google-maps-places-scraper/runs": {
      "post": {
        "operationId": "runs-sync-luzivanlt-google-maps-places-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/luzivanlt~google-maps-places-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-luzivanlt-google-maps-places-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": "Search terms",
            "type": "array",
            "description": "What to search for on Google Maps, one search per term, e.g. \"dentist\" or \"coffee shop\". Each term is up to 200 characters, and the same term typed in another case is searched once. A link here is refused: paste it under Search and place links. Give at least one search term, link or place id.",
            "items": {
              "type": "string"
            }
          },
          "location": {
            "title": "Location",
            "type": "string",
            "description": "Where to search, as you would type it on Google Maps: a city, a district or a region, e.g. \"Austin, Texas\" or \"Hanoi, Vietnam\". Added to every search term as \"<term> in <location>\", not to links. Up to 200 characters. Leave it empty to put the place in the term yourself; without one, Google picks the area and results can come from anywhere in a country. Not used when a Search area is set."
          },
          "locations": {
            "title": "More locations",
            "type": "array",
            "description": "More places to search, each like Location: every search term is searched in every location, one search each, e.g. [\"Dallas, Texas\", \"Houston, Texas\"]. Up to 1,000. Not used when a Search area is set.",
            "items": {
              "type": "string"
            }
          },
          "customGeolocation": {
            "title": "Search area",
            "type": "object",
            "description": "An exact area to search, as GeoJSON with [longitude, latitude] corners: a \"Polygon\" or \"MultiPolygon\" (a city's outline from geojson.io), a \"Point\" with \"radiusKm\" for a circle, or a box as {\"bbox\": [west, south, east, north]}. Each search term is searched over the area in map tiles, and only places inside it are kept (a polygon's outer outline: holes are not left out). Search links keep their own area. Location and More locations are not used with it. Example: {\"type\": \"Point\", \"coordinates\": [-97.7431, 30.2672], \"radiusKm\": 2}"
          },
          "startUrls": {
            "title": "Search and place links",
            "type": "array",
            "description": "Links to Google Maps searches (google.com/maps/search/…), e.g. https://www.google.com/maps/search/dentist+in+austin, or to single places (google.com/maps/place/…, copied from the address bar). Any Google domain works (google.de, maps.google.com), and so does Google's /maps/search/?api=1 form, with query_place_id too. A search link that carries a map position (/@latitude,longitude,zoom) searches around it. A place link is read from the place's own page, with its details (charged as place details). Short share links (maps.app.goo.gl) and CID links (?cid=) are refused: open the place and paste the link from the address bar, or its place id.",
            "items": {
              "type": "string"
            }
          },
          "placeIds": {
            "title": "Place ids",
            "type": "array",
            "description": "Google place ids (ChIJ…) to read one by one, e.g. from an earlier run. Each is read from the place's own page, with its details: charged as a place and as place details. Up to 1,000.",
            "items": {
              "type": "string"
            }
          },
          "placeDetails": {
            "title": "Place details: reviews, rating breakdown, photos",
            "type": "boolean",
            "description": "Also open each place a search finds on its own page for the reviews by star (1 to 5), 5 top reviews with the owner's replies, the review topics Google picks out, quoted review snippets, the photos Google sends with the place (4 on every place measured), and, when Google shows them, the business's own description and the building it is in. Two more requests per place, so a run takes longer: each place read this way also costs $0.80 per 1,000 (charged as \"place details\"). Places left out by the filters are never opened. Off by default. Example: true"
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "The language Google Maps answers in, as a language code, e.g. \"en\", \"de\", \"vi\" or \"pt-BR\". Names, categories, hours and attributes come in it, for search terms and links alike. Default \"en\". A permanent closure is known in every language; a temporary one in English runs only.",
            "default": "en"
          },
          "maxPlacesPerSearch": {
            "title": "Max places per search",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Stop each search term or link after this many places, from 1 to 5,000; default 100. Google lists about 100 to 220 places for one search; a search that fills that list goes on in map tiles over its area, which list more (a dense city: thousands). Each place is charged once per run ($0.40 per 1,000 places), so this caps what each search costs. Example: 2,000 places cost at most $0.80.",
            "default": 100
          },
          "minRating": {
            "title": "Minimum rating",
            "minimum": 1,
            "maximum": 5,
            "type": "number",
            "description": "Keep only places rated at least this many stars, from 1 to 5, e.g. 4 or 4.5. A place with no rating is left out. Places left out by a filter are not saved and not charged. Empty: every rating."
          },
          "websiteFilter": {
            "title": "Website",
            "enum": [
              "allPlaces",
              "withWebsite",
              "withoutWebsite"
            ],
            "type": "string",
            "description": "Keep every place, only places with a website, or only places without one (a lead list for web designers). A place left out is not saved and not charged. Empty or \"allPlaces\": every place. Example: withoutWebsite."
          },
          "skipClosedPlaces": {
            "title": "Skip closed places",
            "type": "boolean",
            "description": "Leave out places Google marks as permanently closed (known in every language) or temporarily closed (known in English runs only). A place left out is not saved and not charged. Off by default. Example: true."
          },
          "categoryFilterWords": {
            "title": "Category words",
            "type": "array",
            "description": "Keep only places with a category that contains one of these words, in any case and without accents, e.g. [\"dentist\"] keeps \"Cosmetic dentist\" and drops \"Dental clinic\". Categories come in the run's Language. Empty: every category.",
            "items": {
              "type": "string"
            }
          },
          "nameMatching": {
            "title": "Name must match the search term",
            "enum": [
              "all",
              "includes",
              "exact"
            ],
            "type": "string",
            "description": "Keep every place Google lists, only places whose name contains the search term, or only places whose name is exactly the term (in any case, without accents). Applies to search terms only: a pasted link's words include its place, so it is not filtered by name. Default: every place. Example: includes."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}