目录

Google Maps Scraper for n8n

Outscraper has been providing Google Maps scraping services for many years with its no-code and API service. It’s also possible to integrate Outscraper services with Zapier, Make.com, and Pabbly. 

A community node for n8n is now available, so you can add Outscraper服务 to your workflows. With Outscraper’s Google Maps Scraper, you can easily pull data from Google Maps into n8n workflows.

How to Install Google Maps Scraping Community Node in n8n?

To install the Outscraper n8n community node, you need to use a self-hosting n8n. For self-hosting n8n, you can use Digital Ocean or Hostinger. 

After installing the n8n on your server, you need to enter the settings menu on the dashboard screen to install the community node.

When “Settings” opens, select “Community Nodes” from the left menu.

You’ll see “Supercharge your workflows with community nodes. Install node packages contributed by our community.”

 Click the “Install a community node” button. It is possible to see and install all community nodes on npm by pressing the “Browse” button.

For installing Outscraper n8n community node, you can simply type “n8n-nodes-outscraper” in the “Package name” box and tick the “I understand the risks of installing unverified code from more info” checkbox. Just click the “install” button and n8n will automatically install the community node.

In the “Settings” section, you can install and uninstall community nodes whenever you want.

Community node has been successfully installed. We will now be able to see Outscraper services listed when adding nodes to workflows. 

Adding Credentials on n8n

On your n8n personal dashboard, you can see which credentials are currently added in the system. You can also add credentials for a service you want to use, such as Outscraper.

You can add the credentials you need to use the Outscraper service here. Click the arrow next to the “Create Workflow” button in the top right corner and select the “Create Credential” option.

In the “Add new credential” pop-up that opens, search for “Outscraper” and select the “Outscraper API” from the list.

In the “Outscraper account” window, you need to simply fill the “API key” box.

Visit your Outscraper 个人资料页 and copy “API Token” from there.

Paste it to “API Key” box on n8n dashboard and save it.

If connection tested successfully, it means that now you are ready to use Outscraper Google Maps Scraper on n8n automations. You can click “x” and continue.

Keep in mind, you can always edit and delete your credentials on settings page. 

Now you’re ready. Create a new workflow and set up a new automation to extract and use Google Maps data.

Using Google Maps Scraper Node on n8n

1. Create a Workflow

Now, you can create workflows in n8n and use the Outscraper Google Maps Data Scraper service. This allows you to integrate Google Maps data into your automations.

Click the “Create Workflow” button in the upper right corner to create new workflow. And you will be able to add nodes. 

The first step in your workflow should be a trigger node. It starts the workflow.

2. Add a Trigger Node - Chat Trigger

Outscraper’s n8n node doesn’t include a trigger. So, you’ll need to use another trigger and connect it to Outscraper actions.

To scrape data from Google Maps, you need to provide a query. This can be a search term or a place ID. Using a trigger to supply this query will let your workflow run dynamically.

For example, the trigger could be a new row added to Google Sheets, or any other data source. It’s completely up to you. You can also use the “Chat Trigger” node to manually enter the search query and get results instantly.

When you send a message in the chat, it will trigger the workflow. That same message will also be used as the query in the Outscraper node.

For example, if you want to get restaurant data, you can type something like:
Restaurants, Santa Barbara, California, United States” or paste a Google Maps link as your search query.

When you send “Restaurants, Santa Barbara, California, United States” or “https://www.google.com/maps/search/Restaurants,+Santa+Barbara,+California,+United+States/@34.4203832,-119.7117262,14z/data=!3m1!4b1?entry=ttu&g_ep=EgoyMDI1MDcwOS4wIKXMDSoASAFQAw%3D%3D” as a message to the chat, the Chat trigger node will forward this query to Outscraper.

Chat Trigger node is currently transferring the entered query as chatInput data to the next node.

The next step is to build the workflow by adding the Outscraper node to the “Chat Trigger” node.

3. Add a Outscraper Node - Search for businesses on google maps

Add a new node by clicking the “+” button next to the “Chat Trigger” node.

“What happens next?” menu will appear on the side. Search for “Outscraper” here. The Outscraper node will appear in the list; click it to access the node details.

Dozens of Outscraper actions are listed in the node details menu. Select the “Search for businesses on google maps” action.

You’ll see a “Parameters” and “Settings” menu when you select the action. You’ll need to configure the query and limit settings on this menu.

You’ve already seen that the “chatInput” data comes from the “Chat Trigger” node. Now, you’ll see it again in the Input field. Just drag the “chatInput” item and drop it into the “Query” box.

Adding “Query” is enough to make the node work.

In this case, you’ll see “{{ $json.chatInput }}” in green. This means the data is flowing correctly from one node to the next.

A preview of the data you sent shows up right below the “Query” box:
“Restaurants, Santa Barbara, California, United States”

The limit setting is entirely up to you. You can choose from 1, 5, or 100 items.

After setting the “Query” and “Limit”, you can test the workflow by clicking the “Execute step” button.

Outscraper Google Maps Scraper node ran successfully. It extracted Google Maps data. Here, as the first data point, you can see that the Google Maps data has been scraped.

One restaurant data appears at the top, but 50 search results were scraped along with it. When you look at the “Schema” section, you can see that the data is listed below each other.

Because all this data is grouped under “1 item,” sending it straight to a spreadsheet like Google Sheets won’t give correct results.
You need to use data iteration for this output.

In n8n, you can use the “Split Out” node to do the data iteration.

4. Add a Split Out Node - Data Iteration

Add a node by pressing the “+” button in the workflow dashboard. To turn a list of inside items into separate items, find and select the “Split Out” node in the list.

After adding the node, its parameters menu will open. Here, you’ll choose which data to split and iterate.

Drag and drop the “data[0]” item to “Fields To Split Out” box. And execute step to test it.

“Split Out” node appears to have successfully iterated through the data. It split one item into 50 different items. You can see this in the table section. 

Now you can transfer the scraped data to the any spreadsheet application as you wish.

5. Add a Google Sheets Node - Listing the results

Add a node by pressing the “+” button again in the workflow dashboard. Search for Google Sheets. After selecting the Google Sheets node, select the “Append row in sheet” action from the node actions list.

You need to add Google Sheets credentials to use the Google Sheets node to automate work and integrate with other applications. So firstly, please read and follow the guide to adding credentials to use the Google Sheets node from the n8n docs:

https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.googlesheets/

And create a new blank spreadsheet on your Google drive and rename it as you wish like “Outscraper Results”

Now it’s time to configure the parameters of the Google Sheets node.

Set the resource and operation parameters as shown in the screenshot. In the Document section, you can find and select the blank spreadsheet you created from the “From list” option.

In the “Sheets” option, select the name of the sheet in your blank spreadsheet from the list.

If you choose “Map Automatically” in the “Mapping Column Mode” option, a column will be created for every piece of extracted data, and all data will be added to the list. If you want to add only specific data, use the manual option instead.

Now that the parameters are complete, you can test this node by pressing the “Execute step” button.

Step executed successfully. It shows that 50 items were transferred as a table. Let’s open Google Sheets to check.

Everything looks perfect. Your workflow went through the whole process successfully, scraping the Google Maps data you requested and exporting it all to a spreadsheet. 

You’ve built an automation that will automatically extract data from Google Maps with any query you type into n8n Chat. Now save your workflow and use your automation anytime you want.

Outscraper Google Maps scraping service and all its other services are waiting for you to work in your automations.

Build Your Google Maps Scraper Automation Now

Sign up for Outscraper to get free credits and start building your own n8n automation today.
Signing up and trying Outscraper服务 is totally free.

常见问题

最常见的问题和答案

You can use the Outscraper node in n8n to scrape leads from Google Maps. It finds business names, phone numbers, websites, and addresses. Just add the node to your n8n workflow and start collecting leads automatically.

n8n with the free Outscraper community node. Install it on self-hosted n8n, add your API key, and build a workflow with trigger, Outscraper, and Google Sheets nodes. It’s easy and free. Outscraper gives you free credits on every month.

Outscraper has an n8n Google Maps API. Here’s how you can use it:

First, install the Outscraper community node in n8n. Then:

  1. Add a trigger (like Chat input)

  2. Add the Outscraper node (Google Maps Search)

  3. Split the data

  4. Send it to Google Sheets
    Now, your automation will scrape and save Google Maps data easily.

类别: 刮痧

尤努斯

市场营销人员、内容写作人员、客户体验开发人员----。 Facebook | 领英 | 推特