{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Maps Scraper",
    "description": "Extract business leads from Google Maps with verified emails, phones & social profiles. 50+ niches (HVAC, dentists, lawyers, real estate, contractors & more). DNS/SMTP email verification. HubSpot, Salesforce & Full Contact export. HTTP-only — fast, reliable, $0.003/lead.",
    "version": "1.0",
    "x-build-id": "jkKQ72B0odXrqDpAq"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/get-leads~google-maps-scraper---best-value-for-money/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-get-leads-google-maps-scraper---best-value-for-money",
        "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/get-leads~google-maps-scraper---best-value-for-money/runs": {
      "post": {
        "operationId": "runs-sync-get-leads-google-maps-scraper---best-value-for-money",
        "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/get-leads~google-maps-scraper---best-value-for-money/run-sync": {
      "post": {
        "operationId": "run-sync-get-leads-google-maps-scraper---best-value-for-money",
        "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": {
          "businessType": {
            "title": "Business Type",
            "enum": [
              "general",
              "hvac",
              "plumber",
              "roofer",
              "electrician",
              "contractor",
              "landscaper",
              "pest_control",
              "cleaning_service",
              "solar_installer",
              "painter",
              "pool_service",
              "garage_door",
              "fencing",
              "moving_company",
              "appliance_repair",
              "dentist",
              "chiropractor",
              "medical_clinic",
              "med_spa",
              "veterinarian",
              "physical_therapy",
              "orthodontist",
              "oral_surgeon",
              "optometrist",
              "pharmacy",
              "lawyer",
              "personal_injury_lawyer",
              "criminal_defense_lawyer",
              "family_lawyer",
              "immigration_lawyer",
              "bankruptcy_lawyer",
              "real_estate_agent",
              "property_management",
              "mortgage_broker",
              "insurance_agent",
              "accountant",
              "financial_advisor",
              "restaurant",
              "bar",
              "cafe",
              "catering",
              "auto_repair",
              "auto_dealer",
              "car_detailing",
              "towing",
              "hair_salon",
              "nail_salon",
              "day_spa",
              "gym",
              "pet_grooming",
              "daycare",
              "tutoring",
              "driving_school",
              "wedding_venue",
              "wedding_photographer",
              "wedding_planner",
              "florist",
              "home_inspector",
              "tattoo_shop",
              "storage_facility",
              "laundromat",
              "printing"
            ],
            "type": "string",
            "description": "Select a business niche for auto-generated search queries. Choose 'General Business' to use your own custom queries.",
            "default": "general"
          },
          "locations": {
            "title": "Locations",
            "type": "array",
            "description": "Cities, ZIP codes, or areas to search. Queries are auto-generated from Business Type + Locations. Example: 'Miami FL', '90210', 'Downtown Chicago'",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "searchQueries": {
            "title": "Custom Search Queries",
            "type": "array",
            "description": "Custom Google Maps search queries. Use this for full control, or combine with Business Type + Locations for extra queries.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "zipCodes": {
            "title": "ZIP Codes",
            "type": "array",
            "description": "US ZIP codes to search (alternative to Locations). Auto-generates queries using the selected Business Type.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "maxResultsPerQuery": {
            "title": "Max Results Per Query",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum number of business listings to extract per search query.",
            "default": 50
          },
          "language": {
            "title": "Language",
            "enum": [
              "en",
              "es",
              "fr",
              "de",
              "it",
              "pt",
              "nl",
              "ja",
              "ko",
              "zh-CN",
              "zh-TW",
              "ar",
              "ru",
              "pl",
              "sv",
              "da",
              "no",
              "fi",
              "cs",
              "tr",
              "th",
              "vi",
              "id",
              "el",
              "he",
              "hi",
              "ro",
              "hu",
              "uk"
            ],
            "type": "string",
            "description": "Language for results (ISO 639-1). Affects business names, descriptions, and review text.",
            "default": "en"
          },
          "countryCode": {
            "title": "Country",
            "type": "string",
            "description": "Country to focus results on (ISO 3166-1 alpha-2). Affects result ordering and local relevance.",
            "default": "us"
          },
          "enrichWebsites": {
            "title": "Enrich with Website Data",
            "type": "boolean",
            "description": "Visit each business website to extract emails, social media URLs, and license numbers.",
            "default": true
          },
          "verifyEmails": {
            "title": "Verify Emails (DNS/SMTP)",
            "type": "boolean",
            "description": "Verify extracted emails using DNS MX lookup and SMTP handshake. Adds verification status fields. Slightly slower but improves data quality.",
            "default": true
          },
          "outputFormat": {
            "title": "Output Format",
            "enum": [
              "default",
              "hubspot",
              "salesforce",
              "fullcontact"
            ],
            "type": "string",
            "description": "Choose output format: 'default' (all raw fields), 'hubspot' (HubSpot CRM import), 'salesforce' (Salesforce Lead import), or 'fullcontact' (Full Contact JSON).",
            "default": "default"
          },
          "includeOpeningHours": {
            "title": "Include Opening Hours",
            "type": "boolean",
            "description": "Extract detailed opening hours for each day of the week.",
            "default": true
          },
          "includeReviewsDistribution": {
            "title": "Include Star Distribution",
            "type": "boolean",
            "description": "Fetch 1-5 star review breakdown for each place. Disabling this reduces cost by ~30% and speeds up scraping. Most lead generation use cases don't need star breakdowns.",
            "default": true
          },
          "includeImages": {
            "title": "Include Image URLs",
            "type": "boolean",
            "description": "Extract photo URLs from each place listing.",
            "default": false
          },
          "maxImages": {
            "title": "Max Images Per Place",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "Maximum number of image URLs to extract per place.",
            "default": 5
          },
          "maxEnrichmentConcurrency": {
            "title": "Enrichment Concurrency",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Number of websites to process in parallel during enrichment.",
            "default": 5
          },
          "enrichmentPages": {
            "title": "Custom Website Pages to Check",
            "type": "array",
            "description": "Override which URL paths to visit on each website. Leave empty to use niche-optimized defaults.",
            "items": {
              "type": "string"
            }
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Proxy servers to use. Residential proxies required for Google Maps.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "US"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}