Base URL
Three workflows
1
Create an API key
Open API access, create a named key, and copy its
md_live_… value. Send it in the x-api-key header on every request.2
Find the UI-compatible location
Search the location catalog exactly as the Mapsdata UI does. For New York, use the returned
label as input.location and country_code as input.countryCode.3
Start a business search
Use one stable idempotency key for one logical search. If a network request times out, retry the same body with the same key.The API responds with
202 Accepted and a job_id.4
Poll status and read live results
Poll every 5–10 seconds. The results endpoint returns businesses already found even before the job reaches Continue requesting pages while
completed.has_more is true. Stop polling when status is completed or failed, then fetch every result page once more.Enrich businesses you already have
Submit a business name and absolute website URL for every company. This creates another asynchronous, UI-visible job without running Google Maps discovery.GET /enrichments/{job_id} and read GET /enrichments/{job_id}/results using the same pagination and terminal-state rules as searches.
Before a large request, call
Searches must request at least 100 businesses. Smaller requests return GET /account. Set maxResults no higher than both max_results_per_search and credits_remaining.422 without creating a job or reserving credits.
Next steps
- Read Authentication before storing a production key.
- Copy the complete Agent skill into Claude Code, Codex, or another coding agent.
- Review
POST /searchesfor credit and idempotency behavior. - Review
POST /enrichmentsfor supplied-business enrichment.
