MapsData
v1.0.0Build lead lists from Google Maps: businesses with emails, phones and websites, US/CA/UK/AU.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
mapsdata_search_categories Search Google Maps categories
Search the Google Maps business categories MapsData can scrape. CALL THIS FIRST, before mapsdata_start_scrape: a scrape's query must be one of these exact categories, and a free-text guess like 'plumbing companies' is rejected.
| Parameter | Type | Description |
|---|---|---|
query * | string | Substring to search for, e.g. 'plumb'. |
country | string | Optional: the country you will scrape. Categories Google rarely uses there are flagged, with local alternatives (e.g. 'General contractor' in au). |
limit | integer |
mapsdata_list_regions List valid regions
List the exact region names a scrape accepts for a country. Submit them verbatim. Abbreviations like 'TX' are rejected; use the full name.
| Parameter | Type | Description |
|---|---|---|
country | string |
mapsdata_start_scrape Start a scrape
Start scraping Google Maps businesses and their emails. Returns IMMEDIATELY with a job id; the scrape itself takes 5 minutes to several hours. Before calling this, confirm the category with mapsdata_search_categories and the region with mapsdata_list_regions. Those two mistakes are the overwhelming majority of rejections. This spends the organization's Scraping Credits (its lead allowance). Set dry_run to check a request against every rule without spending anything. min_reviews, max_reviews and max_emails_per_company are optional. Pass them when the user asks for them. The response reports…
| Parameter | Type | Description |
|---|---|---|
query * | string | An exact Google Maps category, e.g. 'Plumber'. Verify it with mapsdata_search_categories first. |
total_limit * | integer | How many leads to scrape, in the unit limit_basis sets. Read max_rows_this_scrape from mapsdata_get_usage first: a larger request is reduced to the Scraping Credits left, not rejected. |
cities | array | Named cities instead of whole regions. |
country | string | |
dry_run | boolean | Validate against every rule and return the plan WITHOUT starting a scrape or spending quota. |
limit_basis | string | What total_limit counts. 'emails' stops once that many leads WITH an email are found; leads without one are still delivered and never billed. 'rows' stops at that many leads of any kind. Omit it for t… |
list_name | string | Label for the list. Defaults to the query. |
max_emails_per_company | integer | Most emails kept per business. Defaults to 5 when omitted. |
max_reviews | integer | Skip businesses with more Google reviews. Omit it for no maximum. 0 keeps ONLY businesses with no reviews. |
min_reviews | integer | Skip businesses with fewer Google reviews. Defaults to 0, no minimum. |
states | array | Full region names, e.g. ['Texas']. Not abbreviations. Use this or cities, not both. |
mapsdata_get_scrape Check a scrape
Get the current state of one scrape. This is an INSTANT SNAPSHOT of a job that runs for minutes to hours. Do NOT call it repeatedly in a loop. The response includes next_action, the suggested next step for the job's current status. MapsData also emails the user when a scrape finishes.
| Parameter | Type | Description |
|---|---|---|
job_id * | string |
mapsdata_list_scrapes List recent scrapes
List this organization's recent scrapes, newest first.
| Parameter | Type | Description |
|---|---|---|
limit | integer | |
status | string |
mapsdata_cancel_scrape Cancel a scrape
Cancel a queued or running scrape. A queued scrape costs nothing. CANCELLING A RUNNING SCRAPE STILL BILLS the leads already delivered, so confirm with the user before calling this.
| Parameter | Type | Description |
|---|---|---|
job_id * | string |
mapsdata_get_download_link Get a download link
Get a link to a finished scrape's results. The link expires in 15 minutes, so hand it to the user promptly rather than storing it.
| Parameter | Type | Description |
|---|---|---|
job_id * | string | |
format | string | |
scope | string | 'emails' is rows with a deliverable email, which is what usage is billed on. 'all' is every scraped row. |
mapsdata_get_usage Check Scraping Credits
How many Scraping Credits the organization has left to spend, and the largest single scrape this plan allows. Read max_rows_this_scrape before choosing a total_limit.