# Google Maps Website & Contact Extractor (`coregent/google-maps-website-contact-extractor`) Actor

Extract Google Maps business listings and enrich them with lightweight website contact details such as emails, contact page URL, phone numbers, and social profile links.

- **URL**: https://apify.com/coregent/google-maps-website-contact-extractor.md
- **Developed by:** [Delowar Munna](https://apify.com/coregent) (community)
- **Categories:** Lead generation, Automation, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.60 / 1,000 business-results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## Google Maps Website & Contact Extractor

![Google Maps Website & Contact Extractor](https://raw.githubusercontent.com/coregentdevspace/google-maps-website-contact-extractor-assets/main/thumbnail-google-maps-website-contact-extractor.jpg)

Extract Google Maps business listings by **keyword + location** and enrich each row with **shallow website contact data** — emails, contact page URL, website phone, and social profile links. Returns a clean, flat, CSV-friendly row per business — built for **B2B lead generation, sales outreach, web design and SEO agencies, and local marketing**.

V1 stays deliberately shallow on the website side (homepage + a small number of likely contact/about pages, capped by `maxPagesPerWebsite`) so runs are fast and cost-predictable. You pay one flat event per unique business row that passes your filters — same price whether or not the website extraction found extra contact data.

### ✨ Why this scraper

- **Maps + website in one pass** — 41 flat fields covering Maps card data plus emails, contact page, website phone, and social links.
- **Shallow by design** — homepage + up to `maxPagesPerWebsite-1` extra contact/about pages per site. No deep crawling, no AI, no review scraping.
- **Pay-Per-Event** — one flat event per saved business row, whether or not contact data was found. Duplicates and filtered rows are not charged.
- **No login, no cookies, no sessions** — just keyword + location.
- **CSV-friendly output** — flat structure, no nested objects, drops cleanly into Sheets/Excel/CRMs.
- **Transparent contact-quality score** — rule-based (no AI), explained below.

---

### 🚀 Quick start — sample inputs

#### Example 1 — single query

```json
{
    "searchQueries": [{ "key": "plumbers", "value": "Canberra ACT" }],
    "maxResults": 100,
    "country": "AU",
    "language": "en",
    "websiteFilter": "hasWebsite",
    "phoneRequired": false,
    "emailRequired": false,
    "includeWebsiteContactExtraction": true,
    "maxPagesPerWebsite": 3,
    "includeSocialLinks": true,
    "includeWebsitePhone": true,
    "includeOpeningHours": false,
    "includeCoordinates": true,
    "deduplicateResults": true,
    "proxyConfiguration": { "useApifyProxy": true }
}
````

#### Example 2 — multi-query, email required, custom residential proxy via your own provider

```json
{
    "searchQueries": [
        { "key": "electricians", "value": "Sydney NSW" },
        { "key": "dentists", "value": "Melbourne VIC" },
        { "key": "cafes", "value": "Brisbane QLD" }
    ],
    "maxResults": 200,
    "country": "AU",
    "language": "en",
    "websiteFilter": "hasWebsite",
    "phoneRequired": true,
    "emailRequired": true,
    "includeWebsiteContactExtraction": true,
    "maxPagesPerWebsite": 3,
    "includeSocialLinks": true,
    "includeWebsitePhone": true,
    "includeOpeningHours": false,
    "includeCoordinates": true,
    "deduplicateResults": true,
    "proxyConfiguration": {
        "useApifyProxy": false,
        "proxyUrls": ["http://user:pass@proxy.iproyal.com:12321"]
    }
}
```

> The actor blocks Apify Residential proxy; if you need residential routing, supply your own provider via `proxyConfiguration.proxyUrls` as shown. See **🚦 Proxy policy** below.

> The `searchQueries` field uses Apify's **Key/Value form editor** — the **Key** column is the business keyword (e.g. `plumbers`), the **Value** column is the location (e.g. `Canberra ACT`). Add one row per search.

***

### 📦 Output

The dataset has one view: **Business contact leads** — a 41-column flat table.

![Business contact leads — table view](https://raw.githubusercontent.com/coregentdevspace/google-maps-website-contact-extractor-assets/main/google-maps-website-contact-extractor-output-business-contact-leads-table-view.png)

#### Output fields (41)

`search_keyword`, `search_location`, `business_name`, `category`, `rating`, `review_count`, `maps_phone`, `website_phone`, `primary_phone`, `website`, `website_domain`, `address`, `city`, `state`, `postcode`, `country`, `google_maps_url`, `place_id`, `latitude`, `longitude`, `opening_hours`, `has_website`, `has_maps_phone`, `has_website_phone`, `emails`, `primary_email`, `email_count`, `email_types`, `contact_page_url`, `facebook_url`, `instagram_url`, `linkedin_url`, `x_url`, `youtube_url`, `social_links_count`, `website_pages_scanned`, `website_status`, `contact_quality_score`, `contact_quality_label`, `contact_tags`, `scraped_at`.

#### Sample record — Business contact leads

```json
{
    "search_keyword": "electricians",
    "search_location": "New York NY",
    "business_name": "PK & Altman Electric",
    "category": "Electrical installation service",
    "rating": 4.5,
    "review_count": null,
    "maps_phone": "(646) 630-7164",
    "website_phone": "212-673-9400",
    "primary_phone": "(646) 630-7164",
    "website": "https://pkelectricnyc.com/?utm_campaign=gmb",
    "website_domain": "pkelectricnyc.com",
    "address": "94 E 4th St",
    "city": "",
    "state": "",
    "postcode": "",
    "country": "",
    "google_maps_url": "https://www.google.com/maps/place/PK+%26+Altman+Electric/",
    "place_id": "0x4065fc94aff64f07:0xa7c23f01be65d9f9",
    "latitude": 40.7257673,
    "longitude": -73.9889033,
    "opening_hours": "",
    "has_website": true,
    "has_maps_phone": true,
    "has_website_phone": true,
    "emails": "info@pkelectricnyc.com, office@pkelectricnyc.com",
    "primary_email": "office@pkelectricnyc.com",
    "email_count": 2,
    "email_types": "info,generic",
    "contact_page_url": "https://pkelectricnyc.com/contact/",
    "facebook_url": "https://facebook.com/PKAltmanElectric",
    "instagram_url": "",
    "linkedin_url": "",
    "x_url": "",
    "youtube_url": "https://youtube.com/@pkaltmanelectric",
    "social_links_count": 2,
    "website_pages_scanned": 2,
    "website_status": "success",
    "contact_quality_score": 100,
    "contact_quality_label": "Excellent Contact Lead",
    "contact_tags": [
        "has_website",
        "has_maps_phone",
        "has_website_phone",
        "has_email",
        "has_primary_email",
        "has_contact_page",
        "has_social_links",
        "contact_ready"
    ],
    "scraped_at": "2026-05-08T11:33:06.777Z"
}
```

***

### 🎯 Contact-quality score

Transparent rule-based score (0–100) computed from extracted fields — no AI, no external enrichment.

| Signal                  | Points |
| ----------------------- | -----: |
| Has website             |    +15 |
| Has Maps phone          |    +15 |
| Has website phone       |    +10 |
| Has at least one email  |    +30 |
| Has primary email       |    +10 |
| Has contact page URL    |    +10 |
| Has at least one social |    +10 |
| Has address             |     +5 |
| Has category            |     +5 |

Score is capped at 100.

**Labels**: `Excellent Contact Lead` (80–100) · `Good Contact Lead` (60–79) · `Basic Contact Lead` (40–59) · `Low Contact Data` (0–39).

`contact_tags` includes `contact_ready` whenever `primary_email` or `primary_phone` is present — sort by this tag for a clean call/email list.

***

### 💰 Pricing

**Pay-Per-Event**. One flat event per saved row (final per-event price is configured on the Apify console):

| Event             | Charged when                                                                                                                                                            |
| ----------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `business-result` | Once per unique business row that passed all filters and was successfully written to the dataset — whether or not the website extraction found additional contact data. |

So your bill is simply `results_saved × price_per_event`. Rows where website enrichment found emails / contact pages / socials cost the same as Maps-only rows; the price is averaged across both kinds.

The actor honors the user-configured per-run spending cap (Apify `eventChargeLimitReached`) and stops cleanly when reached.

#### 🚦 Proxy policy

Use **Apify Datacenter** proxy or **no proxy** for normal runs — both work reliably for Google Maps search and shallow website fetches at this actor's conservative concurrency.

**Apify Residential proxy is not supported.** The actor will fail at startup if `proxyConfiguration.apifyProxyGroups` includes `RESIDENTIAL`. Reason: in pay-per-event actors, residential bandwidth (~/GB) is billed to the developer, not the run user, so a single bandwidth-heavy run could exceed the per-result event revenue.

If you genuinely need residential routing, supply your own residential provider via the proxy editor's **Custom proxy URLs** field — that traffic goes through your provider, not Apify, and is unaffected:

```
http://user:pass@proxy.iproyal.com:12321
http://user:pass@proxy.brightdata.com:22225
http://user:pass@proxy.oxylabs.io:7777
```

Not charged:

- Duplicates (de-duplicated by `place_id`, listing URL, website domain, or name+address/phone).
- Rows filtered out by `websiteFilter`, `phoneRequired`, or `emailRequired`.
- Rows missing a `business_name`.
- Failed dataset pushes.
- Failed website fetches when no row was saved.
- Anything after the per-run spending cap is reached.

***

### 📊 Run summary

After each run, a `RUN_SUMMARY` entry is written to the key-value store:

```json
{
    "inputs_total": 2,
    "successful_inputs": 2,
    "failed_inputs": 0,
    "raw_results_found": 180,
    "results_saved": 100,
    "business_events_charged": 100,
    "duplicates_removed": 18,
    "filtered_out": 62,
    "websites_attempted": 82,
    "websites_succeeded": 68,
    "websites_failed": 10,
    "websites_timed_out": 4,
    "emails_found": 75,
    "blocked_requests": 0,
    "retry_count": 6,
    "runtime_seconds": 240,
    "scraped_at": "2026-05-07T00:00:00.000Z"
}
```

`business_events_charged` always equals `results_saved`.

***

### ⚙️ Filters

| Filter               | Stage           | Effect                                                                 |
| -------------------- | --------------- | ---------------------------------------------------------------------- |
| `websiteFilter`      | Pre-extraction  | `any` / `hasWebsite` / `missingWebsite`. Default `hasWebsite`.         |
| `phoneRequired`      | Post-extraction | If `true`, keep rows where `maps_phone` or `website_phone` is present. |
| `emailRequired`      | Post-extraction | If `true`, keep only rows where at least one website email was found.  |
| `deduplicateResults` | Both stages     | Drop duplicates across queries (recommended ON).                       |

Filters are applied **before** dataset push or event charges.

***

### 🚧 Limitations (V1)

- **Cards-only Maps extraction**: V1 reads each business directly from the search results panel and does not click into individual place detail panels. Phone, website, full opening hours, and `place_id` only appear when Google surfaces them on the card itself; otherwise these fields are empty/`null`.
- **Shallow website extraction**: homepage + up to `maxPagesPerWebsite-1` extra pages (default 3 total). No deep crawling, no JS-heavy rendering by default.
- No email verification, deliverability checks, or AI scoring.
- No full review text, sentiment, photos, menus, prices, or popular times.
- No login/cookie/session-based scraping.
- Address parsing into city/state/postcode is best-effort; the full `address` field is the source of truth.
- Per-query hard cap is **500 results**; per-run hard cap is **5,000 results**; per-website page cap is **5**.

***

### ❓ FAQ

**Why is `email_count` zero on some businesses?**\
Many local businesses don't publish an email publicly — they use a contact form instead. The actor extracts only emails visible in the page HTML (visible text + `mailto:` links). Set `emailRequired: true` if you want to keep only rows with at least one extracted email.

**Why are `city`, `state`, `postcode` empty on some rows?**\
The Google Maps card sometimes surfaces only a single-line street address. The full `address` field is the source of truth; `city`/`state`/`postcode` populate only when Maps shows a comma-separated multi-segment address. For full address normalization, post-process with a geocoder of your choice.

**Can I use Apify Residential proxy?**\
No — the actor rejects Apify Residential at startup. Apify Datacenter, no proxy, and user-supplied custom proxy URLs all work fine. If you genuinely need residential routing for a specific region or site, supply your own provider (IPRoyal, BrightData, Oxylabs, etc.) via the proxy editor's **Custom proxy URLs** field — that traffic bypasses Apify billing entirely. See the **🚦 Proxy policy** section above.

**Can I export to CSV?**\
Yes — every field is flat (no nested objects). Use Apify's CSV / Excel export from the dataset page, or call the dataset API with `format=csv`.

**How am I billed for rows that don't have any extracted emails or socials?**\
The same as rows that do — one flat `business-result` event per saved row. The per-event price is averaged across both outcomes, so a run with high enrichment hit-rate and a run with low hit-rate cost the same per row. If you only need Maps directory data (no website enrichment at all), set `includeWebsiteContactExtraction: false` to skip the website fetches — billing is unchanged but the run is faster.

**How do I get more results per query?**\
The per-query hard cap is 500 (per-run cap 5,000). For more, split your search into narrower geographies or sub-niches and run them as separate queries — the actor dedupes across queries within a run.

**Will I get blocked?**\
The actor uses conservative concurrency (Maps `min=1, max=3`; website pool `=5`), HTTP-only website fetching, realistic headers, and respects retry/backoff. Default Apify Proxy is sufficient for typical lead-gen volumes. If a specific site or region blocks you, switch the proxy selector to Residential for that run.

**What does `website_status` mean?**

- `not_attempted` — website extraction was disabled or there was no website to fetch.
- `no_website` — Maps had no website link for that business.
- `success` — homepage fetched successfully (regardless of whether emails were found).
- `failed` — the homepage returned an HTTP error or the network call failed.
- `timeout` — the request was cut off by the per-page (15s) or per-business (45s) timeout.

***

### 🛠️ Technical notes

- **Stack**: Node.js 18+ · Apify SDK 3 · Crawlee · Puppeteer (Maps) · Cheerio + native fetch (websites).
- **Concurrency**: Maps `min=1`, `max=3` (conservative); website pool `concurrency=5`.
- **Memory**: 1 GB min · 2 GB default · 4 GB max.
- **Proxy**: Apify Proxy enabled by default; custom configs accepted.
- **Diagnostics**: On the first failed Maps render (no feed, or feed but zero cards), the actor saves the page HTML and URL to the key-value store as `debug-no-feed-html` / `debug-zero-cards-html`.

# Actor input Schema

## `searchQueries` (type: `array`):

List of keyword + location pairs to search on Google Maps. Add one row per search - "Key" is the business keyword (e.g. plumbers), "Value" is the location (e.g. Canberra ACT). Each row becomes one search like "plumbers in Canberra ACT".

## `maxResults` (type: `integer`):

Maximum number of saved business rows per search query. Hard cap is 500 per query and 5000 per run.

## `country` (type: `string`):

Optional ISO country code used as a Google Maps locale hint, for example AU, US, GB. Leave empty to use the default Google locale.

## `language` (type: `string`):

Language code used for Google Maps UI (IETF BCP-47), for example en, es, de.

## `websiteFilter` (type: `string`):

Filter by website availability. "any" keeps everything; "hasWebsite" keeps only businesses with a website (recommended for contact extraction); "missingWebsite" keeps only businesses without a website.

## `phoneRequired` (type: `boolean`):

If enabled, only keep businesses that have a visible phone number (from Google Maps or the website).

## `emailRequired` (type: `boolean`):

If enabled, only keep businesses where at least one email was found on the website. Implies website contact extraction.

## `includeWebsiteContactExtraction` (type: `boolean`):

When enabled, the actor visits each business website (homepage and a small number of likely contact/about pages) to extract emails, phone numbers, social links, and the contact page URL. Disable to return Google Maps fields only.

## `maxPagesPerWebsite` (type: `integer`):

Upper bound on the number of pages fetched per business website (homepage + likely contact/about pages). Hard cap 5.

## `includeSocialLinks` (type: `boolean`):

Extract Facebook, Instagram, LinkedIn, X (Twitter), and YouTube URLs from website pages.

## `includeWebsitePhone` (type: `boolean`):

Extract phone numbers from website pages (in addition to the Google Maps phone).

## `includeOpeningHours` (type: `boolean`):

Include opening hours summary when visible on the Google Maps card. Default off to keep runtime predictable.

## `includeCoordinates` (type: `boolean`):

Include latitude/longitude when available from the listing URL.

## `deduplicateResults` (type: `boolean`):

Remove duplicate businesses across queries using place\_id, listing URL, website domain, and name+address keys.

## `proxyConfiguration` (type: `object`):

Apify Proxy configuration. Defaults to Apify Proxy enabled. Apify Residential is NOT supported and will fail the run at startup; if you need residential routing, supply your own provider via Custom proxy URLs (proxyUrls).

## Actor input object example

```json
{
  "searchQueries": [
    {
      "key": "plumbers",
      "value": "Canberra ACT"
    },
    {
      "key": "electricians",
      "value": "Sydney NSW"
    }
  ],
  "maxResults": 100,
  "country": "",
  "language": "en",
  "websiteFilter": "hasWebsite",
  "phoneRequired": false,
  "emailRequired": false,
  "includeWebsiteContactExtraction": true,
  "maxPagesPerWebsite": 3,
  "includeSocialLinks": true,
  "includeWebsitePhone": true,
  "includeOpeningHours": false,
  "includeCoordinates": true,
  "deduplicateResults": true,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

Flat 41-field table view of every business row pushed to the dataset, including Google Maps fields and website contact extraction fields (emails, social links, contact page, contact-quality score).

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "searchQueries": [
        {
            "key": "plumbers",
            "value": "Canberra ACT"
        },
        {
            "key": "electricians",
            "value": "Sydney NSW"
        }
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("coregent/google-maps-website-contact-extractor").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "searchQueries": [
        {
            "key": "plumbers",
            "value": "Canberra ACT",
        },
        {
            "key": "electricians",
            "value": "Sydney NSW",
        },
    ],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("coregent/google-maps-website-contact-extractor").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "searchQueries": [
    {
      "key": "plumbers",
      "value": "Canberra ACT"
    },
    {
      "key": "electricians",
      "value": "Sydney NSW"
    }
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call coregent/google-maps-website-contact-extractor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=coregent/google-maps-website-contact-extractor",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Google Maps Website & Contact Extractor",
        "description": "Extract Google Maps business listings and enrich them with lightweight website contact details such as emails, contact page URL, phone numbers, and social profile links.",
        "version": "1.0",
        "x-build-id": "XsPfPwKcI2pjgVLtj"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/coregent~google-maps-website-contact-extractor/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-coregent-google-maps-website-contact-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/coregent~google-maps-website-contact-extractor/runs": {
            "post": {
                "operationId": "runs-sync-coregent-google-maps-website-contact-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/coregent~google-maps-website-contact-extractor/run-sync": {
            "post": {
                "operationId": "run-sync-coregent-google-maps-website-contact-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",
                "required": [
                    "searchQueries"
                ],
                "properties": {
                    "searchQueries": {
                        "title": "Search Queries (keyword + location)",
                        "type": "array",
                        "description": "List of keyword + location pairs to search on Google Maps. Add one row per search - \"Key\" is the business keyword (e.g. plumbers), \"Value\" is the location (e.g. Canberra ACT). Each row becomes one search like \"plumbers in Canberra ACT\".",
                        "default": [
                            {
                                "key": "plumbers",
                                "value": "Canberra ACT"
                            }
                        ],
                        "items": {
                            "type": "object",
                            "required": [
                                "key",
                                "value"
                            ],
                            "properties": {
                                "key": {
                                    "type": "string",
                                    "title": "Key"
                                },
                                "value": {
                                    "type": "string",
                                    "title": "Value"
                                }
                            }
                        }
                    },
                    "maxResults": {
                        "title": "Max results per query",
                        "minimum": 1,
                        "maximum": 500,
                        "type": "integer",
                        "description": "Maximum number of saved business rows per search query. Hard cap is 500 per query and 5000 per run.",
                        "default": 100
                    },
                    "country": {
                        "title": "Country (locale hint)",
                        "type": "string",
                        "description": "Optional ISO country code used as a Google Maps locale hint, for example AU, US, GB. Leave empty to use the default Google locale.",
                        "default": ""
                    },
                    "language": {
                        "title": "Language",
                        "type": "string",
                        "description": "Language code used for Google Maps UI (IETF BCP-47), for example en, es, de.",
                        "default": "en"
                    },
                    "websiteFilter": {
                        "title": "Website filter",
                        "enum": [
                            "any",
                            "hasWebsite",
                            "missingWebsite"
                        ],
                        "type": "string",
                        "description": "Filter by website availability. \"any\" keeps everything; \"hasWebsite\" keeps only businesses with a website (recommended for contact extraction); \"missingWebsite\" keeps only businesses without a website.",
                        "default": "hasWebsite"
                    },
                    "phoneRequired": {
                        "title": "Phone required",
                        "type": "boolean",
                        "description": "If enabled, only keep businesses that have a visible phone number (from Google Maps or the website).",
                        "default": false
                    },
                    "emailRequired": {
                        "title": "Email required",
                        "type": "boolean",
                        "description": "If enabled, only keep businesses where at least one email was found on the website. Implies website contact extraction.",
                        "default": false
                    },
                    "includeWebsiteContactExtraction": {
                        "title": "Visit business websites for contact data",
                        "type": "boolean",
                        "description": "When enabled, the actor visits each business website (homepage and a small number of likely contact/about pages) to extract emails, phone numbers, social links, and the contact page URL. Disable to return Google Maps fields only.",
                        "default": true
                    },
                    "maxPagesPerWebsite": {
                        "title": "Max pages per website",
                        "minimum": 1,
                        "maximum": 5,
                        "type": "integer",
                        "description": "Upper bound on the number of pages fetched per business website (homepage + likely contact/about pages). Hard cap 5.",
                        "default": 3
                    },
                    "includeSocialLinks": {
                        "title": "Extract social links",
                        "type": "boolean",
                        "description": "Extract Facebook, Instagram, LinkedIn, X (Twitter), and YouTube URLs from website pages.",
                        "default": true
                    },
                    "includeWebsitePhone": {
                        "title": "Extract website phone",
                        "type": "boolean",
                        "description": "Extract phone numbers from website pages (in addition to the Google Maps phone).",
                        "default": true
                    },
                    "includeOpeningHours": {
                        "title": "Include opening hours",
                        "type": "boolean",
                        "description": "Include opening hours summary when visible on the Google Maps card. Default off to keep runtime predictable.",
                        "default": false
                    },
                    "includeCoordinates": {
                        "title": "Include coordinates",
                        "type": "boolean",
                        "description": "Include latitude/longitude when available from the listing URL.",
                        "default": true
                    },
                    "deduplicateResults": {
                        "title": "Deduplicate results",
                        "type": "boolean",
                        "description": "Remove duplicate businesses across queries using place_id, listing URL, website domain, and name+address keys.",
                        "default": true
                    },
                    "proxyConfiguration": {
                        "title": "Proxy configuration",
                        "type": "object",
                        "description": "Apify Proxy configuration. Defaults to Apify Proxy enabled. Apify Residential is NOT supported and will fail the run at startup; if you need residential routing, supply your own provider via Custom proxy URLs (proxyUrls).",
                        "default": {
                            "useApifyProxy": true
                        }
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
