# Local Services Ads & Google Verified Scraper (`piotrv1001/local-services-ads-google-verified-scraper`) Actor

The Local Services Ads & Google Verified Scraper extracts businesses from Google local searches — Local Services Ads, Google Verified badges, local pack rankings, ratings, reviews, phones, and websites — ideal for local SEO agencies, lead gen, and competitor tracking.

- **URL**: https://apify.com/piotrv1001/local-services-ads-google-verified-scraper.md
- **Developed by:** [FalconScrape](https://apify.com/piotrv1001) (community)
- **Categories:** Lead generation, SEO tools, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

### 🚀 Local Services Ads & Google Verified Monitor

Monitor Google local-service search results at scale. The **Local Services Ads & Google Verified Monitor** captures Local Services Ads (LSA), Google Verified / Google Guaranteed badges, local pack rankings, ratings, reviews, phone numbers, and websites for any high-intent local query — built for local SEO agencies, home-services marketers, law firm marketing agencies, and reputation management vendors.

### ✨ Features

-   🛡️ **LSA & Verified Badge Detection** — Detects Local Services Ads, Google Guaranteed, and Google Screened badges so you know who Google is currently endorsing in your market.
-   🥇 **Local Pack Rankings** — Captures the 3-pack with continuous position numbering across paginated SERPs, so you can track rank movement over time.
-   ⭐ **Ratings & Reviews** — Parses star ratings and review counts from both organic and local-pack cards (handles `4.7 (2.9K)` and `Rated 4.5 out of 5, (1,809) user reviews` formats).
-   📞 **Contact Info** — Extracts phone numbers and websites where Google surfaces them on the SERP card.
-   📑 **Multi-Page Pagination** — Crawl up to 10 pages of organic results per query with continuous position numbering and a global per-query result cap.
-   🌍 **Geo & Device Targeting** — Choose country, language, and desktop or mobile device profile to mirror exactly what your customers see.
-   🛰️ **Residential Proxy Ready** — Defaults to Apify's residential proxy pool to dodge Google's anti-bot defenses.

### 🛠️ How It Works

1. **Enter Search Queries** — Provide a list of local-service queries like `plumbers in Austin` or `personal injury lawyer in Miami`.
2. **Pick Geo & Device** — Optionally set the country, language, and device profile. The Actor mirrors what a real searcher in that location sees.
3. **Run the Scraper** — Start the run. The Actor fetches each Google SERP via Playwright with residential proxies, parses every business surface (LSA, local pack, sponsored, organic), and pushes structured records to the dataset.

### 📥 Input

| Field | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `searchQueries` | `string[]` | ✅ | — | Local-service search queries to monitor (e.g. `plumbers in Austin`). |
| `location` | `string` | — | — | Optional location to bias results toward; merged into the query if it isn't already there. |
| `language` | `string` | — | `"en"` | Google interface language code (`en`, `de`, `pl`, …). |
| `countryCode` | `string` | — | `"us"` | Google country code for geolocation (`us`, `gb`, `pl`, …). |
| `device` | `"desktop"` \| `"mobile"` | — | `"desktop"` | Device profile to emulate. Affects which surfaces Google renders. |
| `maxResultsPerQuery` | `integer` | — | `20` | Global cap on records per query across all paginated pages. Range 1–200. |
| `maxPages` | `integer` | — | `3` | How many Google pages to crawl per query (10 results per page). Range 1–10. |
| `proxyConfiguration` | `object` | — | Apify residential | Proxy settings. Residential is strongly recommended — Google blocks datacenter IPs aggressively. |

#### Sample Input

```json
{
    "searchQueries": ["plumbers in Austin", "personal injury lawyer in Miami"],
    "language": "en",
    "countryCode": "us",
    "device": "desktop",
    "maxResultsPerQuery": 30,
    "maxPages": 3,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": ["RESIDENTIAL"]
    }
}
````

### 📊 Sample Output Data

The scraper produces one row per business, with continuous `position` numbering across all pages of a query. Example:

```json
[
    {
        "query": "plumbers in Austin",
        "language": "en",
        "countryCode": "us",
        "device": "desktop",
        "surface": "google_search",
        "businessType": "local_pack",
        "pageIndex": 0,
        "position": 1,
        "name": "Reliant Plumbing",
        "isSponsored": false,
        "isVerified": false,
        "verifiedLabel": null,
        "isGoogleGuaranteed": false,
        "rating": 4.7,
        "reviewCount": 2900,
        "phone": "(512) 222-6029",
        "website": "https://reliantplumbing.com/",
        "address": null,
        "profileUrl": "https://www.google.com/maps/reserve/appt/place/...",
        "scrapedAt": "2026-05-09T07:39:08.401Z"
    },
    {
        "query": "personal injury lawyer in Miami",
        "language": "en",
        "countryCode": "us",
        "device": "desktop",
        "surface": "google_search",
        "businessType": "sponsored",
        "pageIndex": 0,
        "position": 4,
        "name": "Miami Personal Injury Lawyers",
        "isSponsored": true,
        "isVerified": false,
        "verifiedLabel": null,
        "isGoogleGuaranteed": false,
        "rating": null,
        "reviewCount": null,
        "phone": null,
        "website": "https://www.jasonturchin.com/practice-areas/personal-injury/",
        "address": null,
        "profileUrl": null,
        "scrapedAt": "2026-05-09T07:39:08.401Z"
    }
]
```

`businessType` is one of `lsa`, `local_pack`, `sponsored`, or `organic_local`, letting you slice the dataset by surface — paid vs. organic, verified vs. unverified, etc.

Track competitor visibility, monitor LSA placements, and audit Google Verified coverage across your local markets with the **Local Services Ads & Google Verified Monitor** today! 🚀

# Actor input Schema

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

Local-service search queries to monitor. Examples: 'plumbers in Austin', 'roof repair in Chicago', 'personal injury lawyer in Miami'.

## `location` (type: `string`):

Optional location to bias results toward. If a query already contains a location, this is used as a fallback.

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

Google interface language code (e.g. 'en', 'de', 'pl').

## `countryCode` (type: `string`):

Google country code for geolocation (e.g. 'us', 'gb', 'pl').

## `device` (type: `string`):

Device profile to emulate. Affects user agent and which surfaces Google renders.

## `maxResultsPerQuery` (type: `integer`):

Global cap on business records returned per query (across all paginated pages). Once reached, remaining pages of that query are skipped.

## `maxPages` (type: `integer`):

How many Google search pages to crawl per query (10 results per page). Page 1 typically contains Local Services Ads, the local 3-pack, and organic results; later pages are organic only.

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

Proxy settings. Residential proxies are strongly recommended — Google aggressively blocks datacenter IPs.

## Actor input object example

```json
{
  "searchQueries": [
    "plumbers in Austin",
    "roof repair in Chicago"
  ],
  "language": "en",
  "countryCode": "us",
  "device": "desktop",
  "maxResultsPerQuery": 20,
  "maxPages": 3,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `results` (type: `string`):

No description

## `summaries` (type: `string`):

No description

# 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": [
        "plumbers in Austin",
        "roof repair in Chicago"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("piotrv1001/local-services-ads-google-verified-scraper").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": [
        "plumbers in Austin",
        "roof repair in Chicago",
    ],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("piotrv1001/local-services-ads-google-verified-scraper").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": [
    "plumbers in Austin",
    "roof repair in Chicago"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call piotrv1001/local-services-ads-google-verified-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=piotrv1001/local-services-ads-google-verified-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Local Services Ads & Google Verified Scraper",
        "description": "The Local Services Ads & Google Verified Scraper extracts businesses from Google local searches — Local Services Ads, Google Verified badges, local pack rankings, ratings, reviews, phones, and websites — ideal for local SEO agencies, lead gen, and competitor tracking.",
        "version": "0.0",
        "x-build-id": "1h9EAPW6j0bRzmaes"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/piotrv1001~local-services-ads-google-verified-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-piotrv1001-local-services-ads-google-verified-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/piotrv1001~local-services-ads-google-verified-scraper/runs": {
            "post": {
                "operationId": "runs-sync-piotrv1001-local-services-ads-google-verified-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/piotrv1001~local-services-ads-google-verified-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-piotrv1001-local-services-ads-google-verified-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": [
                    "searchQueries"
                ],
                "properties": {
                    "searchQueries": {
                        "title": "Search queries",
                        "type": "array",
                        "description": "Local-service search queries to monitor. Examples: 'plumbers in Austin', 'roof repair in Chicago', 'personal injury lawyer in Miami'.",
                        "default": [
                            "plumbers in Austin"
                        ],
                        "items": {
                            "type": "string"
                        }
                    },
                    "location": {
                        "title": "Location",
                        "type": "string",
                        "description": "Optional location to bias results toward. If a query already contains a location, this is used as a fallback."
                    },
                    "language": {
                        "title": "Language",
                        "type": "string",
                        "description": "Google interface language code (e.g. 'en', 'de', 'pl').",
                        "default": "en"
                    },
                    "countryCode": {
                        "title": "Country",
                        "type": "string",
                        "description": "Google country code for geolocation (e.g. 'us', 'gb', 'pl').",
                        "default": "us"
                    },
                    "device": {
                        "title": "Device",
                        "enum": [
                            "desktop",
                            "mobile"
                        ],
                        "type": "string",
                        "description": "Device profile to emulate. Affects user agent and which surfaces Google renders.",
                        "default": "desktop"
                    },
                    "maxResultsPerQuery": {
                        "title": "Max results per query",
                        "minimum": 1,
                        "maximum": 200,
                        "type": "integer",
                        "description": "Global cap on business records returned per query (across all paginated pages). Once reached, remaining pages of that query are skipped.",
                        "default": 20
                    },
                    "maxPages": {
                        "title": "Max pages per query",
                        "minimum": 1,
                        "maximum": 10,
                        "type": "integer",
                        "description": "How many Google search pages to crawl per query (10 results per page). Page 1 typically contains Local Services Ads, the local 3-pack, and organic results; later pages are organic only.",
                        "default": 3
                    },
                    "proxyConfiguration": {
                        "title": "Proxy configuration",
                        "type": "object",
                        "description": "Proxy settings. Residential proxies are strongly recommended — Google aggressively blocks datacenter IPs.",
                        "default": {
                            "useApifyProxy": true,
                            "apifyProxyGroups": [
                                "RESIDENTIAL"
                            ]
                        }
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
