scraper
Back to API docs

Overview

  • Overview

SERP

  • POSTSERP

Core

  • POSTGeocode
  • POSTTranslate
  • POSTSearch
  • POSTVision
  • POSTPlaces Search
  • POSTPlace Details
  • POSTPlaces Nearby
  • POSTAutocomplete

Maps

  • POSTSearch
  • POSTPlace Details
  • POSTReviews

Hotels

  • POSTSearch
  • POSTDetail
  • POSTReviews
  • POSTPhotos

Play

  • POSTReviews

Flights

  • POSTOne-way Search
  • POSTCalendar
  • POSTExplore

Jobs

  • POSTJobs Search

Finance

  • POSTQuote
  • POSTFundamentals
  • POSTChart
  • POSTNews
  • POSTSearch
  • POSTEstimates
  • POSTEarnings

Google Maps Search

2 credits

Search for places on Google Maps.

POST/api/v1/tools/google/maps/search

Parameters

querystring

Search query (e.g. "pizza near me", "hotels in Paris"). Provide query, searchTerms, placeIds, or companies.

searchTermsstring[]

Up to 10 search terms, run in order and merged into one list without repeats. Replaces query. maxResults covers all terms together, and each place lists its term in matchedQuery.

placeIdsstring[]

Up to 100 place IDs (e.g. "ChIJN1t_tDeuEmsRUsoyG83frY4"), place URLs, CID URLs (?cid=...), or share links (maps.app.goo.gl). A Maps search URL (/maps/search/coffee/@37.77,-122.41,14z) searches the map area it shows, up to maxResults. Query and location are ignored.

companiesobject[]

Up to 50 companies. Each entry has name and city, with optional state and country. Each place carries the position of its company in inputIndex. Query, location, and placeIds are ignored.

maxResultsPerCompanynumber

Maximum places to return for each company (1-20). Defaults to 1.

languagestring

BCP-47 language code for localized results (e.g. "en", "ja", "fr"). Defaults to "en".

regionstring

ISO 3166-1 alpha-2 region code (e.g. "us", "jp", "fr"). Defaults to "us".

locationstring

Address, city, or area. A search needs an area: customGeolocation, a boundary field, both coordinates, or location. That is also the order in which they apply.

latitudenumber

Center latitude (-90 to 90).

longitudenumber

Center longitude (-180 to 180).

countrystring

Country name or code (e.g. "US", "Germany"). With state, county, city, or postalCode, the search covers the exact boundary of the area. An area with no boundary, such as a US ZIP code, is searched around its center with the radius.

statestring

State, province, or region (e.g. "Texas", "Bavaria").

countystring

County or district (e.g. "Kings County").

citystring

City or town (e.g. "Austin").

postalCodestring

Postal code (e.g. "10115").

customGeolocationobject

A GeoJSON Polygon, MultiPolygon, or Point. Coordinates are [longitude, latitude]. A Point is the center of a circle with its own radiusKm, or with the search radius when radiusKm is absent. Overrides the boundary fields.

searchTypestring

"area" (default) returns places with known positions inside the search area. "nearby" returns the places that best match the query near the point, about 60 at most for each search term.

zoomnumber

Map zoom level (1-21). Defaults to 14.

radiusKmnumber

Search radius in km. Defaults to 50. Capped at 5,000 km. Do not send it with radius.

radiusnumber

Search radius in radiusUnit. Defaults to 50. Capped at 5,000 km. Use it instead of radiusKm.

radiusUnitstring

"km" (default) or "mi". Sets the unit of radius. radiusKm is always km.

maxResultsnumber

Maximum places to return, over all search terms together. Defaults to 20. 0 sets no limit, up to 100,000. A search that runs out of time returns the places found so far with truncated set.

openNowboolean

Only return places that are currently open.

open24Hoursboolean

Only return places that are open 24 hours.

openAtobject

Only return places open at a specific day/time. Properties: day (1=Mon to 7=Sun), hour (0-23).

minRatingnumber

Only return places with at least this average rating. Must be from 2 through 4.5. The scraper rounds the filter to the nearest 0.5.

priceLevelsstring[]

Only return places matching these price levels. Values: "1" ($), "2" ($$), "3" ($$$), "4" ($$$$).

categorystring

Google category ID to filter by (e.g. "sushi_restaurant", "italian_restaurant", "ramen_restaurant"). Available categories depend on query/location.

skipClosedPlacesboolean

Leave out places that are closed temporarily or permanently.

websiteFilterstring

"all" (default), "withWebsite" (only places that have a website), or "withoutWebsite" (only places that have none).

titleMatchstring

Compare each place name with the search term that found it. "contains": the name includes all words of the term, in order (e.g. "chicken" keeps "Chicken Shack"). "exact": the name is the term. Case, accents, and punctuation are ignored. Default "all".

categoryFiltersstring[]

Up to 50 words. Keep only places with a category that contains one of them (e.g. "restaurant" keeps "Italian restaurant", but "bar" does not keep "Barber shop"). Categories are in the request language. These filters run before maxResults.

includeRichFieldsboolean

Adds the details that a search leaves out: photos (with imagesCount and totalPhotoCount), review quotes, featured reviews, price per person, popular times, live busyness, typical time spent, amenities, related places, menu, popular dishes, tickets, tours, owner details and posts, cover photo, street view, review counts per star, review topics, ratings from other sites, visitor updates, regions, and similar hotels. A place that Google has no details for keeps its search fields. The search is slower. If the time runs out, or the owner, review, and region fields of a place cannot be read, the places not fully read keep their search fields and truncated is true. When fields is omitted, these fields are in the defaults. A call with this option costs 5 credits.

includePhotosboolean

Adds each place's photo and video listing, with the author and upload details of each. This turns on includeRichFields, so the call costs 5 credits. Photos are listed up to maxPhotos. Each place is slower. When the listing cannot be read, the place keeps the photos from the search and truncated is true.

maxPhotosnumber

Maximum photos per place when includePhotos is on. Defaults to 200. 0 lists all the photos that Google shows, up to about 2,100 for the busiest places. Videos are listed in addition. Range 0 to 10,000.

includeWebResultsboolean

Adds each place's web results: the top web pages about it, such as its own site or social profiles. This turns on includeRichFields, so the call costs 5 credits. Each place is slower. A place with no web results gets an empty list. webResults is missing, and truncated is true, when the pages could not be read.

includeContactsboolean

Finds email addresses, social profiles, and the owners and managers named on each place's own website. Google Maps does not publish business emails. Reads the website and up to 3 contact, legal, or about pages on it, so the search is slower. The text that the owner wrote on Google is also read for emails. Every place gets emails, socialProfiles, contactPersons, and contactsStatus (scraped, no_website, skipped, blocked, or failed), which are in the defaults when fields is omitted. A website that is still open near the 60-second limit gets contactsStatus failed. A call with this option costs 5 credits.

includePlacesInsideboolean

Also returns the places inside each result, such as the shops in a mall, one level deep. Each one lists the outer place in parentPlaceId. They come after the results and are extra to maxResults, up to 500. Min rating, price levels, skip closed places, and the website filter also apply to them. If the time runs out, truncated is true.

sortBystring

Sort order for results. One of "relevance" (default), "distance", "price", "rating".

hotelClassnumber[]

Hotel star ratings to include (2-5). Example: [4, 5] for 4-star and 5-star hotels.

hotelPriceobject

Hotel price range filter. Properties: min (number), max (number), currency (3-letter code, e.g. "USD", "JPY").

fieldsstring[]

Fields per place. Omit for defaults: placeId, title, categories, rating, reviewCount, formattedAddress, latitude, longitude, phone, website, businessStatus, priceRange. A search with several terms also returns matchedQuery, a company lookup also returns inputIndex, places inside also return parentPlaceId, includeRichFields adds the rich fields, and includeContacts adds emails, socialProfiles, contactPersons, and contactsStatus. Use ["*"] for all.

Response Schema

dataobject

Google Maps search result

resultsobject[]

Array of place objects. Fields depend on the fields parameter. Default fields: placeId, title, categories, rating, reviewCount, formattedAddress, latitude, longitude, phone, website, businessStatus, priceRange.

countnumber

Number of results returned

metaobject

Request metadata

toolstring

Tool name (google-maps-search)

creditsUsednumber

Credits consumed (2, or 5 when includeRichFields, includePhotos, includeWebResults, or includeContacts is on)

requestIdstring

Unique request ID

Request

curl -X POST https://scraper.run/api/v1/tools/google/maps/search \
-H "Authorization: Bearer sc_live_..." \
-H "Content-Type: application/json" \
-d '{
"query": "best pizza",
"location": "New York, NY",
"maxResults": 10
}'

Response Example

{
"data": {
"results": [
{
"placeId": "ChIJWbGLc9JYwokRaGMkH7wlF3g",
"title": "Joe's Pizza",
"categories": [
"Pizza restaurant"
],
"rating": 4.5,
"reviewCount": 12450,
"formattedAddress": "7 Carmine St, New York, NY 10014",
"latitude": 40.7306,
"longitude": -74.0021,
"phone": "+1 212-366-1182",
"website": "https://www.joespizzanyc.com",
"businessStatus": "OPERATIONAL",
"priceRange": "$"
}
],
"count": 1
},
"meta": {
"tool": "google-maps-search",
"creditsUsed": 2,
"requestId": "req_abc123"
}
}