{
  "openapi": "3.0.1",
  "info": {
    "title": "📍 Google Maps Leads Scraper",
    "description": "Scrape Google Maps into ready-to-use business leads: name, address, phone, website, rating, reviews, hours, categories and socials. Search by term and location or paste Maps URLs. Rich filters, no API key, results streamed live.",
    "version": "1.0",
    "x-build-id": "flch3EBFcfoafcbiD"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/citrine_venus~google-maps-leads-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-citrine_venus-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/citrine_venus~google-maps-leads-scraper/runs": {
      "post": {
        "operationId": "runs-sync-citrine_venus-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/citrine_venus~google-maps-leads-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-citrine_venus-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",
        "required": [
          "searchStringsArray"
        ],
        "properties": {
          "searchStringsArray": {
            "title": "🔎 Search terms",
            "type": "array",
            "description": "🗺️ What to look for — for example `restaurant`, `dentist`, `plumber near me`, `marketing agency`. Every term is searched separately.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "locationQuery": {
            "title": "🌍 Location",
            "type": "string",
            "description": "📌 Free-text place to search in — `Austin, Texas`, `Berlin, Germany`, `Manhattan, NYC`. Leave empty to search worldwide (or use the precise fields below).",
            "default": ""
          },
          "maxCrawledPlacesPerSearch": {
            "title": "📬 Places per search term",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "🎁 How many businesses to collect for each search term. Start with 10–20 for a quick sample, raise it for a full harvest.",
            "default": 20
          },
          "startUrls": {
            "title": "🔗 Google Maps URLs (optional)",
            "type": "array",
            "description": "📎 Paste direct Google Maps place links to collect specific businesses. Bulk input supported — one URL per line, or upload a file.",
            "default": [],
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "language": {
            "title": "🗣️ Results language",
            "enum": [
              "en",
              "es",
              "fr",
              "de",
              "it",
              "pt",
              "nl",
              "pl",
              "tr",
              "ru",
              "ar",
              "hi",
              "id",
              "ja",
              "ko",
              "zh-CN"
            ],
            "type": "string",
            "description": "🌐 Language for names, categories and descriptions.",
            "default": "en"
          },
          "countryCode": {
            "title": "🌎 Country",
            "enum": [
              "us",
              "gb",
              "ca",
              "au",
              "de",
              "fr",
              "es",
              "it",
              "nl",
              "se",
              "pl",
              "br",
              "mx",
              "in",
              "ae",
              "za",
              "sg",
              "jp"
            ],
            "type": "string",
            "description": "🧭 Which country's Google Maps view to search from.",
            "default": "us"
          },
          "city": {
            "title": "🏙️ City",
            "type": "string",
            "description": "🏙️ City name — for example `Miami`.",
            "default": ""
          },
          "state": {
            "title": "🗺️ State / region",
            "type": "string",
            "description": "🗺️ State, province or region — for example `Florida`.",
            "default": ""
          },
          "county": {
            "title": "📐 County",
            "type": "string",
            "description": "📐 County or district, when you need to narrow it further.",
            "default": ""
          },
          "postalCode": {
            "title": "📮 Postal code",
            "type": "string",
            "description": "📮 ZIP / postal code — the tightest area filter.",
            "default": ""
          },
          "categoryFilterWords": {
            "title": "🏷️ Category keywords",
            "type": "array",
            "description": "🏷️ Keep a business only when one of these words appears in its Google categories or description — for example `bakery`, `law firm`, `gym`.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "searchMatching": {
            "title": "🔤 Name matching",
            "enum": [
              "all",
              "only_includes",
              "only_exact"
            ],
            "type": "string",
            "description": "🔍 How strictly the business name must match your search term.",
            "default": "all"
          },
          "placeMinimumStars": {
            "title": "⭐ Minimum rating",
            "enum": [
              "",
              "two",
              "twoAndHalf",
              "three",
              "threeAndHalf",
              "four",
              "fourAndHalf"
            ],
            "type": "string",
            "description": "⭐ Drop businesses rated below this. Unrated places are dropped too when a minimum is set.",
            "default": ""
          },
          "website": {
            "title": "🌐 Website filter",
            "enum": [
              "allPlaces",
              "withWebsite",
              "withoutWebsite"
            ],
            "type": "string",
            "description": "🌐 Businesses with a website give you emails and socials. Businesses without one are perfect web-design prospects.",
            "default": "allPlaces"
          },
          "skipClosedPlaces": {
            "title": "🚪 Skip closed businesses",
            "type": "boolean",
            "description": "🚪 Leave out anything marked permanently or temporarily closed.",
            "default": false
          },
          "scrapeWebsiteContacts": {
            "title": "📧 Collect emails & social profiles",
            "type": "boolean",
            "description": "📬 Visit each business website and pull out email addresses, phone numbers, LinkedIn, Instagram, Facebook, X, YouTube, TikTok, Pinterest and Discord links.",
            "default": true
          },
          "contactMaxSubpages": {
            "title": "📄 Extra pages per website",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "🔍 How many extra contact/about pages to open per website. More pages find more emails and take a little longer.",
            "default": 3
          },
          "skipBigChains": {
            "title": "🏬 Skip big chain websites",
            "type": "boolean",
            "description": "🏬 Global chains rarely publish a useful contact email. Keep this on to spend the time on real local prospects.",
            "default": true
          },
          "verifyEmails": {
            "title": "✅ Verify email addresses",
            "type": "boolean",
            "description": "🧪 Check every email found — disposable domain, free-mail, role address, mail-server lookup and a deliverability probe. No third-party key needed.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "🌐 Proxy configuration",
            "type": "object",
            "description": "🚦 By default the run starts on a direct connection and automatically switches to a datacenter and then a residential route only if Google pushes back. Pick your own route here to override that.",
            "default": {
              "useApifyProxy": false
            }
          },
          "browserFallback": {
            "title": "🧭 Browser rescue",
            "type": "boolean",
            "description": "🧭 As a last resort, retry stubborn requests inside a real browser session.",
            "default": true
          },
          "maxConcurrency": {
            "title": "⚡ Businesses in parallel",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "🏎️ How many business websites to open at the same time.",
            "default": 5
          },
          "requestDelaySeconds": {
            "title": "🐢 Delay between requests (seconds)",
            "minimum": 0,
            "maximum": 10,
            "type": "number",
            "description": "🕰️ A small pause keeps the run polite and stable.",
            "default": 0.8
          },
          "maxRetries": {
            "title": "🔁 Retries per request",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "🛡️ Attempts before the run switches to the next network route.",
            "default": 3
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}