GMSCRAPER_API_KEY in your local environment or secret manager. New dashboard keys are live keys and already include the permissions needed for this walkthrough. See API keys and authentication for key management.
Live requests use your API allowance and require API entitlement and an available capability. Check availability before submitting this search. If you already have a test key, you can use it for simulated responses instead; the dashboard no longer offers test-key creation.
1. Submit a search
Generate a fresh identifier for each intended search. Keep the same identifier and request body if you retry this search.202; a test fixture returns 200. The response contains a job under data, not the final list of businesses:
data.id returned by your request.
2. Follow the job
succeeded, partial, failed, or canceled. A timeout does not cancel an accepted job. For failures, inspect error_code; report partial as incomplete.
3. Read the results
data.records, data.job_status, data.is_complete, and data.next_cursor. Follow the opaque cursor to read more stored results. This is different from submitting another Google Maps source page.
Only report the requested job as complete when the results say is_complete: true. Label any test response as simulated.
Next: export results, handle errors, or connect MCP.