{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Maps Scraper & Email Extractor (B2B Lead Generator)",
    "description": "The ultimate Google Maps scraper for B2B lead generation. Extract local businesses, phone numbers, social media profiles, and SMTP-verified emails. Export directly to CSV/JSON. Pay only for valid leads!",
    "version": "1.0",
    "x-build-id": "TVULX13NB09e2f5Zb"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/intelscrape~google-maps-lead-generator-v2/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-intelscrape-google-maps-lead-generator-v2",
        "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/intelscrape~google-maps-lead-generator-v2/runs": {
      "post": {
        "operationId": "runs-sync-intelscrape-google-maps-lead-generator-v2",
        "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/intelscrape~google-maps-lead-generator-v2/run-sync": {
      "post": {
        "operationId": "run-sync-intelscrape-google-maps-lead-generator-v2",
        "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": [
          "searchQueries",
          "targetCity",
          "targetState"
        ],
        "properties": {
          "searchQueries": {
            "title": "🔍 Search Queries (One per line)",
            "type": "string",
            "description": "[AI AGENTS: MUST be a single string containing multiple queries separated by newline characters (\\n). DO NOT PASS AN ARRAY.] Simply paste the exact searches you want to make, one per line. We will scrape Google Maps for every single one. Examples:\ndentists in Miami FL\nroofing companies near Austin TX"
          },
          "targetCity": {
            "title": "🏙️ Target City",
            "type": "string",
            "description": "Enter the exact City you want to target (e.g. 'Greenville'). This enforces strict filtering to prevent out-of-bounds results.",
            "default": ""
          },
          "targetState": {
            "title": "🗺️ Target State",
            "enum": [
              "AL",
              "AK",
              "AZ",
              "AR",
              "CA",
              "CO",
              "CT",
              "DE",
              "FL",
              "GA",
              "HI",
              "ID",
              "IL",
              "IN",
              "IA",
              "KS",
              "KY",
              "LA",
              "ME",
              "MD",
              "MA",
              "MI",
              "MN",
              "MS",
              "MO",
              "MT",
              "NE",
              "NV",
              "NH",
              "NJ",
              "NM",
              "NY",
              "NC",
              "ND",
              "OH",
              "OK",
              "OR",
              "PA",
              "RI",
              "SC",
              "SD",
              "TN",
              "TX",
              "UT",
              "VT",
              "VA",
              "WA",
              "WV",
              "WI",
              "WY",
              "Outside US / International"
            ],
            "type": "string",
            "description": "Select the State.",
            "default": "NC"
          },
          "maxResults": {
            "title": "Max Businesses Per Query",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "How many businesses do you want to extract per query? To get ALL results in an area, set this to 200 or 500. Note: If Delta Mode is ON, previously scraped leads will be subtracted from this total limit.",
            "default": 20
          },
          "dataTier": {
            "title": "Data Tier",
            "enum": [
              "Listings Only ($30 / 1k)",
              "Listings + Verified Email & Phone ($30 / 1k)"
            ],
            "type": "string",
            "description": "Select the level of data enrichment.",
            "default": "Listings + Verified Email & Phone ($30 / 1k)"
          },
          "newLeadsOnly": {
            "title": "🆕 New Leads Only (Delta Mode)",
            "type": "boolean",
            "description": "If enabled, we will skip businesses we've already extracted for you to prevent duplicate charges. Note: If this is ON, your total new leads will be your Max Results MINUS any old leads skipped. Turn OFF to aggressively pull everything from scratch.",
            "default": true
          },
          "enrichSocial": {
            "title": "📱 Find Social Media Links",
            "type": "boolean",
            "description": "Extract Facebook, Instagram, LinkedIn, Twitter, YouTube, and TikTok links from each business website.",
            "default": true
          },
          "useScraperApi": {
            "title": "🛡️ Use ScraperAPI for Emails",
            "type": "boolean",
            "description": "Route website email-scraping through ScraperAPI to bypass bot protection and lift the email hit rate.",
            "default": true
          },
          "scraperApiKey": {
            "title": "ScraperAPI Key (Optional)",
            "type": "string",
            "description": "Your ScraperAPI key. If left blank, we will attempt to use the developer default if configured."
          },
          "scrapeContactPages": {
            "title": "🔎 Deep Scan Contact Pages",
            "type": "boolean",
            "description": "Follow /contact, /about, and /team pages to find hidden email addresses. Slower but finds 30% more emails.",
            "default": true
          },
          "language": {
            "title": "Language",
            "enum": [
              "en",
              "es",
              "fr",
              "de",
              "pt",
              "it",
              "ja",
              "ko",
              "zh",
              "ar",
              "hi",
              "ru"
            ],
            "type": "string",
            "description": "Google Maps language for results.",
            "default": "en"
          },
          "countryCode": {
            "title": "Country",
            "enum": [
              "",
              "us",
              "uk",
              "ca",
              "au",
              "de",
              "fr",
              "es",
              "it",
              "br",
              "mx",
              "in",
              "jp"
            ],
            "type": "string",
            "description": "Limit results to a specific country.",
            "default": ""
          },
          "verifierProvider": {
            "title": "Verification Provider (Optional)",
            "enum": [
              "default",
              "millionverifier",
              "zerobounce"
            ],
            "type": "string",
            "description": "We cover verification costs by default. If you prefer to use your own account, select the provider.",
            "default": "default"
          },
          "apiKey": {
            "title": "API Key (Optional)",
            "type": "string",
            "description": "Your API key for the selected verification provider. Leave blank to use our default verification."
          },
          "csvUrl": {
            "title": "📄 Bulk CSV Upload (URL)",
            "type": "string",
            "description": "Provide a link to a raw CSV file (e.g. Google Sheets Export) containing 'Name' or 'Query' headers to process huge lists automatically."
          },
          "webhookUrl": {
            "title": "Webhook URL",
            "type": "string",
            "description": "Auto-send results to Zapier, Make.com, or your CRM when done."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}