{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Maps Email Extractor — Local Business Emails",
    "description": "Local business email leads from Google Maps. Soft CTA to contact-info deep crawl / no-website leads / Skip Trace.",
    "version": "1.0",
    "x-build-id": "yhuljDXQ1ccgUs0Gb"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/intelscrape~google-maps-email-extractor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-intelscrape-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/intelscrape~google-maps-email-extractor/runs": {
      "post": {
        "operationId": "runs-sync-intelscrape-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/intelscrape~google-maps-email-extractor/run-sync": {
      "post": {
        "operationId": "run-sync-intelscrape-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": {
          "searchQueries": {
            "title": "Search Queries",
            "type": "array",
            "description": "Full search queries (e.g. 'plumbers in Austin TX'). Used as-is when cities/categories are empty. When cities are set, each query is treated as a niche/category and combined with each city.",
            "default": [
              "plumbers in Austin TX"
            ],
            "items": {
              "type": "string"
            }
          },
          "cities": {
            "title": "Cities (multi-city fanout)",
            "type": "array",
            "description": "Optional city list. When set, each category (or searchQueries entry without a city) is expanded as '{category} in {city}'. Cap 25 cities. Matches Store rivals' locationQuery / city packs.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "categories": {
            "title": "Niche categories / verticals",
            "type": "array",
            "description": "Optional vertical niches (plumbers, HVAC, roofing, dentists). Paired with cities[]. If empty and cities[] is set, searchQueries are used as niches.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "websiteUrls": {
            "title": "Direct Website URLs",
            "type": "array",
            "description": "Direct URLs of business websites to extract emails from. Use this if you already have a list of websites.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxResults": {
            "title": "Max Results",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum number of businesses to process",
            "default": 50
          },
          "skipWithoutEmail": {
            "title": "Only keep leads with email",
            "type": "boolean",
            "description": "When true, only push dataset items that have at least one email (phone-only rows dropped). Rival-parity filter for outreach lists.",
            "default": false
          },
          "scrapeContactPages": {
            "title": "Scrape Contact Pages",
            "type": "boolean",
            "description": "Automatically find and scrape /contact, /about pages for more emails",
            "default": true
          },
          "includePhones": {
            "title": "Include Phone Numbers",
            "type": "boolean",
            "description": "Extract phone numbers from websites",
            "default": true
          },
          "includeSocial": {
            "title": "Include Social Links",
            "type": "boolean",
            "description": "Extract social media links (Facebook, Twitter, Instagram, LinkedIn, etc.)",
            "default": true
          },
          "demoMode": {
            "title": "Demo mode (fictional sample leads)",
            "type": "boolean",
            "description": "Push 3 fictional sample leads and exit — for Store card / format preview. Not real businesses.",
            "default": false
          },
          "onlyNew": {
            "title": "Only new leads (skip seen domains)",
            "type": "boolean",
            "description": "When true, skip domains already saved in the named key-value store (monitoring / incremental runs). Rival-parity with onlyNewListings / seen-ID patterns.",
            "default": false
          },
          "seenStoreName": {
            "title": "Seen-domains store name",
            "type": "string",
            "description": "Key-value store used when onlyNew is on. Default maps-email-seen.",
            "default": "maps-email-seen"
          },
          "verifyEmails": {
            "title": "Classify emails (local verify UX)",
            "type": "boolean",
            "description": "Add emailVerification[] with local heuristics: likely_valid / role_based / disposable / invalid_syntax. No external API — PPE unchanged. Rival-parity UX vs paid email-verify add-ons.",
            "default": false
          },
          "minRating": {
            "title": "Minimum star rating",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "When a lead has a known rating, drop it if below this value. Leads without rating are kept. Rival-parity with placeMinimumStars."
          },
          "minReviews": {
            "title": "Minimum review count",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "When a lead has a known reviewCount, drop it if below this value. Leads without reviewCount are kept. Rival-parity with min_reviews / totaka / poidata."
          },
          "requirePhone": {
            "title": "Require phone number",
            "type": "boolean",
            "description": "When true, only keep leads that include at least one phone. Rival-parity with requirePhone / phone-first outreach lists.",
            "default": false
          },
          "requireWebsite": {
            "title": "Require website URL",
            "type": "boolean",
            "description": "When true, only keep leads that have a website/domain (khadinakbar requireWebsite parity). Direct URL runs always have websites; useful with mixed discovery.",
            "default": false
          },
          "minLeadScore": {
            "title": "Minimum lead score (0–100)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Drop leads whose leadScore is below this floor. Score blends email/phone/social/rating/reviews/tech (khadinakbar minLeadScore parity). Unscored kept only if scoring fails."
          },
          "excludeRolePrefixes": {
            "title": "Exclude role-based email prefixes",
            "type": "array",
            "description": "Drop emails whose local-part equals or starts with these prefixes (e.g. info, sales, support, hello, contact, admin). Leave empty to keep all non-spam emails. contact-info / outreach list parity.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxEmailsPerSite": {
            "title": "Max emails per site",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Cap emails kept per business website (leadharbor maxEmailsPerSite parity). Leave empty for no cap."
          },
          "maxContactPages": {
            "title": "Max contact/about pages per site",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "How many /contact /about /team pages to enqueue per website when deep scan is on (default 3). Higher finds more emails, slower.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}