Google Maps B2B Lead Scraper (AI-enhanced)
Under maintenance
Pricing
Pay per usage
Google Maps B2B Lead Scraper (AI-enhanced)
Under maintenance
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:
Field | Description | Default |
---|---|---|
query | Search keyword (e.g. "dentiste") | "dentiste" |
city | City to search in | "Montpellier" |
max_results | Maximum number of business cards to process | 5 |
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
-
Install dependencies:
$pip install -r requirements.txt -
Export your environment variables so the scraper can access them:
export OPENROUTER_API_KEY=<your-openrouter-api-key># Optional: enable Sentry error reportingexport SENTRY_DSN=<your-sentry-dsn> -
Run the Actor locally:
$apify run
Deploy to Apify
-
Login to Apify with your API token:
$apify login -
Set
OPENROUTER_API_KEY
andSENTRY_DSN
in the Actor's Environment variables tab on the Apify console. -
Deploy the project:
$apify push
Once the build finishes you can run the Actor from the Apify console or via the API.
On this page
Share Actor: