Google Maps leads to HubSpot with n8n
Businesses from a Google Maps search arrive in HubSpot as contacts with company name, phone, website, address and the first email found on their site. A place that was already sent is skipped, so a daily run does not create duplicate contacts.
You need a HubSpot private app token with permission to write contacts, stored in an n8n Header Auth credential. Edit the search queries in the request body before the first run.
Built-in nodes only Imports on n8n Cloud and self-hosted n8n 1.80 or later, no community nodes. 11 of 11 checks pass; validated, not executed.
- Source
- Google Maps
- Destination
- HubSpot
- Store price
- $0.99 per 1,000 results (pay per event)
- Cost on the Free plan
- about $0.42 a run (start $0.40 + up to 20 results), about $12.59 a month daily, plus platform usage
- Data checked
- 2026-11-12
Method
-
Get an Apify token
Sign in to Apify and copy a personal API token from Console: Settings, API and integrations. The workflow keeps it in an n8n credential, never in the file.
-
Import the workflow
In n8n choose Workflows, Import from file, or paste the JSON onto an empty canvas.
- Run by hand
- Every day
- Run Apify Actor
- Only records not sent before
- Send to HubSpot
n8n workflowgoogle-maps-leads-to-hubspot.n8n.json
Show the file (173 lines)
{ "name": "Google Maps leads to HubSpot", "nodes": [ { "id": "09d04a4e-578a-4f95-a165-602461264353", "name": "Run by hand", "type": "n8n-nodes-base.manualTrigger", "typeVersion": 1, "position": [ 0, 0 ], "parameters": {} }, { "id": "3d6ebdfe-1295-4d3f-a9db-3f52c567689b", "name": "Every day", "type": "n8n-nodes-base.scheduleTrigger", "typeVersion": 1.2, "position": [ 0, 200 ], "parameters": { "rule": { "interval": [ { "triggerAtHour": 8 } ] } }, "notes": "Activate the workflow to run on this schedule." }, { "id": "7bddf492-ddd1-4b88-a45a-a609e658168b", "name": "Run Apify Actor", "type": "n8n-nodes-base.httpRequest", "typeVersion": 4.2, "position": [ 260, 100 ], "parameters": { "method": "POST", "url": "https://api.apify.com/v2/actors/vexaloom-labs~google-maps-business-lead-finder-with-email/run-sync-get-dataset-items", "authentication": "genericCredentialType", "genericAuthType": "httpHeaderAuth", "sendBody": true, "specifyBody": "json", "jsonBody": "{\n \"mode\": \"searchPlaces\",\n \"searchQueries\": [\n \"coffee shops in Austin TX\"\n ],\n \"maxPlacesPerSearch\": 20,\n \"language\": \"en\",\n \"extractEmailsFromWebsite\": true,\n \"maxEmailsPerWebsite\": 5,\n \"maxContactPagesPerWebsite\": 2,\n \"onlySaveResults\": \"allPlaces\",\n \"websiteFilter\": \"allPlaces\",\n \"skipClosedPlaces\": false\n}", "options": { "timeout": 310000 } }, "notes": "Actor: vexaloom-labs/google-maps-business-lead-finder-with-email. Select a Header Auth credential: name Authorization, value Bearer + your Apify token. Edit the JSON body to change the input.", "notesInFlow": false }, { "id": "f8c5e76e-60d5-48ed-a308-982422984f3b", "name": "Only records not sent before", "type": "n8n-nodes-base.removeDuplicates", "typeVersion": 2, "position": [ 500, 100 ], "parameters": { "operation": "removeItemsSeenInPreviousExecutions", "logic": "removeItemsWithAlreadySeenKeyValues", "dedupeValue": "={{ $json.placeId }}", "options": { "scope": "node", "historySize": 10000 } }, "notes": "Remembers each placeId it has passed on (up to 10,000) across runs, so a record is sent once. Needs n8n 1.64 or later." }, { "id": "a212f4c6-f383-4d0f-aa8e-d0c67f6fb4fb", "name": "Send to HubSpot", "type": "n8n-nodes-base.httpRequest", "typeVersion": 4.2, "position": [ 740, 100 ], "parameters": { "method": "POST", "url": "https://api.hubapi.com/crm/v3/objects/contacts", "authentication": "genericCredentialType", "genericAuthType": "httpHeaderAuth", "sendBody": true, "specifyBody": "json", "jsonBody": "={{ JSON.stringify({ properties: Object.fromEntries(Object.entries({ company: $json.title || $json.name, phone: $json.phone, website: $json.website, email: Array.isArray($json.emails) ? $json.emails[0] : $json.email, address: $json.address }).filter(([, v]) => v)) }) }}", "options": {} }, "notes": "Create a Header Auth credential: name Authorization, value Bearer + your HubSpot private app token (crm.objects.contacts.write).", "onError": "continueRegularOutput" }, { "id": "95c340fe-bff8-44db-a3c2-d9aa4c75f93b", "name": "Setup", "type": "n8n-nodes-base.stickyNote", "typeVersion": 1, "position": [ 0, -370 ], "parameters": { "content": "## Google Maps Business Lead Finder with Email & Social Links\n\nSource: [vexaloom-labs/google-maps-business-lead-finder-with-email](https://apify.com/vexaloom-labs/google-maps-business-lead-finder-with-email) on Apify.\n\n1. In **Run Apify Actor**, create a Header Auth credential: name `Authorization`, value `Bearer YOUR_APIFY_TOKEN` with your token.\n2. Open **Send to Webhook** and replace the URL with yours.\n3. Edit the JSON body of **Run Apify Actor** to change the input.\n\nGenerated by recipeforagents.com. Validated, not executed: runs are billed to your Apify account.", "height": 340, "width": 460, "color": 6 } } ], "connections": { "Run by hand": { "main": [ [ { "node": "Run Apify Actor", "type": "main", "index": 0 } ] ] }, "Every day": { "main": [ [ { "node": "Run Apify Actor", "type": "main", "index": 0 } ] ] }, "Run Apify Actor": { "main": [ [ { "node": "Only records not sent before", "type": "main", "index": 0 } ] ] }, "Only records not sent before": { "main": [ [ { "node": "Send to HubSpot", "type": "main", "index": 0 } ] ] } }, "pinData": {}, "active": false, "settings": { "executionOrder": "v1" }, "meta": { "templateCredsSetupCompleted": false }, "tags": [] }Validated, not executed: 11 of 11 checks pass
- It has a nodes array and a connections object
- Every node has a name, type, typeVersion, position and parameters
- Node names are unique
- Every node type is a known n8n core node (or the Apify node)
- Every node uses a typeVersion that n8n ships
- Every connection points at an existing node
- At least one trigger starts the workflow
- Every working node is reachable from a trigger
- Apify calls use POST and a credential for the token
- Actor input matches the Actor's published input schema
- No token or credential value is embedded
-
Add the Apify credential
Open Run Apify Actor. Under Credential, create a Header Auth credential with the name
Authorizationand the valueBearer, a space and your token. -
Set the input
The request body holds the Actor input: the Actor's Store prefill with maxPlacesPerSearch set for this recipe. Change maxPlacesPerSearch to your own.
{ "mode": "searchPlaces", "searchQueries": [ "coffee shops in Austin TX" ], "maxPlacesPerSearch": 20, "language": "en", "extractEmailsFromWebsite": true, "maxEmailsPerWebsite": 5, "maxContactPagesPerWebsite": 2, "onlySaveResults": "allPlaces", "websiteFilter": "allPlaces", "skipClosedPlaces": false }Every input field is documented on the Google Maps Business Lead Finder with Email & Social Links page.
-
Only new records go through
The Only records not sent before node (n8n's Remove Duplicates, set to remove items processed in previous executions) remembers each
placeIdit has passed on, so a record reaches HubSpot once even when the next run returns it again. It needs n8n 1.64 or later; clear its history from the node to resend everything. -
Connect HubSpot
Open Send to HubSpot and create a Header Auth credential: name Authorization, value Bearer plus a HubSpot private app token with contact write access.
-
Run once, then turn it on
Click Execute workflow and check the first records in HubSpot. When they look right, activate the workflow so the daily trigger runs it at 08:00 in your instance's timezone.
Where it breaks
- HubSpot rejects properties your portal does not have; the workflow uses the standard company, phone, website, email and address properties.
- The skip list lives in n8n. If HubSpot already has a contact with the same email, it rejects that one record and the run carries on with the rest.
- The workflow uses Apify's synchronous endpoint, which waits up to 300 seconds. Bigger runs answer HTTP 408: lower the limit or switch to an asynchronous run.
- Each run is billed to your Apify account at the Store price ($0.99 per 1,000 results (pay per event)).
Bigger runs: the long-run workflow starts the run, waits for it and reads the dataset, so it never hits the 300-second limit.
If the workflow fails
Why does the workflow or script stop with HTTP 408?
The synchronous endpoint waits at most 300 seconds. After that it answers 408 while the run keeps going in Apify. Lower the result limit, or start the run asynchronously, wait for it to finish and then read its dataset.
Source: Apify API: run Actor synchronously and get dataset items
What do 400, 401, 402 and 403 from the Apify API mean?
Read error.type in the response body. 400 is invalid Actor input. 401 (user-or-token-not-found) means a token reached Apify but it is wrong or revoked. 402 with x402-payment-required means no token reached Apify at all: the n8n credential or the Authorization: Bearer header is missing, and Apify is offering its pay-per-run x402 route for agents instead; any other 402 is an exhausted usage limit on the account that pays for the run. 403 is a token without permission for that Actor or storage.
Source: Apify API: authentication; Apify documentation: agentic payments with x402; Apify API: run Actor synchronously and get dataset items
n8n says Install this node to use it after import. Why?
The workflow names a node or node version your instance does not have, usually a community node. The workflows here use only built-in nodes at versions n8n has shipped since 1.80, so they import on n8n Cloud and older self-hosted instances without community nodes.
Why does the HTTP Request node time out before Apify answers?
Set the node's Timeout option to at least 300000 ms so n8n waits as long as Apify's synchronous endpoint. The workflows here already set 310000. A failure at exactly 30 seconds points to a proxy in front of n8n.
Same data in an agent
Want Claude, Cursor or ChatGPT to call the Actor directly instead of on a schedule? The Google Maps Business Lead Finder with Email & Social Links page has MCP configs for eight clients and a SKILL.md. The Google Maps MCP server bundles every Google Maps Actor in one URL.
Questions
Which HubSpot permission does the token need?
Write access to CRM contacts. Create a private app in HubSpot, grant it contact write access and paste its token into the credential as Bearer plus the token.
Can I map more fields, such as rating?
Yes. Create a custom contact property in HubSpot and add it to the JSON body of the Send to HubSpot node next to the existing properties.
More recipes
Google Maps leads to Google Sheets
Pull local business leads from Google Maps into a Google Sheet on a schedule, with phone, website, rating…
Google MapsGoogle SheetsGoogle Maps competitor scan to Slack
Scan a map area grid for one kind of business and post each competitor to Slack with its rating, review…
Google MapsSlackBuilt In hiring companies to HubSpot
Add the tech companies hiring in a city to HubSpot as company records, with industries, headquarters…
Built InHubSpot