{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Maps Scraper: Leads, Emails & Reviews",
    "description": "Scrape Google Maps places with phone, website, email, social links, rating, reviews and a lead score. Pay only per result: $0.20 per 1,000 places, no compute fees. Grid search covers whole cities and skips duplicates.",
    "version": "0.1",
    "x-build-id": "V1mzGNjauohxAvZYz"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/solutionssmart~fast-google-map-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-solutionssmart-fast-google-map-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/solutionssmart~fast-google-map-scraper/runs": {
      "post": {
        "operationId": "runs-sync-solutionssmart-fast-google-map-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/solutionssmart~fast-google-map-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-solutionssmart-fast-google-map-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",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "list",
              "place",
              "search"
            ],
            "type": "string",
            "description": "list searches only ($0.10 per 1,000 results); place scrapes one known place ID ($0.20 per 1,000); search lists places, fetches details ($0.20 per 1,000), and optionally reviews ($0.12 per 1,000).",
            "default": "search"
          },
          "query": {
            "title": "Search query",
            "type": "string",
            "description": "Business/category query, for example 'dentists' or 'coffee shops'. Used when Search terms is empty.",
            "default": "coffee shops"
          },
          "searchTerms": {
            "title": "Search terms (optional)",
            "type": "array",
            "description": "Several queries to run in one go, for example 'restaurant', 'cafe', 'bar'. Each term is searched separately and places are deduplicated across terms. Overrides Search query when set.",
            "items": {
              "type": "string"
            }
          },
          "searchLocation": {
            "title": "📍 Location",
            "type": "string",
            "description": "Free-form location such as Berlin, Germany. Used together with the search query.",
            "default": "Berlin, Germany"
          },
          "placeId": {
            "title": "Place ID (for place mode)",
            "type": "string",
            "description": "Known Google Maps place ID. Required for place mode."
          },
          "maxPlaces": {
            "title": "Max places per search term",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum places per search term. One Google search stops at about 120-220 results; Grid search finds more by splitting the area into map tiles.",
            "default": 5
          },
          "maxConcurrency": {
            "title": "⚡ Concurrency",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Number of places to scrape in parallel. Higher values are faster but can increase blocking risk. Memory is set to 1024 MB; reduce concurrency if you encounter memory errors.",
            "default": 3
          },
          "outputMode": {
            "title": "What to save",
            "enum": [
              "placesOnly",
              "placesAndReviews",
              "allRecords"
            ],
            "type": "string",
            "description": "placesOnly saves full place records only ($0.20/1k). allRecords also saves listing rows for each place ($0.30/1k = $0.10 listing + $0.20 detail). placesAndReviews includes reviews if maxReviews > 0.",
            "default": "placesOnly"
          },
          "maxReviews": {
            "title": "Reviews per place",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum reviews to fetch for each place. Set to 0 to skip reviews. Reviews are charged at $0.12 per 1,000.",
            "default": 0
          },
          "enrichWebsites": {
            "title": "Find emails (visit websites)",
            "type": "boolean",
            "description": "Visit each place's website to extract emails and social links. Google Maps itself never lists emails, so turn this off only if you do not need them. Works in search and place mode, not list mode.",
            "default": true
          },
          "skipClosedPlaces": {
            "title": "Skip permanently closed places",
            "type": "boolean",
            "description": "Drop places Google marks as permanently closed straight from the search results, before they are charged or detail-scraped. Turn off to keep them; records always carry permanentlyClosed.",
            "default": true
          },
          "leadFilters": {
            "title": "Lead filters (optional)",
            "type": "object",
            "description": "Optional filters. Rating, review count, website and category are checked on the search results, so filtered places never cost a detail request. Phone and last review date are checked after details are fetched. Filtered places are skipped from Dataset output and reviews."
          },
          "proxyConfiguration": {
            "title": "Apify Proxy",
            "type": "object",
            "description": "Use Apify Proxy or custom proxies.",
            "default": {
              "useApifyProxy": true
            }
          },
          "gridSearch": {
            "title": "Grid search (for >200 results)",
            "type": "boolean",
            "description": "When a search returns fewer places than Max places, split the area into map tiles and search each tile, nearest to the center first, until Max places is reached. The area is the location's boundary (from OpenStreetMap), or the Custom geolocation radius. Adds search requests only when needed.",
            "default": true
          },
          "advancedLocation": {
            "title": "Advanced location (optional)",
            "type": "object",
            "description": "Optional structured location, coordinates, radius, or geometry. Normally the free-form Location field is enough."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}