{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Maps Lead Scraper: Places, Emails & Reviews",
    "description": "Scrape Google Maps places by keyword and location: name, category, address, phone, website, rating, reviews count, hours, place ID. Optional website emails and socials plus a 0-100 lead score that flags junk listings. One flat price per place.",
    "version": "1.0",
    "x-build-id": "YXj6JECRpTdxChUOH"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/mosaicked_sponge~google-maps-leads-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-mosaicked_sponge-google-maps-leads-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/mosaicked_sponge~google-maps-leads-scraper/runs": {
      "post": {
        "operationId": "runs-sync-mosaicked_sponge-google-maps-leads-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/mosaicked_sponge~google-maps-leads-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-mosaicked_sponge-google-maps-leads-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": {
          "searchTerms": {
            "title": "Search terms",
            "type": "array",
            "description": "What you would type into Google Maps, one per line, e.g. \"dentist\", \"roofing contractor\", \"coffee shop\". Each term is searched in the location below.",
            "items": {
              "type": "string"
            }
          },
          "location": {
            "title": "Location",
            "type": "string",
            "description": "City, region, ZIP code or address, e.g. \"Miami, FL\", \"Austin, TX 78701\", \"Manchester, UK\". The run checks the location first: if Google Maps does not know it, you get a free \"location_not_found\" row instead of random results."
          },
          "maxPlacesPerSearch": {
            "title": "Max places per search term",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "How many places to save for each search term (Google usually stops at 120-200 for a dense city; small towns end earlier). You only pay for places actually saved.",
            "default": 20
          },
          "maxPlacesTotal": {
            "title": "Max places in total (0 = no limit)",
            "minimum": 0,
            "type": "integer",
            "description": "Hard cap across all search terms in this run.",
            "default": 0
          },
          "enrichContacts": {
            "title": "Find emails & social profiles on each website",
            "type": "boolean",
            "description": "Visit each business website (up to a few contact/about pages) and add emails, website phones and Facebook/Instagram/LinkedIn/X/YouTube/TikTok links. Same flat price per place, no add-on fee. Turn off for faster, places-only runs.",
            "default": true
          },
          "minLeadScore": {
            "title": "Minimum lead score (0 = keep all)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Only save places with at least this lead score (0-100). Places below it are not saved and not charged.",
            "default": 0
          },
          "maxPagesPerWebsite": {
            "title": "Pages to scan per website",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Homepage plus the most likely contact pages. Higher finds a few more emails but is slower.",
            "default": 4
          },
          "includeReviews": {
            "title": "Include top reviews",
            "type": "boolean",
            "description": "Add the most relevant Google reviews (text, stars, date, reviewer, owner reply) and the 1-5 star histogram for each place. Up to 8 reviews per place. Included in the same flat price.",
            "default": false
          },
          "maxReviewsPerPlace": {
            "title": "Reviews per place",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "1-8 top reviews per place (only used when \"Include top reviews\" is on).",
            "default": 5
          },
          "minRating": {
            "title": "Minimum star rating",
            "enum": [
              "0",
              "3",
              "3.5",
              "4",
              "4.5"
            ],
            "type": "string",
            "description": "Skip places rated below this.",
            "default": "0"
          },
          "onlyWithWebsite": {
            "title": "Only places with a website",
            "type": "boolean",
            "description": "Skip places that have no website on Google Maps.",
            "default": false
          },
          "onlyWithPhone": {
            "title": "Only places with a phone number",
            "type": "boolean",
            "description": "Skip places with no phone number on Google Maps.",
            "default": false
          },
          "skipClosed": {
            "title": "Skip closed businesses",
            "type": "boolean",
            "description": "Skip places Google marks as permanently or temporarily closed.",
            "default": true
          },
          "latitude": {
            "title": "Latitude (optional)",
            "type": "string",
            "description": "Search around exact coordinates instead of a location name, e.g. 25.7617. Needs longitude too. Overrides Location."
          },
          "longitude": {
            "title": "Longitude (optional)",
            "type": "string",
            "description": "e.g. -80.1918"
          },
          "zoom": {
            "title": "Map zoom for coordinates",
            "minimum": 3,
            "maximum": 20,
            "type": "integer",
            "description": "Only with latitude/longitude. 11 = whole city, 13 = district (default), 15 = a few blocks.",
            "default": 13
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Google interface language for categories and hours, e.g. en, es, de.",
            "default": "en"
          },
          "countryCode": {
            "title": "Google country",
            "type": "string",
            "description": "Two-letter country code Google should assume, e.g. us, gb, ca, au.",
            "default": "us"
          },
          "proxyConfiguration": {
            "title": "Proxy (optional fallback)",
            "type": "object",
            "description": "Not needed for normal runs: the Actor connects directly. If Google throttles the direct connection, it switches to this proxy.",
            "default": {
              "useApifyProxy": false
            }
          },
          "autoProxyFallback": {
            "title": "Automatic residential fallback",
            "type": "boolean",
            "description": "If Google throttles the run, retry through Apify residential proxy automatically. Included in the price.",
            "default": 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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}