{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Maps Geocoding Scraper",
    "description": "Resolve public Google Maps places into source-backed business identity, location, contact, reputation, hours, profile attributes, and visible photo data.",
    "version": "1.0",
    "x-build-id": "bKaUmdmrv7SQ8MlPw"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/googleapi~google-maps-geocoding-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-googleapi-google-maps-geocoding-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/googleapi~google-maps-geocoding-scraper/runs": {
      "post": {
        "operationId": "runs-sync-googleapi-google-maps-geocoding-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/googleapi~google-maps-geocoding-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-googleapi-google-maps-geocoding-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": {
          "startUrls": {
            "title": "Google Maps URLs",
            "maxItems": 25,
            "type": "array",
            "description": "Public Google Maps search or place URLs. Place URLs are treated as the requested profile source.",
            "items": {
              "type": "object",
              "properties": {
                "url": {
                  "title": "Public Google Maps URL",
                  "type": "string",
                  "description": "A public search or business place page on Google Maps."
                }
              },
              "required": [
                "url"
              ],
              "additionalProperties": false
            }
          },
          "placeUrls": {
            "title": "Place URL list (compatibility)",
            "maxItems": 25,
            "type": "array",
            "description": "Compatibility alias for public Google Maps URLs.",
            "items": {
              "type": "string"
            }
          },
          "sourceUrls": {
            "title": "Source URL list (compatibility)",
            "maxItems": 25,
            "type": "array",
            "description": "Compatibility alias for public Google Maps URLs.",
            "items": {
              "type": "string"
            }
          },
          "searchUrls": {
            "title": "Search URL list (compatibility)",
            "maxItems": 25,
            "type": "array",
            "description": "Compatibility alias for public Google Maps URLs.",
            "items": {
              "type": "string"
            }
          },
          "urls": {
            "title": "URL list (compatibility)",
            "maxItems": 25,
            "type": "array",
            "description": "Compatibility alias for public Google Maps URLs.",
            "items": {
              "type": "string"
            }
          },
          "queries": {
            "title": "Search queries",
            "maxItems": 50,
            "type": "array",
            "description": "Public Google Maps place searches.",
            "items": {
              "type": "string",
              "minLength": 3,
              "maxLength": 300
            }
          },
          "query": {
            "title": "Single query (compatibility)",
            "minLength": 3,
            "maxLength": 300,
            "type": "string",
            "description": "Compatibility alias for one search query."
          },
          "searchQuery": {
            "title": "Search query (compatibility)",
            "minLength": 3,
            "maxLength": 300,
            "type": "string",
            "description": "Compatibility alias for one search query."
          },
          "addresses": {
            "title": "Addresses to resolve",
            "maxItems": 100,
            "type": "array",
            "description": "Public addresses converted into ordinary Google Maps searches.",
            "items": {
              "type": "string",
              "minLength": 3,
              "maxLength": 300
            }
          },
          "coordinates": {
            "title": "Coordinates to resolve",
            "maxItems": 100,
            "type": "array",
            "description": "Coordinate pairs converted into ordinary public Maps URLs.",
            "items": {
              "type": "object",
              "properties": {
                "latitude": {
                  "title": "Latitude",
                  "type": "number",
                  "minimum": -90,
                  "maximum": 90,
                  "description": "Latitude in decimal degrees."
                },
                "longitude": {
                  "title": "Longitude",
                  "type": "number",
                  "minimum": -180,
                  "maximum": 180,
                  "description": "Longitude in decimal degrees."
                }
              },
              "required": [
                "latitude",
                "longitude"
              ],
              "additionalProperties": false
            }
          },
          "maxItems": {
            "title": "Maximum businesses",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Global cap on unique business records returned.",
            "default": 10
          },
          "page": {
            "title": "Starting result batch",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "One-based starting Maps feed batch; Maps is advanced only by ordinary visible-feed scrolling.",
            "default": 1
          },
          "maxPages": {
            "title": "Maximum result batches per source",
            "minimum": 1,
            "maximum": 25,
            "type": "integer",
            "description": "Maximum visible feed batches to inspect for each search URL.",
            "default": 3
          },
          "maxDetailItems": {
            "title": "Maximum place detail pages",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum number of search results to open for optional profile enrichment when includeDetails is enabled.",
            "default": 3
          },
          "includeDetails": {
            "title": "Open place profiles for details",
            "type": "boolean",
            "description": "Open up to maxDetailItems public place pages to collect visible contact, hours, attributes, and profile facts. Disabled by default.",
            "default": false
          },
          "includeMedia": {
            "title": "Include visible business photos",
            "type": "boolean",
            "description": "Include distinct visible Google-hosted business photos and image dimensions when available.",
            "default": true
          },
          "deduplicate": {
            "title": "Deduplicate places",
            "type": "boolean",
            "description": "Keep one row per visible place identity across sources.",
            "default": true
          },
          "keyword": {
            "title": "Keyword contains",
            "maxLength": 200,
            "type": "string",
            "description": "Optional case-insensitive filter across visible business name, category, address, and description."
          },
          "category": {
            "title": "Category contains",
            "maxLength": 120,
            "type": "string",
            "description": "Optional case-insensitive filter on the public primary category."
          },
          "country": {
            "title": "Country contains",
            "maxLength": 80,
            "type": "string",
            "description": "Optional case-insensitive filter on visible place text."
          },
          "minRating": {
            "title": "Minimum rating",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Return places with a visible Maps rating at or above this value."
          },
          "minReviewCount": {
            "title": "Minimum review count",
            "minimum": 0,
            "maximum": 10000000,
            "type": "integer",
            "description": "Return places with a visible review count at or above this value."
          },
          "sortBy": {
            "title": "Sort results",
            "enum": [
              "relevance",
              "rating_desc",
              "review_count_desc",
              "name_asc"
            ],
            "type": "string",
            "description": "Order returned places by source relevance, rating, review count, or name.",
            "default": "relevance"
          },
          "useBrowser": {
            "title": "Render Maps pages",
            "type": "boolean",
            "description": "Use ordinary headless browser rendering for dynamic public Maps results. When disabled, only source data present in static HTML is available.",
            "default": true
          },
          "requestTimeoutSecs": {
            "title": "Page timeout (seconds)",
            "minimum": 5,
            "maximum": 120,
            "type": "integer",
            "description": "Maximum navigation time for each public Maps page.",
            "default": 30
          },
          "maxRequestRetries": {
            "title": "Navigation retries",
            "minimum": 0,
            "maximum": 3,
            "type": "integer",
            "description": "Retry count after transient request failures; access challenges are not retried.",
            "default": 1
          },
          "requestDelayMs": {
            "title": "Delay between page interactions (ms)",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Polite pause before requests and feed scrolls.",
            "default": 250
          },
          "browserWaitMs": {
            "title": "Page settle wait (ms)",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Wait for visible public page content after navigation or a normal tab click.",
            "default": 1500
          },
          "maxResponseBytes": {
            "title": "Maximum static response bytes",
            "minimum": 10000,
            "maximum": 5000000,
            "type": "integer",
            "description": "Bound for the optional static HTML response when browser rendering is disabled.",
            "default": 2000000
          },
          "userAgent": {
            "title": "Ordinary browser user agent",
            "maxLength": 240,
            "type": "string",
            "description": "Optional ordinary User-Agent header; no stealth or fingerprint evasion is used."
          },
          "proxyConfiguration": {
            "title": "Optional proxy configuration",
            "type": "object",
            "description": "Optional Apify proxy settings for browser navigation. Leave unset to use the ordinary direct connection."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}