Google Maps Fetch

Fetches Google Maps search HTML with browser-like fingerprint and full cookie capture (NID, CONSENT, SOCS, AEC)

Google Maps Fetch

AI-generated

Summary

Fetches a Google Maps search page as HTML using a browser-like fingerprint and extracts cookie details.

Inputs

  • searchQuery (required) — Search query string for Google Maps (e.g., 'restaurants in delhi').
  • lat — Latitude coordinate to set the center of the map view.
  • lng — Longitude coordinate to set the center of the map view.
  • zoom — Zoom level (3-21) for the map view.
  • hl — Language code for the request (e.g., 'en').
  • gl — Country code for the request (e.g., 'in').
  • options — Additional request options including proxy URL, cookies, device profile, timeout, and HTML return setting.

Output shape

array of items with a 'json' property containing the fetched map data

Each json includes url, final_url, status, cookies, cookie_string, nid, consent, socs, aec, html_length, and optionally html; missing fields are null.

Examples

Example 1: Search for pizza in New York and retrieve full HTML

searchQuery='pizza in new york', hl='en', gl='us', options={'returnHtml':true,'device':'chrome-desktop'}

Example 2: Get map centered at specific coordinates using mobile device profile

lat='40.7128', lng='-74.0060', zoom=12, device='chrome-mobile', returnHtml=false

Links

Discussion