{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Maps Scraper - Grid Search Past 120 Places",
    "description": "Google Maps Scraper returns one row per place: name, category, address, phone, website, rating, review count, star distribution, coordinates and opening hours. Grid search goes past Google's ~120-place limit by searching the area cell by cell. For lead lists and store locators.",
    "version": "0.0",
    "x-build-id": "GUBJMMfURgcvxPgb0"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/webdatatools~google-maps-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-webdatatools-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/webdatatools~google-maps-scraper/runs": {
      "post": {
        "operationId": "runs-sync-webdatatools-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/webdatatools~google-maps-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-webdatatools-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",
            "description": "Enter what to search: one term as a string, e.g. \"dentist\", several separated by semicolons, e.g. \"dentist; coffee shop\", or a JSON array, e.g. [\"dentist\", \"coffee shop\"]. Aliases: query, keyword, search, searchStringsArray.",
            "default": "dentist"
          },
          "location": {
            "title": "Location",
            "type": "string",
            "description": "Enter the location (city, region, country) for the search, e.g. \"Austin, TX\". Alias: locationQuery.",
            "default": "Austin, TX"
          },
          "maxPlacesPerSearch": {
            "title": "Max places per search",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum number of places per search query (default 20). Google itself returns at most ~120 places per search; turn on Grid search to get up to 5,000 per query.",
            "default": 20
          },
          "gridSearch": {
            "title": "Grid search (more than 120 places)",
            "type": "boolean",
            "description": "Split the location (or the coordinates circle) into map cells and run each search in every cell. Finds far more than Google’s ~120 places per search; only places inside the area are saved, duplicates across cells are skipped and not charged. The location is resolved to an area with OpenStreetMap Nominatim.",
            "default": false
          },
          "gridCellKm": {
            "title": "Grid cell size (km)",
            "minimum": 0.5,
            "maximum": 20,
            "type": "number",
            "description": "Target cell size for Grid search (0.5–20 km, default 3). Smaller cells find more places in dense cities but need more requests. If the area needs more cells than Max grid cells, the cells grow until it fits.",
            "default": 3
          },
          "maxGridCells": {
            "title": "Max grid cells",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Upper limit of cells per Grid search (1–100, default 100). Each cell is one Google search of up to 120 places; the run stops earlier when Max places per search is reached.",
            "default": 100
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Language for search results, e.g. \"en\" for English, \"tr\" for Turkish.",
            "default": "en"
          },
          "country": {
            "title": "Country",
            "type": "string",
            "description": "Country code for search results (2-letter ISO code), e.g. \"us\", \"uk\", \"tr\".",
            "default": "us"
          },
          "minRating": {
            "title": "Minimum rating",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Optional: keep only places with a known rating at or above this value (0-5), e.g. 4.0. Places without a rating are excluded when this filter is set."
          },
          "skipClosedPlaces": {
            "title": "Skip closed places",
            "type": "boolean",
            "description": "Skip places that are permanently or temporarily closed.",
            "default": false
          },
          "coordinates": {
            "title": "Coordinates",
            "type": "object",
            "description": "Optional: search by coordinates instead of location name. Provide lat, lng, and radiusMeters.",
            "properties": {
              "lat": {
                "type": "number",
                "title": "Latitude",
                "description": "Latitude"
              },
              "lng": {
                "type": "number",
                "title": "Longitude",
                "description": "Longitude"
              },
              "radiusMeters": {
                "type": "integer",
                "title": "Radius (meters)",
                "description": "Search radius in meters"
              }
            }
          },
          "monitorStoreName": {
            "title": "Track changes between runs (store name)",
            "type": "string",
            "description": "Optional. Give a name, e.g. `austin-dentists`, keep the same searches and schedule the run. Each place then also has `firstSeen`, `reviewsGained`, `ratingChange`, `newlyClosed` and `lastSeenAt` against the last run with the same name that saw it. Kept in your own named key-value store; letters, digits and hyphens, up to 63 characters."
          },
          "onlyNewOrChanged": {
            "title": "Return only new or changed places",
            "type": "boolean",
            "description": "Needs a store name. After the first run, return (and pay for) only places that are new to the search, got new reviews, moved in rating or newly closed. Unchanged places are skipped and cost nothing; OUTPUT.unchangedSkipped counts them.",
            "default": false
          },
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Optional: paste Google Maps search URLs directly.",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}