> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://lobstr.crisp.help/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# 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](https://storage.crisp.chat/users/helpdesk/website/-/f/3/f/3/f3f3be820b67c800/image_upyj5e.png)
**The short answer is, Yes, you can.**

But how?

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

1. [Using Google Maps URL Generator tool](#3-method-1-use-the-google-maps-url-generator)
2. [Using the task parameters](#3-method-2-use-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](https://www.lobstr.io/tools/google-maps-search-urls-generator) and **follow the following 3 simple steps**.

![Generate all country Google Maps URLs](https://storage.crisp.chat/users/helpdesk/website/-/f/3/f/3/f3f3be820b67c800/image_1hkfvye.png)

1. Enter your keyword
2. Select the country you want to target
3. Click `Generate`

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

![Upload tasks to Squid](https://storage.crisp.chat/users/helpdesk/website/-/f/3/f/3/f3f3be820b67c800/image_1ik138s.png)

**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](https://storage.crisp.chat/users/helpdesk/website/-/f/3/f/3/f3f3be820b67c800/image_d76iqq.png)

* **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:

1. [Collect all business listings from entire country](#3-how-to-collect-all-business-listings-from-entire-country)
2. [Collect all business listings from a state or county](#3-how-to-collect-all-business-listings-from-a-state-or-county)
3. [Collect all business listings from a city or zipcode](#3-how-to-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?](https://storage.crisp.chat/users/helpdesk/website/-/f/3/f/3/f3f3be820b67c800/chromesskycnw5pq_xehwkc.gif)

* 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](https://storage.crisp.chat/users/helpdesk/website/-/f/3/f/3/f3f3be820b67c800/image_kunab0.png)

### 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](https://storage.crisp.chat/users/helpdesk/website/-/f/3/f/3/f3f3be820b67c800/image_4uweeh.png)
### 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.

![](https://storage.crisp.chat/users/helpdesk/website/-/f/3/f/3/f3f3be820b67c800/image_19y7em7.png)

**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](https://lobstr.crisp.help/en/article/how-does-filtering-work-in-google-maps-search-export-1jhnduu/).