{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Maps Email Extractor | Business Email List | $1 / 1K",
    "description": "Build a business email list from Google Maps: local business leads with name, category, address, phone, website, rating, plus emails (with source page), extra phones and LinkedIn/Facebook/Instagram/X/YouTube/TikTok. One flat CRM-ready row. $0.50/1K leads + $0.50/1K emails.",
    "version": "1.0",
    "x-build-id": "Dj0goHteuBNcNJsO7"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/hridayrungta~google-maps-email-extractor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-hridayrungta-google-maps-email-extractor",
        "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/hridayrungta~google-maps-email-extractor/runs": {
      "post": {
        "operationId": "runs-sync-hridayrungta-google-maps-email-extractor",
        "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/hridayrungta~google-maps-email-extractor/run-sync": {
      "post": {
        "operationId": "run-sync-hridayrungta-google-maps-email-extractor",
        "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": "Business type or keyword",
            "type": "array",
            "description": "What kind of businesses you want as leads, one per line: dentist, roofing contractor, marketing agency, restaurant, yoga studio. Each term is searched in every location below.",
            "items": {
              "type": "string"
            }
          },
          "locations": {
            "title": "Locations",
            "type": "array",
            "description": "Cities, regions, states or countries, one per line (Austin, TX, USA / Manchester, UK / Bavaria, Germany). Google geocodes the text itself. A small area gives local results; for a whole city or region also set a radius below.",
            "items": {
              "type": "string"
            }
          },
          "maxLeads": {
            "title": "Max leads in total",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Cost cap for the whole run: at most this many lead rows are written (and charged) across all searches.",
            "default": 200
          },
          "maxLeadsPerSearch": {
            "title": "Max leads per search",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop each business type + location pair after this many leads. One Google Maps window holds at most about 230 places; for more, set a radius so the area is covered with many windows.",
            "default": 200
          },
          "onlyWithWebsite": {
            "title": "Only businesses with a website",
            "type": "boolean",
            "description": "Skip businesses that list no website on Google Maps. Skipped places are free.",
            "default": false
          },
          "onlyWithEmail": {
            "title": "Only leads with an email",
            "type": "boolean",
            "description": "Write only businesses whose website shows at least one email address. Leads without an email are dropped and never charged. Typically 40-60% of businesses with a website publish an email, so the run looks at about twice as many places.",
            "default": false
          },
          "onlyWithPhone": {
            "title": "Only businesses with a phone number",
            "type": "boolean",
            "description": "Skip businesses that list no phone number on Google Maps.",
            "default": false
          },
          "dedupeByDomain": {
            "title": "One lead per website (de-duplicate chains)",
            "type": "boolean",
            "description": "Keep only the first location of businesses that share a website (chains and franchises), so the list has one row per company and no repeated emails. Places are always de-duplicated by Google place ID.",
            "default": true
          },
          "maxPagesPerWebsite": {
            "title": "Website pages to check per business",
            "minimum": 1,
            "maximum": 6,
            "type": "integer",
            "description": "Enrichment depth: the homepage plus contact, about, team and imprint pages, up to this many pages in total. 1 = homepage only (fastest), 4 = recommended, 6 = deepest.",
            "default": 4
          },
          "radiusKm": {
            "title": "Cover a whole area (radius, km)",
            "minimum": 0,
            "maximum": 200,
            "type": "integer",
            "description": "0 = one Google Maps window per search (up to about 230 places). Above 0 the Actor tiles the area around the location with many overlapping windows and de-duplicates, so a whole city or metro area can be covered. Only places inside the radius are kept.",
            "default": 0
          },
          "latitude": {
            "title": "Custom centre: latitude",
            "type": "number",
            "description": "Optional. Search around exact coordinates instead of (or as well as) a text location. Use together with longitude and a radius."
          },
          "longitude": {
            "title": "Custom centre: longitude",
            "type": "number",
            "description": "Optional. Longitude of the custom centre."
          },
          "startUrls": {
            "title": "Google Maps search URLs",
            "type": "array",
            "description": "Optional. Paste Google Maps search pages (google.com/maps/search/plumber+in+leeds/@53.8,-1.55,13z). The search text and map position are read from the URL. Single place pages and short links are not supported.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "minRating": {
            "title": "Minimum rating",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Keep only businesses with at least this Google star rating (0 = no filter). Filters never cost extra.",
            "default": 0
          },
          "minReviews": {
            "title": "Minimum number of reviews",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only businesses with at least this many Google reviews (0 = no filter).",
            "default": 0
          },
          "categoryFilter": {
            "title": "Google category must contain",
            "type": "array",
            "description": "Optional, one per line. Keep only places whose Google category contains one of these words (for example: dentist, orthodontist). Case-insensitive.",
            "items": {
              "type": "string"
            }
          },
          "tileZoom": {
            "title": "Tile zoom (area mode)",
            "minimum": 12,
            "maximum": 17,
            "type": "integer",
            "description": "How small each window is when a radius is set: 15 = about 2 km windows (balanced), 16 = about 1 km (dense city centres, more requests), 14 = about 4 km (rural areas).",
            "default": 15
          },
          "maxTilesPerSearch": {
            "title": "Max windows per search (area mode)",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Safety cap on how many map windows are requested for one search when a radius is set. Searching stops early after 12 windows in a row with nothing new.",
            "default": 30
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Language of the Google Maps interface: category names and address format follow it (en, de, fr, es, pt, it, ja...).",
            "default": "en"
          },
          "countryCode": {
            "title": "Country (Google region)",
            "type": "string",
            "description": "2-letter region code sent to Google (us, gb, de, in, au...). It nudges ranking and result language toward that country.",
            "default": "us"
          },
          "useProxy": {
            "title": "Proxy",
            "enum": [
              "onBlock",
              "always",
              "never"
            ],
            "type": "string",
            "description": "\"On block\" goes direct and falls back to Apify datacenter proxy (fresh IP per attempt) only when Google Maps or a website refuses a request. \"Always\" uses the proxy for every Google Maps request (slower). \"Never\" never uses a proxy.",
            "default": "onBlock"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}