{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Maps Scraper (HTTP / curl_cffi)",
    "description": "Lightning-fast HTTP Google Maps scraper for lead generation. No browser = 5–10× cheaper. Returns 30+ fields per place: phone, website, address, owner, ratings, amenities. Quad-tree subdivision unlocks unlimited results per area. Chrome TLS impersonation bypasses Google anti-bot.",
    "version": "0.5",
    "x-build-id": "voAxb6nXiahe1pffy"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/kitcunemia~google-maps-scraper-http/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-kitcunemia-google-maps-scraper-http",
        "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/kitcunemia~google-maps-scraper-http/runs": {
      "post": {
        "operationId": "runs-sync-kitcunemia-google-maps-scraper-http",
        "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/kitcunemia~google-maps-scraper-http/run-sync": {
      "post": {
        "operationId": "run-sync-kitcunemia-google-maps-scraper-http",
        "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",
            "uniqueItems": true,
            "type": "array",
            "description": "Search queries to scrape, e.g. ['restaurant', 'cafe', 'pub']. Each term searches independently across all seed viewports and languages.",
            "items": {
              "type": "string"
            }
          },
          "locationQuery": {
            "title": "Location",
            "type": "string",
            "description": "Free-text location, e.g. 'New York, USA' or 'Manhattan'. Resolved via OpenStreetMap Nominatim. Ignored if customGeolocation is set."
          },
          "customGeolocation": {
            "title": "Custom geolocation (GeoJSON)",
            "type": "object",
            "description": "GeoJSON Polygon, MultiPolygon, or Point. Overrides locationQuery. Point requires 'radiusKm'. MultiPolygon yields one seed per polygon."
          },
          "startUrls": {
            "title": "Direct Google Maps URLs",
            "type": "array",
            "description": "Direct google.com/maps/place/... URLs. Scraped without going through search.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxCrawledPlacesPerSearch": {
            "title": "Max places per search term",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Hard cap per term across all viewports & languages. Quad-tree subdivision stops when this is hit. Default 500 — increase for dense city-scale scraping.",
            "default": 500
          },
          "maxPlacesPerViewport": {
            "title": "Max places per viewport",
            "minimum": 1,
            "maximum": 120,
            "type": "integer",
            "description": "Per-viewport cap. Google itself returns ≤120 per viewport scroll; values above 120 have no effect for one viewport.",
            "default": 80
          },
          "enableSubdivision": {
            "title": "Quad-tree subdivision",
            "type": "boolean",
            "description": "When a viewport saturates (≥18 new of 20 first-page results), split into 4 quadrants and recurse. This is what unlocks scraping >120 results per area. Leave on.",
            "default": true
          },
          "maxSubdivisionDepth": {
            "title": "Max subdivision depth",
            "minimum": 0,
            "maximum": 7,
            "type": "integer",
            "description": "Max recursive splits. Each level multiplies viewports by 4 (depth=4 → up to 256 viewports per seed).",
            "default": 4
          },
          "language": {
            "title": "Primary language",
            "type": "string",
            "description": "Google UI language (hl=). Affects place names, opening-hours strings, tag labels, etc.",
            "default": "en"
          },
          "additionalLanguages": {
            "title": "Additional languages",
            "uniqueItems": true,
            "type": "array",
            "description": "Extra language codes to re-search the same areas. Useful for non-English regions where Google returns different translations & categories per language. Each language adds ~Nx searches.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "zoom": {
            "title": "Initial zoom",
            "minimum": 1,
            "maximum": 21,
            "type": "integer",
            "description": "Override auto-derived zoom of the seed viewport. Higher zoom = denser results before subdivision."
          },
          "multiZoomDelta": {
            "title": "Multi-zoom expansion (±N)",
            "minimum": 0,
            "maximum": 3,
            "type": "integer",
            "description": "Search each seed at zoom-N..zoom+N to maximize coverage. delta=1 → 3 zoom levels per seed (3x cost, +30-70% unique places). delta=0 disables.",
            "default": 0
          },
          "concurrency": {
            "title": "Concurrent tasks",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "How many viewports run in parallel. Each on its own sticky proxy session. Tune up for speed, down if rate-limited.",
            "default": 8
          },
          "requestTimeoutSecs": {
            "title": "Per-request HTTP timeout (s)",
            "minimum": 5,
            "maximum": 60,
            "type": "integer",
            "description": "Per-HTTP-request timeout in seconds. Increase if your residential proxies are slow.",
            "default": 15
          },
          "minRequestIntervalMs": {
            "title": "Min interval between requests (ms)",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Global throttle: minimum gap between any two outbound requests. 0 = disabled.",
            "default": 0
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify proxy settings. Residential proxies are strongly recommended.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}