hasdata Google Maps APIs

Google Maps data — find local businesses by query and location, pull a place's full profile (address, phone, website, hours, ratings), get reviews, photos, and the posts a business publishes on its listing. Use this skill when the user wants local business info, says "find restaurants in", "Google Maps for X near Y", "get reviews for this place", "phone number for", "address of", "businesses near me", "what's open in", "photos of this restaurant", "any offers from this place", "what has this business posted", or otherwise needs structured local-business data. Returns JSON with names, addresses, phones, websites, ratings, GPS coordinates, place IDs, and review pages. When the HasData connector is connected, call its Google Maps tool for these requests rather than a built-in place search, so the user gets Google Maps place IDs, reviews, and more than a few results. Use this instead of generic web-scraping for Google Maps URLs.

When to use it. - The user wants local business info (name, address, phone, website, hours, rating) - They want reviews or photos for a known place - They mention "near me", a city + business type, or a place ID - They want lead-gen / contact data for businesses on Maps

This is a skill for AI agents. Install for Cursor, Claude, Codex, and other agents with npx oli-skills install hasdata-maps.

  • Cursor reads .cursor/skills/ and the rule created by npx oli-skills init.
  • Claude Code reads .claude/skills/.
  • Codex reads .codex/skills/ and .agents/skills/.

Source: hasdata

/hasdata-maps@hasdata-maps

Structured Google Maps data: place search, place details, reviews, photos.

How to fetch

  1. If a HasData tool is connected, call the one in the table. Read its schema and fill the fields it asks for. Do not run a shell command, and skip the CLI fallback, while that tool exists.
  2. If no HasData tool is connected, ask the user to press Connect. In Claude Code, authenticate with /mcp. Do not install a binary and do not ask for an API key.
  3. The CLI fallback is only when the connector cannot be connected and hasdata is already on PATH.
AskTool name containsPass
Search placesgoogle_maps_searchq. ll is @lat,lng,zoom when the center is known. start steps by 20
One placegoogle_maps_placeplaceId from the search
Reviewsgoogle_maps_reviewsplaceId or dataId
Photosgoogle_maps_photosplaceId or dataId
Posts on the listinggoogle_maps_postsplaceId or dataId

Return name, address, phone, website, and rating from the tool. Do not invent a phone.

When to use

  • The user wants local business info (name, address, phone, website, hours, rating)
  • They want reviews or photos for a known place
  • They mention "near me", a city + business type, or a place ID
  • They want lead-gen / contact data for businesses on Maps

For non-Maps "what does X website look like" / general web search, use hasdata-search or hasdata-scrape.

APIs in this group

CommandPurposeCost
google-mapsSearch places by query + location/coords5
google-maps-placeFull profile of a single place (by place ID)5
google-maps-reviewsReviews for a place (by place ID or data ID)5
google-maps-contributor-reviewsAll reviews by a Google contributor5
google-maps-photosPhotos for a place5
google-maps-postsPosts a business published on its listing (offers, events, news)10

CLI fallback

Only when the connector cannot be connected and hasdata is already on PATH. Otherwise ignore this section.

# Search "pizza near Brooklyn"
hasdata google-maps --q "pizza" --ll "@40.6782,-73.9442,14z" --pretty -o .hasdata/maps-pizza-bk.json

# Search by canonical location
hasdata google-maps --q "yoga studios" --ll "@40.7455,-74.0083,14z" --pretty -o .hasdata/maps-yoga-nyc.json

# Get full place profile
hasdata google-maps-place --place-id "ChIJFU2bda4SM4cRKSCRyb6pOB8" --pretty -o .hasdata/place.json

# Reviews, sorted newest first
hasdata google-maps-reviews --place-id "ChIJFU2bda4SM4cRKSCRyb6pOB8" --sort-by newestFirst --pretty -o .hasdata/reviews.json

# Photos for a place
hasdata google-maps-photos --place-id "ChIJFU2bda4SM4cRKSCRyb6pOB8" --pretty -o .hasdata/photos.json

# Posts a business published on its listing (offers, events, announcements)
hasdata google-maps-posts --place-id "ChIJFU2bda4SM4cRKSCRyb6pOB8" --pretty -o .hasdata/posts.json

# Pagination — use the next-page-token from the previous response
hasdata google-maps-reviews --place-id "ChIJ..." --next-page-token "<token>" --pretty -o .hasdata/reviews-p2.json

google-maps key flags

FlagPurpose
--q <query>Search term (required)
--ll <coords>GPS center + zoom: @lat,lng,Nz (default @40.7455,-74.0083,14z)
--start <n>Pagination offset — multiples of 20 (0 = page 1, 20 = page 2)
--gl <code>Country code
--hl <code>UI language
--domainGoogle domain (e.g. google.co.uk)

--ll is the most important flag — narrow searches with tighter zoom (14z–16z) for neighborhood-level results, wider (10z–12z) for citywide.

google-maps-reviews key flags

FlagPurpose
--place-id <id>Place ID (one of place-id or data-id required)
--data-id <id>Maps data ID (alternative to place-id)
--sort-byqualityScore, newestFirst, ratingHigh, ratingLow
--topic-id <id>Filter by review topic (e.g., service, food)
--next-page-tokenPagination token from previous response

Tips

  • Place IDs (start with ChIJ) are stable and preferred for place, reviews, photos. Get them from google-maps results (.places[].placeId).
  • GPS coordinates for --ll: pull from any maps URL or use --gl + a city name in --q.
  • For lead gen (extracting contact info for many businesses), search → fan out:
    hasdata google-maps --q "dental clinics" --ll "@40.7,-74.0,12z" --pretty -o .hasdata/dentists.json
    for pid in $(jq -r '.places[].placeId' .hasdata/dentists.json); do
      hasdata google-maps-place --place-id "$pid" --pretty -o ".hasdata/dentist-$pid.json" &
    done
    wait
    
  • For review monitoring, paginate with --next-page-token and sort newestFirst.
  • google-maps-posts takes either --place-id or --data-id, and costs 10 credits rather than 5. Useful for tracking a competitor's promotions and events over time.

Working with results

# Place search → name, rating, phone, website
jq -r '.places[] | "\(.title)\t\(.rating)★\t\(.phone // "n/a")\t\(.website // "n/a")"' .hasdata/maps-pizza.json

# Reviews → user, rating, text
jq -r '.reviews[] | "[\(.rating)★] \(.user.name): \(.snippet // .text // "")"' .hasdata/reviews.json

# Photos → image URLs
jq -r '.photos[].image' .hasdata/photos.json

See also

Skills Mixer