{
  "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.2",
    "x-build-id": "XhxlLDuUfQMU17AmR"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/data_minds~google-maps-leads-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-data_minds-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/data_minds~google-maps-leads-scraper/runs": {
      "post": {
        "operationId": "runs-sync-data_minds-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/data_minds~google-maps-leads-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-data_minds-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": {
          "searchStringsArray": {
            "title": "🔎 Search terms",
            "type": "array",
            "description": "What to look for on Google Maps, one search per line, e.g. dentist, plumber, coffee shop. Every term is searched in the location below.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "🔗 Google Maps links",
            "type": "array",
            "description": "Optional. Google Maps place links, one per line (e.g. https://www.google.com/maps/place/...); the business behind each link is looked up and returned with its contacts.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "🔢 Max places per search",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Maximum places collected for each search term and for each link. 3 search terms with 20 here give up to 60 places.",
            "default": 10
          },
          "locationQuery": {
            "title": "📍 Location",
            "type": "string",
            "description": "City, region or address to search in, e.g. Austin, TX, USA. Leave empty to search without a location (or use the detailed location fields below)."
          },
          "countryCode": {
            "title": "📍 Country",
            "enum": [
              "us",
              "gb",
              "ca",
              "au",
              "nz",
              "ie",
              "de",
              "fr",
              "es",
              "it",
              "pt",
              "nl",
              "be",
              "ch",
              "at",
              "se",
              "no",
              "dk",
              "fi",
              "pl",
              "cz",
              "sk",
              "hu",
              "ro",
              "bg",
              "gr",
              "tr",
              "ru",
              "ua",
              "il",
              "ae",
              "sa",
              "qa",
              "kw",
              "bh",
              "om",
              "jo",
              "lb",
              "eg",
              "ma",
              "dz",
              "tn",
              "ng",
              "gh",
              "ke",
              "tz",
              "ug",
              "za",
              "in",
              "pk",
              "bd",
              "lk",
              "np",
              "cn",
              "hk",
              "tw",
              "jp",
              "kr",
              "sg",
              "my",
              "id",
              "th",
              "vn",
              "ph",
              "mx",
              "br",
              "ar",
              "cl",
              "co",
              "pe",
              "ve",
              "ec",
              "uy",
              "py",
              "bo",
              "cr",
              "pa",
              "do",
              "pr",
              "gt",
              "sv",
              "hn",
              "jm",
              "cu",
              "is",
              "lu",
              "mt",
              "cy",
              "ee",
              "lv",
              "lt",
              "si",
              "hr",
              "rs",
              "ba",
              "mk",
              "al",
              "md",
              "by",
              "ge",
              "am",
              "az",
              "kz",
              "uz",
              "iq",
              "ir",
              "af",
              "mm",
              "kh",
              "la",
              "mn",
              "et",
              "sn",
              "ci",
              "cm",
              "ao",
              "mz",
              "zm",
              "zw",
              "bw",
              "na",
              "mu"
            ],
            "type": "string",
            "description": "Country version of the search results.",
            "default": "us"
          },
          "language": {
            "title": "🌍 Language",
            "enum": [
              "en",
              "es",
              "fr",
              "de",
              "it",
              "pt",
              "nl",
              "sv",
              "no",
              "da",
              "fi",
              "pl",
              "cs",
              "sk",
              "hu",
              "ro",
              "bg",
              "el",
              "tr",
              "ru",
              "uk",
              "he",
              "ar",
              "fa",
              "hi",
              "bn",
              "ur",
              "ta",
              "te",
              "mr",
              "gu",
              "th",
              "vi",
              "id",
              "ms",
              "fil",
              "zh-CN",
              "zh-TW",
              "ja",
              "ko",
              "hr",
              "sr",
              "sl",
              "lt",
              "lv",
              "et",
              "ca",
              "sw",
              "af"
            ],
            "type": "string",
            "description": "Language of the results (category names, hours, opening text).",
            "default": "en"
          },
          "scrapeWebsiteContacts": {
            "title": "✅ Find contacts on business websites",
            "type": "boolean",
            "description": "Visit each business website (home page plus contact and about pages) and collect emails, extra phone numbers and social profiles.",
            "default": true
          },
          "scrapePlaceDetailPage": {
            "title": "📄 Open each place's detail page",
            "type": "boolean",
            "description": "Adds the star-by-star review counts, photo count, plus code and the unclaimed flag. Makes the run slower.",
            "default": false
          },
          "scrapeTableReservationProvider": {
            "title": "🍽️ Table reservation links",
            "type": "boolean",
            "description": "Adds the table-booking provider and link (OpenTable, Resy, the restaurant's own page...) found on each place's Google page. Makes the run slower.",
            "default": false
          },
          "scrapeOrderOnline": {
            "title": "🛵 Order online providers",
            "type": "boolean",
            "description": "Adds the pickup and delivery ordering providers (Toast, DoorDash, Uber Eats...) with their order links for restaurants. Makes the run slower.",
            "default": false
          },
          "scrapeSocialMediaProfiles": {
            "title": "👥 Social profile details",
            "type": "object",
            "description": "For the profile links found on each business website, add public details: name, description, followers (and following and posts on Instagram). Needs the website contacts option.",
            "properties": {
              "facebooks": {
                "title": "Facebook",
                "type": "boolean",
                "default": false,
                "description": "Add public Facebook profile details (name, description, followers)."
              },
              "instagrams": {
                "title": "Instagram",
                "type": "boolean",
                "default": false,
                "description": "Add public Instagram profile details (name, description, followers)."
              },
              "youtubes": {
                "title": "YouTube",
                "type": "boolean",
                "default": false,
                "description": "Add public YouTube profile details (name, description, followers)."
              }
            },
            "default": {
              "facebooks": false,
              "instagrams": false,
              "youtubes": false
            }
          },
          "categoryFilterWords": {
            "title": "🎯 Categories",
            "type": "array",
            "description": "Only keep places whose category contains one of these words, e.g. dentist, orthodontist.",
            "items": {
              "type": "string"
            }
          },
          "searchMatching": {
            "title": "🎯 Name matching",
            "enum": [
              "all",
              "only_includes",
              "only_exact"
            ],
            "type": "string",
            "description": "Keep every place Google returns, only names containing the search term, or only exact name matches.",
            "default": "all"
          },
          "placeMinimumStars": {
            "title": "🎯 Minimum rating",
            "enum": [
              "",
              "two",
              "twoAndHalf",
              "three",
              "threeAndHalf",
              "four",
              "fourAndHalf"
            ],
            "type": "string",
            "description": "Skip places rated below this.",
            "default": ""
          },
          "website": {
            "title": "🎯 Website",
            "enum": [
              "allPlaces",
              "withWebsite",
              "withoutWebsite"
            ],
            "type": "string",
            "description": "Keep all places, only places that have a website, or only places without one (useful to find businesses that need a site).",
            "default": "allPlaces"
          },
          "skipClosedPlaces": {
            "title": "🎯 Skip closed places",
            "type": "boolean",
            "description": "Skip places that are permanently or temporarily closed.",
            "default": false
          },
          "contactMaxSubpages": {
            "title": "🔢 Pages per website",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "How many extra contact or about pages to open on each business website besides its home page. 0 reads only the home page.",
            "default": 3
          },
          "skipBigChains": {
            "title": "🎯 Skip big chains",
            "type": "boolean",
            "description": "Do not search the websites of large fast-food and coffee chains (they rarely give a useful direct contact).",
            "default": true
          },
          "verifyEmails": {
            "title": "✅ Check emails",
            "type": "boolean",
            "description": "Check every found email address and add the result as emailsVerification.",
            "default": false
          },
          "city": {
            "title": "📍 City",
            "type": "string",
            "description": "City to search in."
          },
          "state": {
            "title": "📍 State or region",
            "type": "string",
            "description": "State, province or region to search in."
          },
          "county": {
            "title": "📍 County",
            "type": "string",
            "description": "County or district to search in."
          },
          "postalCode": {
            "title": "📍 Postal code",
            "type": "string",
            "description": "Postal or ZIP code to search in."
          },
          "customGeolocation": {
            "title": "🛰️ Custom search area",
            "type": "object",
            "description": "Exact search area as GeoJSON with [longitude, latitude] order. Point with radiusKm (e.g. {\"type\":\"Point\",\"coordinates\":[-0.1278,51.5074],\"radiusKm\":3}), Polygon or MultiPolygon. When set it replaces the location text."
          },
          "maxConcurrency": {
            "title": "⚡ Parallel leads",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many places are processed at the same time for each search.",
            "default": 5
          },
          "maxRetries": {
            "title": "🔁 Retries per request",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many times a failed request is retried.",
            "default": 3
          },
          "requestDelaySeconds": {
            "title": "🐢 Delay between requests (seconds)",
            "minimum": 0,
            "maximum": 10,
            "type": "number",
            "description": "A short pause before each Google request. Raise it if some places fail to load.",
            "default": 0.8
          },
          "proxyConfiguration": {
            "title": "🌐 Proxy",
            "type": "object",
            "description": "Optional network settings for the run."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}