Skip to main content
Create a key by entering a name on the API keys page, then copy it into 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.
Generate a fresh identifier for each intended search. Keep the same identifier and request body if you retry this search.
A live submission normally returns 202; a test fixture returns 200. The response contains a job under data, not the final list of businesses:
This is an illustrative contract example. Copy the actual data.id returned by your request.

2. Follow the job

Poll with bounded backoff and a deadline. Stop at 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

Read 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.