> ## Documentation Index
> Fetch the complete documentation index at: https://help.lobstr.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Scrape all businesses in a country with Google Maps search export

> Collect business listings across an entire country using the lobstr.io Google Maps URL Generator or the Use Params feature — in a few clicks.

One of the most common questions: **"Can I scrape all businesses in a country using the Google Maps scraper?"**

<Frame>
  <img src="https://mintcdn.com/lobstrio-8dcae32c/w79jonrYGdq1PCcO/images/how-to-scrape-all-businesses-in-a-country-using-google-maps-search-export/image_upyj5e.png?fit=max&auto=format&n=w79jonrYGdq1PCcO&q=85&s=d1be997ae4abb6a8556757c69ef61282" alt="How to collect all listings from a country" width="892" height="194" data-path="images/how-to-scrape-all-businesses-in-a-country-using-google-maps-search-export/image_upyj5e.png" />
</Frame>

**Short answer: yes.** You can do it in two ways:

1. Using the Google Maps URL Generator tool
2. Using the task parameters (`Use params`)

## Method 1: use the Google Maps URL generator

The easiest way to scrape businesses from an entire country.

Go to the [Google Maps URL Generator](https://www.lobstr.io/tools/google-maps-search-urls-generator) and follow three steps:

<Frame>
  <img src="https://mintcdn.com/lobstrio-8dcae32c/w79jonrYGdq1PCcO/images/how-to-scrape-all-businesses-in-a-country-using-google-maps-search-export/image_1hkfvye.png?fit=max&auto=format&n=w79jonrYGdq1PCcO&q=85&s=db615bf3aa5f3624905c2a5f7ec604df" alt="Generate country-wide Google Maps URLs" width="1333" height="807" data-path="images/how-to-scrape-all-businesses-in-a-country-using-google-maps-search-export/image_1hkfvye.png" />
</Frame>

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

Download the list of URLs, then upload it directly into the Google Maps Search Export scraper.

<Frame>
  <img src="https://mintcdn.com/lobstrio-8dcae32c/w79jonrYGdq1PCcO/images/how-to-scrape-all-businesses-in-a-country-using-google-maps-search-export/image_1ik138s.png?fit=max&auto=format&n=w79jonrYGdq1PCcO&q=85&s=95ef4af225658380b747d695070efb6e" alt="Upload tasks to the Squid" width="1600" height="742" data-path="images/how-to-scrape-all-businesses-in-a-country-using-google-maps-search-export/image_1ik138s.png" />
</Frame>

The scraper goes through each URL and collects all listings it finds. Perfect when you want to cast a wide net and pull business data from 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 structured parameters. Enable the **Use params** feature.

<Frame>
  <img src="https://mintcdn.com/lobstrio-8dcae32c/w79jonrYGdq1PCcO/images/how-to-scrape-all-businesses-in-a-country-using-google-maps-search-export/image_d76iqq.png?fit=max&auto=format&n=w79jonrYGdq1PCcO&q=85&s=49aa3751970bf38f47e8ada15b41f3d2" alt="Using the Use Params feature" width="865" height="461" data-path="images/how-to-scrape-all-businesses-in-a-country-using-google-maps-search-export/image_d76iqq.png" />
</Frame>

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

Available parameters:

* **Category** — the type of business you're searching for.
* **Country** — the country where you want to scrape.
* **Admin 1** — first-level administrative division (state or province).
* **Admin 2** — second-level administrative division (e.g. county).
* **City** — the city you want to target.

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

### Collect all business listings from an entire country

<Frame>
  <img src="https://mintcdn.com/lobstrio-8dcae32c/w79jonrYGdq1PCcO/images/how-to-scrape-all-businesses-in-a-country-using-google-maps-search-export/chromesskycnw5pq_xehwkc.gif?s=faac646aa7af43b6cdb3c285905ca306" alt="Collect all business listings from an entire country" width="1039" height="764" data-path="images/how-to-scrape-all-businesses-in-a-country-using-google-maps-search-export/chromesskycnw5pq_xehwkc.gif" />
</Frame>

1. Go to **Add tasks** and turn on **Use params**.
2. Select your targeted business category (e.g. Restaurants).
3. Choose your targeted country (e.g. United States).
4. Click **Add tasks**.

### Collect all business listings from a state or county

Fill in **Admin 1** and **Admin 2** to narrow down to a state or county.

For example, to get all Restaurants from Illinois, enter "illinois" in **Admin 1**. To target a specific county like Cook County within Illinois, enter the county name in **Admin 2**.

<Frame>
  <img src="https://mintcdn.com/lobstrio-8dcae32c/w79jonrYGdq1PCcO/images/how-to-scrape-all-businesses-in-a-country-using-google-maps-search-export/image_kunab0.png?fit=max&auto=format&n=w79jonrYGdq1PCcO&q=85&s=ad806ce57d6055b85f926f14a47cca32" alt="Collect all businesses from a county or state" width="875" height="471" data-path="images/how-to-scrape-all-businesses-in-a-country-using-google-maps-search-export/image_kunab0.png" />
</Frame>

### Collect all business listings from a city or zip code

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

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

<Frame>
  <img src="https://mintcdn.com/lobstrio-8dcae32c/w79jonrYGdq1PCcO/images/how-to-scrape-all-businesses-in-a-country-using-google-maps-search-export/image_4uweeh.png?fit=max&auto=format&n=w79jonrYGdq1PCcO&q=85&s=20ac0177c05e51f62e64c0a1a210f560" alt="Collect all restaurants from Chicago zip codes" width="856" height="734" data-path="images/how-to-scrape-all-businesses-in-a-country-using-google-maps-search-export/image_4uweeh.png" />
</Frame>

## How accurate are these results?

Google Maps isn't perfect — sometimes it shows listings from the wrong category, wrong location, or both.

<Frame>
  <img src="https://mintcdn.com/lobstrio-8dcae32c/w79jonrYGdq1PCcO/images/how-to-scrape-all-businesses-in-a-country-using-google-maps-search-export/image_19y7em7.png?fit=max&auto=format&n=w79jonrYGdq1PCcO&q=85&s=96f2d750a52259617b7c131ff914b747" alt="Google Maps inaccurate results" width="1268" height="151" data-path="images/how-to-scrape-all-businesses-in-a-country-using-google-maps-search-export/image_19y7em7.png" />
</Frame>

lobstr.io is scraping what Google gives it, so if Google's a little confused, the data will reflect that. To help, every result includes a **Match Filter** column telling you how closely each listing matches your search or parameters.

Learn more: [Google Maps filtering: geo & category match](/guides/google-maps/filtering).
