{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Maps Scraper - Cheap",
    "description": "Extract Google Maps business leads globally with phones, websites, ratings, categories, opening hours, images, popular times, company contacts, and optional reviews. Launch pricing available for early users.",
    "version": "0.0",
    "x-build-id": "pduuDPU06dR8g3Ct3"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/fabri-lab~google-maps-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-fabri-lab-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/fabri-lab~google-maps-scraper/runs": {
      "post": {
        "operationId": "runs-sync-fabri-lab-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/fabri-lab~google-maps-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-fabri-lab-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 term(s)",
            "type": "array",
            "description": "Business keywords to search for, e.g. restaurant, dentist, hotel.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "locations": {
            "title": "📍 Location (use only one location per run)",
            "type": "array",
            "description": "City, region, or country to combine with search terms. Multiple values are supported through API/bulk mode.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxPlaces": {
            "title": "💯 Number of places to extract (per each search term or URL)",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum number of unique businesses to extract per generated search request.",
            "default": 1
          },
          "language": {
            "title": "🌍 Language",
            "enum": [
              "en",
              "tr",
              "de",
              "fr",
              "es",
              "it",
              "pt",
              "nl",
              "ar",
              "ja",
              "ko",
              "zh-CN"
            ],
            "type": "string",
            "description": "Google Maps UI language. English improves parser consistency.",
            "default": "en"
          },
          "countryCode": {
            "title": "Country code",
            "type": "string",
            "description": "Optional two-letter Google gl country code, e.g. US, GB, TR.",
            "default": ""
          },
          "categories": {
            "title": "Business categories",
            "type": "array",
            "description": "Optional category terms to combine with each search term. If search terms are empty, categories become the search terms.",
            "items": {
              "type": "string"
            }
          },
          "searchFilterKeywords": {
            "title": "Extra search filter keywords",
            "type": "array",
            "description": "Additional keywords appended to the Google Maps query, e.g. open now, 24 hours, wheelchair accessible.",
            "items": {
              "type": "string"
            }
          },
          "sortBy": {
            "title": "Sort preference",
            "enum": [
              "relevance",
              "rating",
              "reviews"
            ],
            "type": "string",
            "description": "Best-effort sort preference. Relevance is native Google order; rating/reviews are used as filter metadata for future sorting workflows.",
            "default": "relevance"
          },
          "minRating": {
            "title": "Minimum rating",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Skip places below this rating after extraction."
          },
          "minReviews": {
            "title": "Minimum review count",
            "minimum": 0,
            "type": "integer",
            "description": "Skip places with fewer visible reviews after extraction."
          },
          "openNowOnly": {
            "title": "Open now only",
            "type": "boolean",
            "description": "Append open-now intent to the search and skip closed places when open status is visible.",
            "default": false
          },
          "requireWebsite": {
            "title": "Only places with website",
            "type": "boolean",
            "description": "Skip places without a visible website.",
            "default": false
          },
          "requirePhone": {
            "title": "Only places with phone",
            "type": "boolean",
            "description": "Skip places without a visible phone number.",
            "default": false
          },
          "onlyClaimed": {
            "title": "Only claimed / verified places",
            "type": "boolean",
            "description": "Best-effort filter using visible claimed/verified labels.",
            "default": false
          },
          "priceLevels": {
            "title": "Price levels",
            "type": "array",
            "description": "Keep only places with matching visible price level when Google Maps shows it.",
            "items": {
              "type": "string"
            }
          },
          "includeAdditionalDetails": {
            "title": "Extract additional place details",
            "type": "boolean",
            "description": "Enable rich visible place details beyond base lead fields.",
            "default": false
          },
          "includePopularTimes": {
            "title": "Include popular times / live busyness",
            "type": "boolean",
            "description": "Collect visible popular-times labels when present.",
            "default": false
          },
          "includePeopleAlsoSearch": {
            "title": "Include related / nearby businesses",
            "type": "boolean",
            "description": "Collect visible related Google Maps business links.",
            "default": false
          },
          "includeCompanyContacts": {
            "title": "Extract company contacts from website",
            "type": "boolean",
            "description": "Extract public emails, social profiles, and contact page URLs from the business website.",
            "default": false
          },
          "includeBusinessLeads": {
            "title": "Extract business lead candidates",
            "type": "boolean",
            "description": "Extract simple public lead candidates from business website pages.",
            "default": false
          },
          "includeReviews": {
            "title": "Include reviews",
            "type": "boolean",
            "description": "Extract visible Google Maps reviews.",
            "default": false
          },
          "maxReviewsPerPlace": {
            "title": "Maximum reviews per place",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum visible reviews to extract per business when reviews are enabled.",
            "default": 20
          },
          "reviewSort": {
            "title": "Review sort",
            "enum": [
              "relevance",
              "newest",
              "highest",
              "lowest"
            ],
            "type": "string",
            "description": "Requested Google Maps review sort mode.",
            "default": "relevance"
          },
          "includeReviewerInfo": {
            "title": "Include reviewer public profile info",
            "type": "boolean",
            "description": "Include reviewer names/profile links/avatar URLs when publicly visible.",
            "default": false
          },
          "includePhotos": {
            "title": "Include images",
            "type": "boolean",
            "description": "Extract public photo URLs visible on the place page.",
            "default": false
          },
          "maxPhotosPerPlace": {
            "title": "Maximum images per place",
            "minimum": 0,
            "maximum": 200,
            "type": "integer",
            "description": "Maximum public photo URLs to collect per business.",
            "default": 20
          },
          "geolocation": {
            "title": "Center geolocation",
            "type": "object",
            "description": "Optional map center used to build viewport searches.",
            "properties": {
              "latitude": {
                "title": "Latitude",
                "type": "number",
                "description": "Center latitude.",
                "minimum": -90,
                "maximum": 90
              },
              "longitude": {
                "title": "Longitude",
                "type": "number",
                "description": "Center longitude.",
                "minimum": -180,
                "maximum": 180
              },
              "zoom": {
                "title": "Zoom",
                "type": "integer",
                "description": "Google Maps zoom level.",
                "minimum": 3,
                "maximum": 21
              },
              "radiusMeters": {
                "title": "Radius meters",
                "type": "integer",
                "description": "Used to estimate zoom when zoom is not provided.",
                "minimum": 0,
                "maximum": 100000
              }
            },
            "additionalProperties": false
          },
          "polygons": {
            "title": "Polygon areas",
            "type": "array",
            "description": "Polygon objects with a name and coordinates array."
          },
          "polygonGridPoints": {
            "title": "Polygon grid points",
            "minimum": 1,
            "maximum": 25,
            "type": "integer",
            "description": "Maximum search grid points generated per polygon.",
            "default": 5
          },
          "startUrls": {
            "title": "Google Maps URLs",
            "type": "array",
            "description": "Google Maps search or place URLs.",
            "default": [
              {
                "url": "https://www.google.com/maps/place/Empire+State+Building/@40.7484405,-73.9856644,17z"
              }
            ],
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "placeIds": {
            "title": "Google Maps place IDs",
            "type": "array",
            "description": "Google Maps place IDs to scrape directly.",
            "items": {
              "type": "string"
            }
          },
          "browseWithoutSearchTerms": {
            "title": "Browse without search terms",
            "type": "boolean",
            "description": "Enable only when a location, geolocation, or polygon is provided.",
            "default": false
          },
          "maxConcurrency": {
            "title": "Maximum concurrency",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Browser page concurrency. Keep modest for fewer blocks.",
            "default": 3
          },
          "navigationTimeoutSecs": {
            "title": "Navigation timeout",
            "minimum": 10,
            "maximum": 600,
            "type": "integer",
            "description": "Navigation timeout in seconds.",
            "default": 60
          },
          "requestHandlerTimeoutSecs": {
            "title": "Request handler timeout",
            "minimum": 30,
            "maximum": 3600,
            "type": "integer",
            "description": "Timeout for a single search or place page in seconds.",
            "default": 120
          },
          "forceLiveScrape": {
            "title": "Force live scrape",
            "type": "boolean",
            "description": "Bypass the fast platform health-check behavior for prefilled/default input values.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional Apify Proxy configuration.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}