AI & ML

How to Get Business Listings from Google Maps into a Spreadsheet: Options, Rules and Trade-Offs

· 5 min read
Community Article
Community articles are authored by SitePoint Premium contributors. Content is screened before publication, and SitePoint reserves the right to moderate or remove articles that violate our guidelines. Views expressed are those of the authors and do not necessarily reflect those of SitePoint.

How to Get Business Listings from Google Maps into a Spreadsheet: Options, Rules and Trade-Offs

DJ
Div John
Published in
·Updated:

The AI briefing for Developers

Stay up to date with AI tools, model releases, and developer workflows that matter.

Weekly. Free. One click to leave.

Share this article

How to Get Business Listings from Google Maps into a Spreadsheet: Options, Rules and Trade-Offs
SitePoint Premium
Stay Relevant and Grow Your Career in Tech
  • Premium Results
  • Publish articles on SitePoint
  • Daily curated jobs
  • Learning Paths
  • Discounts to dev tools
Start Free Trial

7 Day Free Trial. Cancel Anytime.

Sales teams, marketers and researchers often want business names, addresses, phone numbers, ratings and websites from Google Maps in a spreadsheet they can sort and share. Copying them by hand works for a dozen listings and breaks down at a few hundred: rows get duplicated, digits get mistyped and the data is stale by the time you finish.

The harder question is not how to extract the data but what you are allowed to do with it. This article compares the realistic options, explains what Google's own terms say, shows what the official Places API returns and includes a small tested Python helper that turns API responses into a clean, deduplicated CSV. Terms, prices and limits change, so confirm current details in each provider's documentation. This is general information, not legal advice.

Key Takeaways

  • Check the rules before the tooling. Google's Maps Platform terms say customers will not export, extract or scrape Google Maps Content for use outside the services, and give copying and saving business names and addresses as an example.
  • The official route is the Places API. It returns structured fields, but it has quotas, billing and its own terms about what you may store.
  • Scraping tools exist, and they are not a loophole. A tool that runs the scraping for you does not change what the terms say, and you remain responsible for how you use the output.
  • Open data is a real alternative. For some projects, a source with a license that allows reuse avoids the problem entirely.
  • Clean the export. Deduplicate on a stable ID, drop closed businesses and standardize phone numbers before anyone uses the file.

What Data Is Available?

A Google Maps listing can include a business name, address, phone number, website, category, star rating, review count, opening hours, coordinates and an operating status. Listings do not include email addresses, so email outreach needs a separate, consent-aware step.

FieldTypical use
Name and addressIdentifying and deduplicating records, territory mapping
Phone number and websiteOutreach lists, lead qualification
CategorySegmenting a market
Rating and review countBenchmarking competitors
Business statusExcluding closed businesses

In the Places API (New), a response only contains the fields you ask for through a field mask, and the fields you request decide the price tier. Google's Text Search documentation lists display name, address and location at the Pro tier, and rating, review count, website and phone numbers at the Enterprise tier. That means a full lead sheet costs more per request than a name-and-address list.

Your Options Compared

OptionSkill neededScaleMain catch
Copy and paste by handNoneA few dozen listingsSlow and error-prone
Official Places APISome coding or a low-code connectorFast, within quotasBilling, quotas and storage restrictions in the terms
Third-party scraping platformNone to someThousands of rowsRelies on a vendor, and the terms question remains with you
Your own scraperDeveloperDepends on youMaintenance, blocking and the same terms question
Open or licensed datasetsLightVaries by regionCoverage and freshness differ from Google's
Buying a licensed datasetNoneLargeCost, and you must read the license

A sensible rule of thumb: hand collection for a small one-off list, the official API when your use fits Google's terms, and a licensed or open dataset when you need bulk records to keep in your own systems.

What Do the Rules Say?

Google's Maps Platform Terms of Service include a section on restrictions. Quoted briefly, it says customers will not export, extract or otherwise scrape Google Maps Content for use outside the Services, and lists examples such as bulk downloading places information and copying and saving business names, addresses or user reviews. It also restricts caching except as the Service Specific Terms allow, and restricts using the core services in a listings or directory service. Those terms apply to Maps Platform customers, so read the current text for your own situation and region.

The Service Specific Terms do allow caching some values. They say a customer may cache Place ID values in accordance with the documentation, and may temporarily cache latitude and longitude values from the Places API for up to 30 consecutive calendar days. The practical reading is that you can keep Place IDs and re-fetch details when you need them, rather than building a permanent copy of names and phone numbers.

The answer is nuanced, and it is often over-simplified. In hiQ Labs v. LinkedIn, the Ninth Circuit held that scraping publicly accessible data likely does not violate the Computer Fraud and Abuse Act. That did not end the case. In November 2022 the court found that hiQ had breached LinkedIn's User Agreement through its scraping and use of fake accounts, and the parties then settled with a $500,000 judgment and a permanent injunction, according to a Proskauer summary of the outcome.

The lesson is that a favorable ruling on one federal statute does not mean scraping is risk-free. Contract terms, privacy law such as GDPR or CCPA when records relate to individuals, and local law can all apply. Ask a lawyer if you plan to collect data at scale.

How a No-Code Scraper Fits In

A no-code scraping platform runs searches for you, reads the results and returns rows in CSV, Excel or JSON. Free Scrape.ly’s Google Maps scraper is one example. Its site describes a catalog of ready-made scrapers, lists a Google Maps scraper among them and says it offers free monthly usage with no credit card. Those are the vendor's own statements, and its page does not describe terms specific to scraping Google Maps. Check pricing, limits and acceptable-use rules on the vendor's site, and treat any platform as a way to automate a task, not as a way to remove the underlying terms.

Two practical limits apply to any approach. Google caps how many results one search returns: the Text Search documentation says a maximum of 60 results across all pages for a query, and that figure is subject to change. For a dense city, split the work into smaller searches by neighborhood or ZIP code, then merge and deduplicate the results.

A Helper You Can Run Today

If you use the official API, the clean-up step is the same whichever tool fetched the data. The Python module below builds a Text Search request with a field mask and a page size capped at 20, then turns one or more response pages into rows. It dedupes on the place ID, skips permanently closed places, normalizes whitespace and US-style phone numbers and writes a CSV. It does not send requests, so you can read, test and adapt it without a key.

"""Turn Places API (New) Text Search responses into clean spreadsheet rows."""
import csv
import io
import re

FIELDS = ["places.id", "places.displayName", "places.formattedAddress",
          "places.nationalPhoneNumber", "places.websiteUri", "places.rating",
          "places.userRatingCount", "places.businessStatus", "nextPageToken"]
COLUMNS = ["place_id", "name", "address", "phone", "website", "rating", "reviews", "status"]


def build_request(query, api_key, page_token=None, page_size=20):
    """Return (url, headers, body) for one Text Search page. Nothing is sent here."""
    body = {"textQuery": query, "pageSize": min(page_size, 20)}
    if page_token:
        body["pageToken"] = page_token
    headers = {"Content-Type": "application/json", "X-Goog-Api-Key": api_key,
               "X-Goog-FieldMask": ",".join(FIELDS)}      # no default mask exists, so always send one
    return "https://places.googleapis.com/v1/places:searchText", headers, body


def clean_phone(raw):
    """Keep digits and a leading plus, formatted as 10 digits when the number is US-style."""
    if not raw:
        return ""
    digits = re.sub(r"\D", "", raw)
    if len(digits) == 11 and digits.startswith("1"):
        digits = digits[1:]
    if len(digits) == 10:
        return "%s-%s-%s" % (digits[:3], digits[3:6], digits[6:])
    return ("+" if raw.strip().startswith("+") else "") + digits


def flatten(place):
    return {
        "place_id": place.get("id", ""),
        "name": " ".join((place.get("displayName") or {}).get("text", "").split()),
        "address": " ".join(place.get("formattedAddress", "").split()),
        "phone": clean_phone(place.get("nationalPhoneNumber")),
        "website": place.get("websiteUri", ""),
        "rating": place.get("rating", ""),
        "reviews": place.get("userRatingCount", ""),
        "status": place.get("businessStatus", ""),
    }


def to_rows(pages, drop_closed=True):
    """Merge several response pages: dedupe on place id, skip permanently closed places."""
    seen, rows = set(), []
    for page in pages:
        for place in page.get("places", []):
            row = flatten(place)
            if not row["place_id"] or row["place_id"] in seen:
                continue
            seen.add(row["place_id"])
            if drop_closed and row["status"] == "CLOSED_PERMANENTLY":
                continue
            rows.append(row)
    return rows


def to_csv(rows):
    out = io.StringIO()
    w = csv.DictWriter(out, fieldnames=COLUMNS)
    w.writeheader()
    w.writerows(rows)
    return out.getvalue()

The test uses small fixture responses shaped like the Text Search response. It checks that the field mask is always sent and has no spaces, that the page size is capped and the page token is passed on, that phone formats are normalized, that overlapping pages are merged without duplicates, that closed places and rows with no ID are skipped and that the CSV keeps commas inside quoted cells:

import csv, io
from places_export import build_request, clean_phone, to_rows, to_csv

# request: field mask is always present, page size is capped at 20, token is passed on
url, headers, body = build_request("coffee shops in Austin, TX", "KEY", page_size=50)
assert url.endswith("/v1/places:searchText")
assert headers["X-Goog-FieldMask"].startswith("places.id") and " " not in headers["X-Goog-FieldMask"]
assert body == {"textQuery": "coffee shops in Austin, TX", "pageSize": 20}
assert build_request("q", "KEY", page_token="abc")[2]["pageToken"] == "abc"

# phone formats
assert clean_phone("(512) 555-0142") == "512-555-0142"
assert clean_phone("+1 512 555 0142") == "512-555-0142"
assert clean_phone("+44 20 7946 0958") == "+442079460958"
assert clean_phone(None) == ""

# two pages that overlap, as happens when you split a city into several searches
page1 = {"places": [
    {"id": "p1", "displayName": {"text": "  Bean  There "}, "formattedAddress": "1 Main St,\n Austin, TX",
     "nationalPhoneNumber": "(512) 555-0142", "websiteUri": "https://example.com/bean",
     "rating": 4.6, "userRatingCount": 210, "businessStatus": "OPERATIONAL"},
    {"id": "p2", "displayName": {"text": "Old Roast"}, "formattedAddress": "9 Elm St, Austin, TX",
     "businessStatus": "CLOSED_PERMANENTLY"},
]}
page2 = {"places": [
    {"id": "p1", "displayName": {"text": "Bean There"}},          # duplicate of p1
    {"id": "p3", "displayName": {"text": "Third Wave"}, "formattedAddress": "5 Oak Ave, Austin, TX",
     "businessStatus": "CLOSED_TEMPORARILY"},
    {"displayName": {"text": "No id"}},                           # skipped: nothing to dedupe on
]}
rows = to_rows([page1, page2])
assert [r["place_id"] for r in rows] == ["p1", "p3"]             # duplicate, closed and id-less rows gone
assert rows[0]["name"] == "Bean There" and rows[0]["address"] == "1 Main St, Austin, TX"
assert rows[0]["phone"] == "512-555-0142"
assert len(to_rows([page1, page2], drop_closed=False)) == 3

# CSV opens with a header row and keeps commas inside quoted cells
parsed = list(csv.DictReader(io.StringIO(to_csv(rows))))
assert parsed[0]["address"] == "1 Main St, Austin, TX" and parsed[1]["phone"] == ""
print("all tests passed")

Save the module as places_export-py and the test beside it, then run the test with Python 3. It needs only the standard library, and it passed in our environment.

Limits of This Helper

  • It never calls the API, so quotas, errors, retries and billing are yours to handle.
  • The response shape follows Google's Text Search documentation, but it was tested against sample data, not live responses.
  • Phone cleanup is US-centric and leaves other formats mostly alone.
  • It does not decide whether you are allowed to store the data. Check the terms that apply to you first.

Cleaning a Spreadsheet Export

Whatever the source, run the same checks before the file reaches a CRM:

  • Duplicates: deduplicate on a stable ID where one exists, and on name plus address where it does not, especially after merging overlapping searches.
  • Missing fields: filter rows without a phone number or website if your use needs them.
  • Closed businesses: exclude permanently closed places, and treat temporarily closed ones as a flag.
  • Formatting: standardize phone numbers and trim stray spaces in names and addresses.
  • Spot checks: compare 10 to 20 random rows against the live listings.

Local business data goes stale as companies move, close and change numbers, so decide how often you refresh. Monthly is a common starting point for an active outreach list, but the right interval depends on how fast your market changes and what your license allows you to keep.

Privacy and Responsible Use

A list of businesses is not always a list of businesses. Sole traders and home-based businesses can publish a personal phone number, which makes it personal data in many jurisdictions. Decide what you collect and why, limit who can see it, set a retention period and honor opt-outs. Check the rules on cold calling and marketing messages in each country you contact.

Frequently Asked Questions

Can I get a Google Maps business list without coding?

You can copy listings by hand for small lists, or use a no-code tool or connector. Whichever you pick, check the data source's terms for what you may save and reuse.

Does the Places API return email addresses?

No. Listings include fields such as websites and phone numbers, but not emails.

How many results can one search return?

Google's Text Search documentation says a maximum of 60 results across all pages, subject to change. Split large areas into several searches.

Is it safe to scrape because courts allowed it in one case?

Not necessarily. The hiQ case shows that a ruling on one law did not settle the contract claims, and the terms of the site you scrape still matter.

What is a good alternative to Google data?

Open datasets with licenses that permit reuse, or licensed commercial datasets. Both avoid scraping, but coverage and freshness vary, so test them on your own area.

Conclusion

Getting Google Maps listings into a spreadsheet is easy to do and easy to get wrong. Start with the rules: Google's terms restrict scraping and saving business names and addresses, and a favorable court ruling in another case does not remove that risk. If your use fits the Places API, request only the fields you need, merge results carefully and clean the export before anyone relies on it. If it does not, look at licensed or open data instead. Either way, test on a small sample, document your sources and review the terms again whenever your use changes.

proton_pass_2026_11_footer
Source: Div John · www.sitepoint.com