Google Maps B2B Lead Scraper (AI-enhanced) avatar
Google Maps B2B Lead Scraper (AI-enhanced)

Under maintenance

Pricing

Pay per usage

Go to Store
Google Maps B2B Lead Scraper (AI-enhanced)

Google Maps B2B Lead Scraper (AI-enhanced)

Under maintenance

Developed by

OneForAll

OneForAll

Maintained by Community

0.0 (0)

Pricing

Pay per usage

0

Total users

4

Monthly users

4

Runs succeeded

>99%

Last modified

16 days ago

Google Maps scraping Actor

This Actor searches Google Maps for businesses and extracts contact information from the search results. It uses Selenium to control a headless Chrome browser and sends each result's HTML to an LLM through OpenRouter to parse the details.

The scraper produces structured data for each business, including its name, rating, address, phone number and other useful fields. Results are stored in the Actor's default dataset.

Environment variables

  • OPENROUTER_API_KEY – required API key used to authenticate requests to OpenRouter. Set this variable locally in your shell or in the Environment variables section when configuring the Actor on Apify.
  • SENTRY_DSN – optional Sentry DSN to capture errors and performance metrics. If defined, the Actor sends exceptions and profiling data to your Sentry project.

Input

The Actor accepts the following fields:

FieldDescriptionDefault
querySearch keyword (e.g. "dentiste")"dentiste"
cityCity to search in"Montpellier"
max_resultsMaximum number of business cards to process5

Example

{
"query": "dentiste",
"city": "Montpellier",
"max_results": 5
}

Sample output

[
{
"Name": "Cabinet Dentaire Example",
"Rating": "4.8",
"Nb_reviews": "32",
"Address": "123 Rue Exemple, 34000 Montpellier",
"Hours": "Ouvert \u2212 ferme \u00e0 18:00",
"Phone": "+33 4 67 00 00 00",
"Link": "https://maps.google.com/?cid=123",
"Website": "https://cabinet.example"
},
{
"Name": "Dentiste Demo",
"Rating": "4.7",
"Nb_reviews": "20",
"Address": "456 Avenue Demo, 34000 Montpellier",
"Hours": "Ouvert \u2212 ferme \u00e0 19:00",
"Phone": "+33 4 67 11 22 33",
"Link": "https://maps.google.com/?cid=456",
"Website": ""
}
]

Getting started

  1. Install dependencies:

    $pip install -r requirements.txt
  2. Export your environment variables so the scraper can access them:

    export OPENROUTER_API_KEY=<your-openrouter-api-key>
    # Optional: enable Sentry error reporting
    export SENTRY_DSN=<your-sentry-dsn>
  3. Run the Actor locally:

    $apify run

Deploy to Apify

  1. Login to Apify with your API token:

    $apify login
  2. Set OPENROUTER_API_KEY and SENTRY_DSN in the Actor's Environment variables tab on the Apify console.

  3. Deploy the project:

    $apify push

Once the build finishes you can run the Actor from the Apify console or via the API.