MapsData

v1.0.0
ai.mapsdata/mapsdata Checked 4 days ago Published 1 month ago

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

ParameterTypeDescription
query *stringSubstring to search for, e.g. 'plumb'.
countrystringOptional: the country you will scrape. Categories Google rarely uses there are flagged, with local alternatives (e.g. 'General contractor' in au).
limitinteger

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.

ParameterTypeDescription
countrystring

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…

ParameterTypeDescription
query *stringAn exact Google Maps category, e.g. 'Plumber'. Verify it with mapsdata_search_categories first.
total_limit *integerHow 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.
citiesarrayNamed cities instead of whole regions.
countrystring
dry_runbooleanValidate against every rule and return the plan WITHOUT starting a scrape or spending quota.
limit_basisstringWhat 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_namestringLabel for the list. Defaults to the query.
max_emails_per_companyintegerMost emails kept per business. Defaults to 5 when omitted.
max_reviewsintegerSkip businesses with more Google reviews. Omit it for no maximum. 0 keeps ONLY businesses with no reviews.
min_reviewsintegerSkip businesses with fewer Google reviews. Defaults to 0, no minimum.
statesarrayFull 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.

ParameterTypeDescription
job_id *string

mapsdata_list_scrapes List recent scrapes

List this organization's recent scrapes, newest first.

ParameterTypeDescription
limitinteger
statusstring

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.

ParameterTypeDescription
job_id *string

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.