---
title: "How to get Google Maps data"
description: "Get Google Maps businesses by keyword and city with address, phone, website, rating and hours, plus review histograms and photos, as JSON. Places API limits, code and prices."
canonical_url: https://groundsocial.dev/guides/how-to-get-google-maps-data
---
# How to get Google Maps data

> Get Google Maps businesses by keyword and city with address, phone, website, rating and hours, plus review histograms and photos, as JSON. Places API limits, code and prices.

_Checked 2026-11-27._

Google’s Places API is the official route: billed per request and field set, at most 60 results per text search and 5 reviews per place, with a Cloud billing account. A data API reads Google Maps as a visitor sees it: one GET returns up to 120 businesses with phone, website, rating and hours, 2 credits.

> **Checked 27 November 2026** Every request on this page was run against the live API on that date, and the sample response is from that run. Official-API facts link to the platform’s own pages.

## The official Google API

Google’s Places API (New) is solid, and priced by what you ask for:

- Text Search returns up to 20 places a page and 60 per query.
- Place Details returns at most 5 reviews plus an AI summary; asking for reviews bills the Enterprise + Atmosphere SKU.
- You need a Google Cloud project with billing enabled, and Google’s terms limit caching results.

Sources: [Text Search (New)](https://developers.google.com/maps/documentation/places/web-service/text-search), [Place Details (New)](https://developers.google.com/maps/documentation/places/web-service/place-details).

## Quick start

1. **Get a key.** [Sign up](https://groundsocial.dev/app/sign-in?new=1) with an email code: 100 free credits, no card. An agent can sign itself up with `POST https://api.groundsocial.dev/v1/agent/signup`.
2. **Set it in your shell.** `export GROUNDSOCIAL_API_KEY=gs_live_…`
3. **Make the call.** Businesses matching a search: `GET /v1/google/business/search`, 2 credits.

cURL:

```bash
curl "https://api.groundsocial.dev/v1/google/business/search?query=coffee&location=Austin%2C%20TX&limit=20" \
  -H "Authorization: Bearer $GROUNDSOCIAL_API_KEY"
```

TypeScript:

```ts
const res = await fetch('https://api.groundsocial.dev/v1/google/business/search?query=coffee&location=Austin%2C%20TX&limit=20', {
  headers: { Authorization: `Bearer ${process.env.GROUNDSOCIAL_API_KEY}` },
})
if (!res.ok) throw new Error((await res.json()).error.hint)
const data = await res.json()
```

Python:

```python
import os, requests

res = requests.get(
    "https://api.groundsocial.dev/v1/google/business/search?query=coffee&location=Austin%2C%20TX&limit=20",
    headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()
```

## Sample response

Trimmed from the real response on 27 November 2026: lists cut to their first items and long strings shortened. Every field is described in the [tutorial](https://groundsocial.dev/tutorials/google/maps-business-search/python).

```json
{
  "query": "coffee near Austin, TX",
  "results": [
    {
      "data_id": "0x8644ca6bc309e81b:0x1f1a903bbb66839",
      "cid": "140078896924485689",
      "place_id": "ChIJG-gJw2vKRIYROWi2uwOp8QE",
      "kgmid": "/g/1v76_180",
      "name": "Epoch Coffee",
      "categories": [
        "Coffee shop"
      ],
      "address": "221 W N Loop Blvd, Austin, TX 78751",
      "address_lines": [
        "221 W N Loop Blvd"
      ],
      "neighborhood": "North Loop",
      "city": "Austin, TX",
      "coordinates": {
        "lat": 30.318603699999997,
        "lng": -97.7245402
      },
      "rating": 4.5
    }
  ]
}
```

## What else you can get from Google

| What you get | Endpoint | Credits |
| --- | --- | --- |
| [Businesses matching a search](https://groundsocial.dev/tutorials/google/maps-business-search/python) | `GET /v1/google/business/search` | 2 |
| [One business in full](https://groundsocial.dev/tutorials/google/business-profile/python) | `GET /v1/google/business/info` | 1 |
| [Rating histogram and reviews](https://groundsocial.dev/tutorials/google/maps-reviews/python) | `GET /v1/google/business/reviews` | 1 |
| [A business’s photos](https://groundsocial.dev/tutorials/google/maps-photos/python) | `GET /v1/google/business/photos` | 1 |
| [Local pack results](https://groundsocial.dev/tutorials/google/places-search/python) | `GET /v1/google/search/places` | 1 |

Each row links to its tutorial. Every Google endpoint and price: [Google API](https://groundsocial.dev/google-api).

## Tips

- `limit` goes up to 120; `min_rating`, `open_now` and `open_on_day`/`open_at_hour` filter in the same call.
- Use `lat`/`lng`/`zoom` instead of `location` to sweep a city block by block.
- Keep `place_id` or `cid`: the info, reviews and photos endpoints take either.
- Reviews: Maps shows logged-out visitors about five, like the Places API; what you gain is the full 1–5 star histogram and count.

## Use it from Claude or Cursor (MCP)

Every endpoint is also an MCP tool on the remote server `https://api.groundsocial.dev/mcp`. The `?platforms=google` below loads only the Google tools. The client signs in with OAuth, or send your key as a Bearer token. Tools used in this guide: `google_business_search`, `google_business_info`, `google_business_reviews`, `google_business_photos`, `google_search_places`.

Claude Code:

```bash
claude mcp add --transport http groundsocial "https://api.groundsocial.dev/mcp?platforms=google"
```

Cursor:

```json
{
  "mcpServers": {
    "groundsocial": {
      "url": "https://api.groundsocial.dev/mcp?platforms=google"
    }
  }
}
```

Claude.ai:

```text
Customize → Connectors → + Add → Add custom connector
URL: https://api.groundsocial.dev/mcp?platforms=google
```

> **Then ask** “Find 40 coffee shops in Austin, TX with a rating above 4.5 and list their websites and phone numbers.”

Setup for ChatGPT, VS Code, Windsurf, n8n and others: [MCP client setup](https://groundsocial.dev/mcp).

## Pricing

Pay per call from prepaid credits; no subscription. 100 free credits cover the examples on this page. Costs below are at the [credit packs](https://groundsocial.dev/pricing)’ highest and lowest rates.

| Job | Credits | Cost |
| --- | --- | --- |
| 1,000 businesses (10 searches of 100+) | 20 | $0.02 → $0.01 |
| 50 categories × 20 cities | 2,000 | $2.00 → $0.80 |
| Rating histograms of 1,000 places | 1,000 | $1.00 → $0.40 |

## FAQ

### Do I get emails?

No. You get what the Maps listing shows: phone, website and address.

### Are failed calls charged?

No. A target that does not exist answers `404 target_not_found`, an upstream failure answers `503`, and neither costs anything. Credits never expire.

### Is Groundsocial official?

No. Groundsocial is an independent API that reads what the platform shows a logged-out visitor. Google is a trademark of Google LLC. We are not affiliated with or endorsed by Google.

## Go deeper

- [Google tutorials: 15 endpoints in six languages](https://groundsocial.dev/tutorials/google)
- [How do I get Google search results via an API?](https://groundsocial.dev/answers/how-to-get-google-search-results-via-api)
- [Is the Google Custom Search JSON API being discontinued?](https://groundsocial.dev/answers/is-google-custom-search-api-discontinued)
- [How many reviews does the Google Places API return?](https://groundsocial.dev/answers/how-many-reviews-does-google-places-api-return)
- [SerpApi alternatives](https://groundsocial.dev/alternatives/serpapi)
- [Apify alternatives](https://groundsocial.dev/alternatives/apify)
- [Lead generation API](https://groundsocial.dev/use-cases/lead-generation-api)
- [Review monitoring API](https://groundsocial.dev/use-cases/review-monitoring-api)

## Related guides

- [How to get Google Trends data](https://groundsocial.dev/guides/how-to-get-google-trends-data)
- [How to get LinkedIn data](https://groundsocial.dev/guides/how-to-get-linkedin-data)

Google is a trademark of Google LLC. We are not affiliated with or endorsed by Google.

_Canonical HTML: https://groundsocial.dev/guides/how-to-get-google-maps-data_

## Site Navigation

### Global Hub
- [Home](https://groundsocial.dev/index.md)
- [Pricing](https://groundsocial.dev/pricing.md)
- [Endpoints](https://groundsocial.dev/endpoints.md)
- [For agents](https://groundsocial.dev/agents.md)
- [Docs](https://groundsocial.dev/docs.md)
- [Compare](https://groundsocial.dev/compare.md)
- [Blog](https://groundsocial.dev/blog.md)
- [Tutorials](https://groundsocial.dev/tutorials.md)
- [Changelog](https://groundsocial.dev/changelog.md)
- [llms.txt](https://groundsocial.dev/llms.txt)
- [Agent skill](https://groundsocial.dev/SKILL.md)

### On This Topic
- [Groundsocial: Social data in one API call](https://groundsocial.dev/index.md)
- [Pricing](https://groundsocial.dev/pricing.md)
- [Playground](https://groundsocial.dev/playground.md)
- [Use cases](https://groundsocial.dev/use-cases.md)
- [Brand monitoring API](https://groundsocial.dev/use-cases/brand-monitoring-api.md)
- [Social listening API](https://groundsocial.dev/use-cases/social-listening-api.md)
- [Comment scraping API](https://groundsocial.dev/use-cases/comment-scraping-api.md)
- [Influencer discovery API](https://groundsocial.dev/use-cases/influencer-discovery-api.md)
- [Video transcript API](https://groundsocial.dev/use-cases/video-transcript-api.md)
- [Ad library API](https://groundsocial.dev/use-cases/ad-library-api.md)
- [Review monitoring API](https://groundsocial.dev/use-cases/review-monitoring-api.md)
- [Trend detection API](https://groundsocial.dev/use-cases/trend-detection-api.md)
- [Social lead generation API](https://groundsocial.dev/use-cases/lead-generation-api.md)
- [Market research API](https://groundsocial.dev/use-cases/market-research-api.md)

## Structured data

```json
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://groundsocial.dev/"},{"@type":"ListItem","position":2,"name":"Guides","item":"https://groundsocial.dev/guides"},{"@type":"ListItem","position":3,"name":"How to get Google Maps data","item":"https://groundsocial.dev/guides/how-to-get-google-maps-data"}]}
```
