{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Maps Scraper: Extract Business Data & Leads",
    "description": "Scrape hundreds of Google Maps business listings per query. Extract 45+ fields: phones, emails, reviews, ratings, social profiles, website tech stack, lead scores, GPS coordinates, and operating data. Faster, richer, and uncapped compared to the official Google Maps API.",
    "version": "0.0",
    "x-build-id": "v68JWJTqfhYwtKsqy"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/web.harvester~google-maps-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-web.harvester-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/web.harvester~google-maps-scraper/runs": {
      "post": {
        "operationId": "runs-sync-web.harvester-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/web.harvester~google-maps-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-web.harvester-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": {
          "queries": {
            "title": "Search Queries",
            "type": "array",
            "description": "Keywords to search for (e.g., 'Restaurants in New York'). Each query is processed independently.",
            "items": {
              "type": "string"
            }
          },
          "directUrls": {
            "title": "Direct Place URLs",
            "type": "array",
            "description": "Bypass search and extract data from specific Google Maps links. Not compatible with Fast Mode.",
            "items": {
              "type": "string"
            }
          },
          "language": {
            "title": "Results Language",
            "type": "string",
            "description": "IETF language code (e.g., 'en', 'ar', 'de'). Controls localized text like labels and reviews.",
            "default": "en"
          },
          "fastMode": {
            "title": "Enable Fast Mode",
            "type": "boolean",
            "description": "⚡ Ultra-fast HTTP extraction. Ideal for bulk discovery. Note: Reviews, images, and detailed attributes are omitted.",
            "default": false
          },
          "hybridMode": {
            "title": "Enable Hybrid Mode",
            "type": "boolean",
            "description": "🚀 The best of both worlds: use internal APIs for lightning-fast discovery and Playwright browsers for deep extraction of all 45+ fields. Recommended for >100 results per query.",
            "default": false
          },
          "maxResultsPerQuery": {
            "title": "Max Results Per Query",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "Limit results per query. Each scroll loads ~10 results. Set to 0 for unlimited.",
            "default": 100
          },
          "enableReviews": {
            "title": "Deep Review Extraction",
            "type": "boolean",
            "description": "Extract full review text and metadata. Not available in Fast Mode. Increases time and cost.",
            "default": false
          },
          "maxReviewsPerPlace": {
            "title": "Max Reviews Per Place",
            "minimum": 0,
            "maximum": 500,
            "type": "integer",
            "description": "Limit reviews per place (Max ~300). Set to 0 for default limit.",
            "default": 0
          },
          "reviewSort": {
            "title": "Review Sort Order",
            "enum": [
              "newest",
              "most_relevant",
              "highest",
              "lowest"
            ],
            "type": "string",
            "description": "How to prioritize review extraction.",
            "default": "newest"
          },
          "enableEmails": {
            "title": "Lead Enrichment (Emails & Social)",
            "type": "boolean",
            "description": "Crawl business websites for contact details, social handles, and digital presence audits.",
            "default": false
          },
          "geo": {
            "title": "Geographic Center",
            "type": "string",
            "description": "Coordinate origin as 'lat,lng'. Required for Fast Mode and Grid Search."
          },
          "radius": {
            "title": "Search Radius (meters)",
            "minimum": 0,
            "type": "number",
            "description": "Define the circular search area. Used for Grid Search and Fast Mode filtering.",
            "default": 10000
          },
          "gridSearch": {
            "title": "Extended Grid Coverage",
            "type": "boolean",
            "description": "Generate a multi-point search grid to ensure 100% area coverage within the radius.",
            "default": false
          },
          "zoom": {
            "title": "Map Zoom Detail",
            "minimum": 0,
            "maximum": 21,
            "type": "integer",
            "description": "Search scale (0-21). Default 15 (City Level). Higher = narrower focus.",
            "default": 15
          },
          "minRating": {
            "title": "Minimum Star Rating",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Skip results below this rating. Set to 0 for no filter.",
            "default": 0
          },
          "minReviews": {
            "title": "Minimum Review Count",
            "minimum": 0,
            "type": "integer",
            "description": "Only include businesses with at least this many reviews.",
            "default": 0
          },
          "excludeCategories": {
            "title": "Exclude Categories",
            "type": "array",
            "description": "Partial match categories to ignore (e.g., 'ATM', 'Fuel').",
            "items": {
              "type": "string"
            }
          },
          "statusFilter": {
            "title": "Business Status",
            "enum": [
              "any",
              "operational"
            ],
            "type": "string",
            "description": "Filter by operational state.",
            "default": "any"
          },
          "monitoringMode": {
            "title": "Enable Monitoring Mode",
            "type": "boolean",
            "description": "Incremental delta scraping: only output new or changed places. Persists state.",
            "default": false
          },
          "monitoringRatingThreshold": {
            "title": "Rating Change Threshold",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Minimum rating delta to trigger a 'changed' output (e.g., 0.2).",
            "default": 0.2
          },
          "monitoringReviewThreshold": {
            "title": "Review Delta Threshold",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum new reviews to trigger a 'changed' output (e.g., 10).",
            "default": 10
          },
          "maxConcurrency": {
            "title": "Parallel Browser Tabs",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Scale speed vs resource usage. 4-8 recommended for 4GB RAM.",
            "default": 6
          },
          "enableMapOutput": {
            "title": "Generate Interactive Map",
            "type": "boolean",
            "description": "Create a 'results-map' HTML file in the Key-Value Store.",
            "default": true
          },
          "proxyConfig": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Apify Proxy settings. Residential proxies are highly recommended.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}