Articles on: Data Management

How to Scrape All Businesses in a Country Using Google Maps Search Export?

One of the most common questions we get is “ Can I scrape all businesses in a country using your Google Maps scraper?

How to collect all listings from US
The short answer is, Yes, you can.

But how?

You can scrape businesses across an entire country in two simple ways:

Using Google Maps URL Generator tool
Using the task parameters

Here’s how both methods work.

Method 1: Use the Google Maps URL Generator



This is the easiest way to scrape businesses from an entire country.

Just go to Go to the Google Maps URL Generator tool and follow the following 3 simple steps.

Generate all country Google Maps URLs

Enter your keyword
Select the country you want to target
Click Generate

Now download that list of URLs and upload it directly into the Google Maps Search Export scraper.

Upload tasks to Squid

The scraper will go through each URL and collect all the listings it finds.

This method is perfect if you want to cast a wide net and collect business data from across a whole country in one go.


Method 2: Use the task parameters



If you want more control over where you're scraping, this method lets you target specific areas using parameters.

You can use the Use params feature for this.

When you enable this feature, the scraper accepts structured input through the following parameters:

You must specify a category to add tasks. The scraper doesn't support collecting data from all categories yet.

Using the parameters

Category – The type of business you're searching for
Country – The country where you want to scrape businesses
Admin 1 – The first-level administrative division, such as a state or province
Admin 2 – The second-level administrative division, usually the county within a state (if applicable)
City – The city you want to target

These parameters follow a natural location hierarchy: Country → State (Admin 1) → County (Admin 2) → City

Now let's learn how to use the use params feature to:

Collect all business listings from entire country
Collect all business listings from a state or county
Collect all business listings from a city or zipcode

How to collect all business listings from entire country?



How to collect all business listings from an entire country?

Go to `Add tasks`and turn on Use params
Select your targeted business category (e.g. Restaurants)
Choose your targeted country (United States)
Click Add tasks button

How to collect all business listings from a state or county?



You can fill the Admin 1 and Admin 2 to get all business listings from a state or county.

For example, to get all Restaurants from Illinois, USA, you can enter "illinois" in Admin 1 .

To get all Restaurants from a specific county like Cook county in Illinois, you can enter county name in Admin 2 .

Collect all businesses in specific category from a County or State

How to collect all business listings from a city or zip code?



To further narrow down to a specific city, just click the x next to "All cities" and then type the city name.

For example, let's collect all Restaurants from Chicago, or more specifically from zip codes 60601 to 60605.

Collect all restaurants from chicago

How accurate are these results?



Let’s be honest: Google Maps isn’t perfect.

Sometimes it shows listings from the wrong category, wrong location, or, if you’re really lucky, both.



We’re just scraping what Google gives us, so if Google’s a little confused, the data will reflect that.

To help with this, every result from the scraper includes a Match Filter column.

This tells you how closely the listing matches your original search or parameters.

You can learn more about Match filters in this article.

Updated on: 22/04/2025

Was this article helpful?

Share your feedback

Cancel

Thank you!