Maps Search
Search Maps for local businesses and save the places into a Parvenu list.
POST /maps_search_list
Search Maps the way a customer would, by a term like plumbers plus a place, and write every business found into a list. Each place is saved with its name, website, category, full address, phone number, rating, review count and map URL.
Credits are reserved when the search is submitted and the unused part is refunded when it finishes. Asking for 1,000 places holds 1,000 credits and returns the balance if only 800 come back. Contacts are charged after they are found and are not part of the reservation.
Headers
Content-Type
application/json
Body
api_key
string
Your API Key.
listname
string
The list to create or add the places to.
search_term
string
What to search for, e.g. "plumbers".
max_results
integer
Optional. Places to fetch. Minimum 1, default 10.
country
string
Optional. Country to search in, e.g. "United States".
state
string
Optional. State or province to search in.
city
string
Optional. City to search in.
postal_code
string
Optional. Postal or ZIP code to narrow the search.
require_website
boolean
Optional. Drop places that have no website (default false). Dropped places are not billed.
find_contact
boolean
Optional. Also look for people working at each place found (default false). Needs at least one job title in titles. 1 credit per contact with a valid or catch-all email, nothing for the rest, on top of the per-place charge.
titles
array[string]
Required when find_contact is true: at least one job title, e.g. ["Owner","President","General Manager"]. Without one the request is refused and nothing is charged.
contact_location
array[string]
Optional. Location filter for those contacts. Look values up with /search_lead_locations.
Response
This endpoint starts a background job and answers with an acknowledgement, not the places. See Response Format for the fields every endpoint returns.
status
Job state: queued, processing, done, not_found, cancelled or error.
job_id
The job handle, as a string.
list_name
The list the places are being written to.
rows_selected
How many places the job will actually look for.
max_rows
How many you asked for.
truncated
true when the job was cut down to fit your balance.
credits_estimated
Credits reserved for the run. The unused part is refunded when it finishes.
credits_per_row
Credits charged per place returned.
contacts_max
With find_contact on, the most contacts this run can return. 0 otherwise.
contacts_credits_max
The most the contacts can cost: 1 credit each, charged only for contacts with a valid or catch-all email.
message
A short note about the job.
Poll /check_list_status until the list reports done, then download the rows.
Example
Returned with HTTP 422 when find_contact is true and titles is empty. Nothing is charged.
What each place comes back with
organization_name
The business name.
current_company_website
Its website, when it has one.
current_industry
The listing category, e.g. Dentist.
address
Street address.
city
City.
state
State or province.
postal_code
Postal or ZIP code.
country
Country name.
country_code
Two-letter country code.
company_phone
Phone number on the listing.
rating
Star rating out of 5.
review_count
How many reviews that rating is based on.
google_maps_url
Link to the listing on the map.
place_id
The map provider's ID for the place.
Retrieving results