{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Maps Email Scraper — Business Emails & Contacts",
    "description": "Search Google Maps for a kind of business in an area and get each one's contact details: the phone and address from the listing, plus the emails and social profiles found by crawling its website. Covers areas larger than one map view by tiling them.",
    "version": "3.0",
    "x-build-id": "vQAmv5AveWVgyF1fn"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/thenetaji~google-maps-email-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-thenetaji-google-maps-email-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/thenetaji~google-maps-email-scraper/runs": {
      "post": {
        "operationId": "runs-sync-thenetaji-google-maps-email-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/thenetaji~google-maps-email-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-thenetaji-google-maps-email-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",
        "required": [
          "query"
        ],
        "properties": {
          "query": {
            "title": "What to search for",
            "type": "string",
            "description": "The kind of business to find, exactly as it would be typed into Google Maps — dentist, hardware store, plumber — or a business name.",
            "default": "dentist"
          },
          "location": {
            "title": "Where to search",
            "type": "string",
            "description": "A town, city, district or address to search around — for example 'Austin, Texas' or 'Shoreditch, London'. Leave empty only if setting exact coordinates below.",
            "default": "Austin, Texas"
          },
          "spanMetres": {
            "title": "Search width (metres)",
            "minimum": 500,
            "maximum": 200000,
            "type": "integer",
            "description": "How wide a map view to search around that location. Narrower views reach fewer businesses each but return them from closer in, which is what makes a large area coverable.",
            "default": 20000
          },
          "areaMetres": {
            "title": "Area to cover (metres)",
            "minimum": 0,
            "maximum": 200000,
            "type": "integer",
            "description": "Leave at 0 to search one map view. Anything larger walks a grid of views across that area, which is the only way past the roughly 182 businesses a single view returns.",
            "default": 0
          },
          "maxPlaces": {
            "title": "Maximum businesses",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many distinct businesses, so a first run finishes quickly and cheaply. Use 0 for no limit.",
            "default": 20
          },
          "contactTypes": {
            "title": "Contact information",
            "type": "array",
            "description": "Choose which kinds of public contact information to return.",
            "items": {
              "type": "string",
              "enum": [
                "email",
                "phone",
                "social",
                "address"
              ],
              "enumTitles": [
                "Email addresses",
                "Phone numbers",
                "Social profiles",
                "Physical addresses"
              ]
            },
            "default": [
              "email",
              "phone",
              "social",
              "address"
            ]
          },
          "includeContactText": {
            "title": "Scan visible page text",
            "type": "boolean",
            "description": "Also find contact details written in page text, including common at/dot email obfuscation. Turn off to return only details published in links and structured data.",
            "default": true
          },
          "enrichSocialProfiles": {
            "title": "Enrich social profiles",
            "type": "boolean",
            "description": "Read the accounts behind the social links found on each website and attach follower counts, category, verification and bio — including the contact email and phone that business accounts publish and their website often does not. Charged per profile read.",
            "default": false
          },
          "maxSocialProfilesPerWebsite": {
            "title": "Maximum social profiles per website",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "Cap on how many social accounts are read for each website, so a site listing every network it has ever joined cannot dominate the bill. Only applies when profile enrichment is on.",
            "default": 5
          },
          "smartDiscovery": {
            "title": "Prioritize contact pages",
            "type": "boolean",
            "description": "Inspect contact, about, team, support, company, and legal pages before lower-value links.",
            "default": true
          },
          "maxCrawlDepth": {
            "title": "Maximum crawl depth",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Maximum number of link hops from each starting page. Use 0 to inspect only the supplied URLs.",
            "default": 2
          },
          "maxPagesPerWebsite": {
            "title": "Maximum pages per website",
            "minimum": 0,
            "type": "integer",
            "description": "Cap on pages inspected for each supplied URL, so one large website cannot consume the whole budget and leave the rest of the list empty. Use 0 for no per-website cap.",
            "default": 3
          },
          "maxConcurrency": {
            "title": "Maximum concurrency",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum number of pages processed at the same time.",
            "default": 10
          },
          "excludeUrlPatterns": {
            "title": "Excluded URL patterns",
            "type": "array",
            "description": "Optional regular expressions for URLs that should never be inspected.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "useStealth": {
            "title": "Adaptive browser fallback",
            "type": "boolean",
            "description": "Retry blocked pages with a rendered browser after fast requests fail.",
            "default": true
          },
          "solveCloudflare": {
            "title": "Handle Cloudflare challenges",
            "type": "boolean",
            "description": "Allow the browser fallback to handle supported Cloudflare challenges.",
            "default": false
          },
          "maxRequestRetries": {
            "title": "Request retries",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Maximum retries for ordinary request failures.",
            "default": 3
          },
          "maxBlockedRetries": {
            "title": "Blocked-page retries",
            "minimum": 0,
            "maximum": 7,
            "type": "integer",
            "description": "Maximum retries when a website blocks a request.",
            "default": 5
          },
          "useProxy": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optionally use Apify Proxy. Residential access is used only when explicitly selected or after repeated blocks.",
            "default": {
              "useApifyProxy": false,
              "apifyProxyGroups": []
            }
          },
          "verboseLogs": {
            "title": "Detailed logs",
            "type": "boolean",
            "description": "Log every page and request instead of periodic progress. Useful when diagnosing a run, but a large crawl can log faster than the platform records it, so leave this off for normal use.",
            "default": false
          },
          "crawlEngine": {
            "title": "Crawl engine",
            "type": "string",
            "description": "Internal engine-selection contract.",
            "default": "auto"
          },
          "latitude": {
            "title": "Exact latitude",
            "type": "number",
            "description": "Optional. Overrides the location above when set, for a search centred on a precise point rather than a named place. Must be given together with longitude."
          },
          "longitude": {
            "title": "Exact longitude",
            "type": "number",
            "description": "Optional. Overrides the location above when set. Must be given together with latitude."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}