{"operation":"places/search","version":"1.3.0","status":"pilot","title":"Search places","summary":"One page of places for a Google Maps search, 20 at most, as the results list shows them.","use_when":"You need the places Google Maps lists for a search such as \"dentist\" near a point or \"restaurants in Lyon\": name, categories, address, coordinates, phone, website, rating, opening hours. For one place's full profile, use google_maps/places/get; for its reviews, google_maps/reviews/list.","categories":["Lead generation"],"icon":"lens","source":"google_maps","input":{"type":"object","required":["query"],"additionalProperties":false,"properties":{"query":{"type":"string","minLength":1,"maxLength":200,"description":"What you would type in Google Maps' search box: a kind of place (\"dentist\"), a name, or both with a place (\"restaurants in Lyon\"). Results are ranked for `country` (default us) and written in `language` (default en): set them for a search elsewhere.","examples":["restaurants in Lyon","plumber"]},"near":{"type":"object","additionalProperties":false,"required":["lat","lng"],"description":"Optional: the point to search around, as the map would centre on it (\"bakery\" around a spot). Leave it out when the query names its place (\"restaurants in Lyon\", \"Le Vieux Lyon, Lyon\"): Google locates it, better than a guessed point. Left out with a query naming no place, Google uses the country.","properties":{"lat":{"type":"number","minimum":-90,"maximum":90},"lng":{"type":"number","minimum":-180,"maximum":180}}},"zoom":{"type":"integer","minimum":3,"maximum":20,"default":14,"description":"The map's zoom around `near`, from 3 (a continent) to 20 (a street). Google lists places from the whole area the map shows, ranked by relevance, not by distance: at 13 they spread about 4 km around `near`, at 15 about 1 km (a neighbourhood), at 17 a few hundred metres (a street). Used only with `near`."},"language":{"type":"string","pattern":"^[a-z]{2}$","default":"en","description":"The language of names, categories and hours, as an ISO 639-1 code."},"country":{"type":"string","pattern":"^[a-z]{2}$","default":"us","description":"The country Google ranks results for, as an ISO 3166-1 alpha-2 code in lower case."},"page":{"type":"integer","minimum":1,"maximum":20,"default":1,"description":"The page to start at; `next` in an answer goes on from it with `cursor`. Google Maps stops listing after 200 to 300 places, depending on the search: the last page is short, a page past the end is empty and free."},"cursor":{"type":"string","pattern":"^[A-Za-z0-9_=-]{40,8000}$","description":"Where to go on, from `next` in an answer, as it is: opaque, and only for the search it was given with (otherwise `invalid_cursor`). Leave it out to start at `page`."}}},"pagination":{"style":"page","page_size":20,"next":{"cursor":"<opaque>"},"last_page":20},"record":{"type":"object","additionalProperties":false,"required":["object","id","position","name","categories","primary_category_id","result_type","address","location","phone","website_url","rating","review_topics","description","owner_description","booking_url","hours","more_hours","timezone","attributes","highlights","actions","owner","popular_times","admission","hotel","things_to_do","ids","photo_url","url","source_url","observed_at"],"properties":{"object":{"const":"place","description":"The kind of record: a place, whichever site it comes from."},"id":{"type":"string","description":"Google's place id (ChIJ...), stable across languages; repeated in ids.place_id."},"position":{"type":"integer","minimum":1,"description":"Its rank among the places of the search, across pages: 21 is the first of page 2."},"name":{"type":"string"},"categories":{"type":"array","items":{"type":"string"},"description":"As Google Maps names them, the main one first."},"primary_category_id":{"type":["string","null"],"pattern":"^[a-z0-9_]+$","description":"Null in a list of results: Google gives a place's category id only on its page (google_maps/places/get). result_type is the family a list does give."},"result_type":{"type":["string","null"],"pattern":"^[a-z0-9_]+$","description":"Google's search-result type for the place, the same in every language: a family for most places (shopping, industrial, personal_care), finer for some (french_restaurant, bakery, park). Not its category: categories has those by name, and places/get gives primary_category_id."},"address":{"type":"object","additionalProperties":false,"required":["full","street","neighborhood","city","postal_code","state","country_code"],"properties":{"full":{"type":["string","null"]},"street":{"type":["string","null"]},"neighborhood":{"type":["string","null"],"description":"The district Google files the place under: Manhattan."},"city":{"type":["string","null"]},"postal_code":{"type":["string","null"]},"state":{"type":["string","null"],"description":"The state or region, where the address has one: New York."},"country_code":{"type":["string","null"],"pattern":"^[A-Z]{2}$","description":"ISO 3166-1 alpha-2","upper case.":null}}},"location":{"type":"object","additionalProperties":false,"required":["latitude","longitude"],"properties":{"latitude":{"type":"number","description":"Degrees, 7 decimals (about a centimetre)."},"longitude":{"type":"number","description":"Degrees, 7 decimals."}}},"phone":{"type":["string","null"],"pattern":"^\\+[0-9]{6,15}$","description":"E.164; null when Google gives no international number."},"website_url":{"type":["string","null"],"format":"uri"},"rating":{"type":["object","null"],"additionalProperties":false,"required":["value","scale","count","distribution"],"description":"The average rating and how many reviews make it; null when the place has none.","properties":{"value":{"type":"number"},"scale":{"const":5,"description":"The best possible value: ratings from other sites compare once divided by it."},"count":{"type":["integer","null"]},"distribution":{"type":["object","null"],"additionalProperties":false,"required":["1","2","3","4","5"],"description":"How many reviews give each number of stars, 1 to 5; they add up to count. Null when Google does not say. A list of results seldom has it; a search naming one place does.","properties":{"1":{"type":"integer"},"2":{"type":"integer"},"3":{"type":"integer"},"4":{"type":"integer"},"5":{"type":"integer"}}}}},"review_topics":{"type":["array","null"],"description":"The topics Google draws from the reviews (pleasant waiters), how many reviews mention each, and the id Google filters the reviews by; null when the answer has none (a list of results).","items":{"type":"object","additionalProperties":false,"required":["name","mentions","id"],"properties":{"name":{"type":"string"},"mentions":{"type":["integer","null"]},"id":{"type":["string","null"]}}}},"description":{"type":["string","null"],"description":"Google's short summary of the place, when it has one."},"owner_description":{"type":["string","null"],"description":"What the place says of itself on its profile, as its owner wrote it (From the owner); null when it says nothing."},"booking_url":{"type":["string","null"],"format":"uri"},"hours":{"type":["array","null"],"description":"The week, Monday first, in local time (`timezone`). A day closed has no interval; `intervals: null` is a day Google gives in a shape we cannot read (unknown, never closed); a close earlier than its open ends the next day; null when Google shows no hours.","items":{"type":"object","additionalProperties":false,"required":["day","intervals"],"properties":{"day":{"enum":["monday","tuesday","wednesday","thursday","friday","saturday","sunday"]},"intervals":{"type":["array","null"],"items":{"type":"object","additionalProperties":false,"required":["open","close"],"properties":{"open":{"type":"string","pattern":"^\\d{2}:\\d{2}$","description":"HH:MM, local time."},"close":{"type":"string","pattern":"^\\d{2}:\\d{2}$","description":"HH:MM, local time; 24:00 is midnight."}}}}}}},"more_hours":{"type":"array","description":"Hours of a service apart from the place's own (Kitchen, Brunch, Takeout...), labelled in `language`.","items":{"type":"object","additionalProperties":false,"required":["label","hours"],"properties":{"label":{"type":"string"},"hours":{"type":["array","null"],"description":"The week, Monday first, in local time (`timezone`). A day closed has no interval; `intervals: null` is a day Google gives in a shape we cannot read (unknown, never closed); a close earlier than its open ends the next day; null when Google shows no hours.","items":{"type":"object","additionalProperties":false,"required":["day","intervals"],"properties":{"day":{"enum":["monday","tuesday","wednesday","thursday","friday","saturday","sunday"]},"intervals":{"type":["array","null"],"items":{"type":"object","additionalProperties":false,"required":["open","close"],"properties":{"open":{"type":"string","pattern":"^\\d{2}:\\d{2}$","description":"HH:MM, local time."},"close":{"type":"string","pattern":"^\\d{2}:\\d{2}$","description":"HH:MM, local time; 24:00 is midnight."}}}}}}}}}},"timezone":{"type":["string","null"],"description":"IANA time zone."},"attributes":{"type":"array","description":"What Google lists about the place in its results (accessibility...). `id` is Google's own, the same in every language; `value` is true when the place has it.","items":{"type":"object","additionalProperties":false,"required":["id","label","group","value"],"properties":{"id":{"type":"string","examples":["has_wheelchair_accessible_entrance"]},"label":{"type":["string","null"]},"group":{"type":"string","examples":["accessibility"]},"value":{"type":["boolean","null"],"description":"true when Google shows the place has it; null for anything else it says."}}}},"highlights":{"type":"array","description":"Google's badges on the place: LGBTQ+ friendly, women-owned. `id` is the same in every language.","items":{"type":"object","additionalProperties":false,"required":["id","label"],"properties":{"id":{"type":["string","null"],"examples":["lgbtq_friendly"]},"label":{"type":"string"}}}},"actions":{"type":"array","description":"What people can do from Google: reserve a table, order online. `url` is Google's own page for it; `providers` are the services it sends to (OpenTable, a delivery service, the place's site).","items":{"type":"object","additionalProperties":false,"required":["type","label","url","providers"],"properties":{"type":{"enum":["reserve","order",null],"description":"null for a kind of action we do not name yet; `label` says it."},"label":{"type":"string"},"url":{"type":["string","null"],"format":"uri"},"providers":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["name","domain","url"],"properties":{"name":{"type":"string"},"domain":{"type":"string"},"url":{"type":["string","null"],"format":"uri"}}}}}}},"owner":{"type":["object","null"],"additionalProperties":false,"required":["id","name"],"description":"The Google account that manages the place's profile, as Google shows it.","properties":{"id":{"type":"string"},"name":{"type":"string"}}},"popular_times":{"type":["object","null"],"additionalProperties":false,"required":["week","live"],"description":"Google's \"Popular times\": for each day, how busy each hour usually is, 0 (empty) to 100 (busiest); and how busy it is now when Google says so (`live`, its label in `language`). null when Google shows none.","properties":{"week":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["day","hours"],"properties":{"day":{"enum":["monday","tuesday","wednesday","thursday","friday","saturday","sunday"]},"hours":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["hour","busyness"],"properties":{"hour":{"type":"integer","minimum":0,"maximum":23},"busyness":{"type":"integer","minimum":0,"maximum":100}}}}}}},"live":{"type":["object","null"],"additionalProperties":false,"required":["hour","busyness","label"],"properties":{"hour":{"type":["integer","null"]},"busyness":{"type":"integer","minimum":0,"maximum":100},"label":{"type":["string","null"]}}}}},"admission":{"type":["object","null"],"additionalProperties":false,"required":["price","url","domain","offers"],"description":"What a visit costs, for a place one visits (a museum, a monument): the price Google shows, the official site, the sellers.","properties":{"price":{"type":["object","null"],"additionalProperties":false,"required":["amount","currency","text"],"description":"A price: `amount` and `currency` (ISO 4217) when they read, null otherwise (\"$\" names several currencies); `text` as Google wrote it.","properties":{"amount":{"type":["number","null"]},"currency":{"type":["string","null"],"pattern":"^[A-Z]{3}$"},"text":{"type":"string"}}},"url":{"type":["string","null"],"format":"uri"},"domain":{"type":["string","null"]},"offers":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["seller","url","price"],"properties":{"seller":{"type":["string","null"]},"url":{"type":["string","null"],"format":"uri"},"price":{"type":["object","null"],"additionalProperties":false,"required":["amount","currency","text"],"description":"A price: `amount` and `currency` (ISO 4217) when they read, null otherwise (\"$\" names several currencies); `text` as Google wrote it.","properties":{"amount":{"type":["number","null"]},"currency":{"type":["string","null"],"pattern":"^[A-Z]{3}$"},"text":{"type":"string"}}}}}}}},"hotel":{"type":["object","null"],"additionalProperties":false,"required":["check_in","check_out","price","similar"],"description":"For a hotel: the night Google prices, its price for that night, and the hotels Google compares it with.","properties":{"check_in":{"type":["string","null"],"format":"date"},"check_out":{"type":["string","null"],"format":"date"},"price":{"type":["object","null"],"additionalProperties":false,"required":["amount","currency","text"],"description":"A price: `amount` and `currency` (ISO 4217) when they read, null otherwise (\"$\" names several currencies); `text` as Google wrote it.","properties":{"amount":{"type":["number","null"]},"currency":{"type":["string","null"],"pattern":"^[A-Z]{3}$"},"text":{"type":"string"}}},"similar":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["name","feature_id","price","rating","note"],"properties":{"name":{"type":"string"},"feature_id":{"type":["string","null"]},"price":{"type":["object","null"],"additionalProperties":false,"required":["amount","currency","text"],"description":"A price: `amount` and `currency` (ISO 4217) when they read, null otherwise (\"$\" names several currencies); `text` as Google wrote it.","properties":{"amount":{"type":["number","null"]},"currency":{"type":["string","null"],"pattern":"^[A-Z]{3}$"},"text":{"type":"string"}}},"rating":{"type":["object","null"],"additionalProperties":false,"required":["value","scale","count"],"properties":{"value":{"type":"number"},"scale":{"const":5},"count":{"type":["integer","null"]}}},"note":{"type":["string","null"],"description":"What Google says the price includes: breakfast, parking."}}}}}},"things_to_do":{"type":"array","description":"The tours and activities Google offers at the place: title, seller, price, duration, rating.","items":{"type":"object","additionalProperties":false,"required":["title","url","seller","price","duration","rating"],"properties":{"title":{"type":"string"},"url":{"type":["string","null"],"format":"uri"},"seller":{"type":["string","null"]},"price":{"type":["object","null"],"additionalProperties":false,"required":["amount","currency","text"],"description":"A price: `amount` and `currency` (ISO 4217) when they read, null otherwise (\"$\" names several currencies); `text` as Google wrote it.","properties":{"amount":{"type":["number","null"]},"currency":{"type":["string","null"],"pattern":"^[A-Z]{3}$"},"text":{"type":"string"}}},"duration":{"type":["string","null"],"description":"As Google writes it","7h.":null},"rating":{"type":["object","null"],"additionalProperties":false,"required":["value","scale","count"],"properties":{"value":{"type":"number"},"scale":{"const":5},"count":{"type":["integer","null"]}}}}}},"ids":{"type":"object","additionalProperties":false,"required":["place_id","cid","feature_id","kgmid"],"description":"Every id Google gives the place: the one another call or another tool may need.","properties":{"place_id":{"type":"string"},"cid":{"type":["string","null"],"description":"Customer id: the second half of feature_id, in decimal; google.com/maps?cid=<cid> opens the place."},"feature_id":{"type":["string","null"],"description":"Feature id (0x...:0x...), what reviews and photos are listed by."},"kgmid":{"type":["string","null"],"description":"Knowledge Graph id (/g/...)."}}},"photo_url":{"type":["string","null"],"format":"uri","description":"The place's main photo."},"url":{"type":"string","format":"uri","description":"The place on Google Maps (Maps URLs, query_place_id)."},"source_url":{"type":"string","format":"uri","description":"The search these values were read from."},"observed_at":{"type":"string","format":"date-time","description":"When they were read","UTC.":null}}},"price":{"credits_per_call":20,"description":"20 credits a call, whatever the page holds: a short last page costs a whole call. An empty page (past the end, or no results) and a failed call are free.","free":["empty","failed"]},"deadline":{"default_s":30,"max_s":60},"errors":[{"code":"site_unavailable","status":503,"retryable":true,"message":"Google Maps did not answer in time or refused the call; retry later (not charged)."},{"code":"unexpected_answer","status":424,"retryable":false,"message":"Google Maps answered in a shape we do not read yet; we are told and fix it, and it is not charged. Retrying now gives the same."}],"examples":[{"request":{"query":"restaurants in Lyon","page":1},"records":[{"object":"place","id":"ChIJAAAAAAAAAAAAAAAAAAAAAAA","position":1,"name":"Acme Bistro","categories":["French restaurant"],"primary_category_id":null,"result_type":"french_restaurant","address":{"full":"1 Rue Exemple, 69005 Lyon, France","street":"1 Rue Exemple","neighborhood":null,"city":"Lyon","postal_code":"69005","state":null,"country_code":"FR"},"location":{"latitude":45.7623,"longitude":4.8275},"phone":"+33400000000","website_url":"https://acme-bistro.example","rating":{"value":4.5,"scale":5,"count":1280,"distribution":null},"review_topics":null,"description":"Local food and wine in vintage surrounds","owner_description":null,"booking_url":"https://acme-bistro.example/booking","hours":[{"day":"monday","intervals":[{"open":"11:30","close":"14:30"},{"open":"18:30","close":"22:00"}]},{"day":"tuesday","intervals":[]}],"more_hours":[{"label":"Kitchen","hours":[{"day":"monday","intervals":[{"open":"12:00","close":"14:00"}]}]}],"timezone":"Europe/Paris","attributes":[{"id":"has_wheelchair_accessible_entrance","label":"Wheelchair-accessible entrance","group":"accessibility","value":true}],"highlights":[{"id":"lgbtq_friendly","label":"LGBTQ+ friendly"}],"actions":[{"type":"reserve","label":"Reserve a table","url":"https://www.google.com/maps/reserve/v/dine/c/AAAAAAAAAAA?source=pa&hl=en","providers":[{"name":"Acme Bookings","domain":"acme-bookings.example","url":"https://acme-bookings.example/r/1"}]}],"owner":{"id":"100000000000000000000","name":"Acme Bistro (Owner)"},"popular_times":{"week":[{"day":"monday","hours":[{"hour":12,"busyness":45},{"hour":13,"busyness":80}]}],"live":{"hour":13,"busyness":60,"label":"Usually not too busy"}},"admission":null,"hotel":null,"things_to_do":[],"ids":{"place_id":"ChIJAAAAAAAAAAAAAAAAAAAAAAA","cid":"1000000000000000000","feature_id":"0x47f4000000000000:0x0de0b6b3a7640000","kgmid":"/g/11aaaaaaaa"},"photo_url":"https://lh3.googleusercontent.com/example.jpg","url":"https://www.google.com/maps/search/?api=1&query=45.7623%2C4.8275&query_place_id=ChIJAAAAAAAAAAAAAAAAAAAAAAA","source_url":"https://www.google.com/maps/search/restaurants+in+Lyon","observed_at":"2026-10-26T09:00:00Z"}],"next":{"page":2}}],"health":{"canaries":[{"query":"restaurants in Lyon","near":{"lat":45.764,"lng":4.8357},"min_records":15},{"query":"dentist","near":{"lat":40.7128,"lng":-74.006},"country":"us","min_records":15}],"required_fields":["id","name","location.latitude","location.longitude","categories","address.full"]},"changelog":[{"version":"1.3.0","date":"2026-11-13","notes":"`next` keeps the search as it was written and goes on with `cursor`, opaque, as every paged operation of the API (Google's page tokens): copy `next` as before. `page` still starts at any page."},{"version":"1.2.0","date":"2026-10-27","notes":"primary_category_id said it was the main category's id but held Google's search-result type, a family for most places (shopping for a sewing machine store). That value is now result_type. primary_category_id is the main category's real id, which only a place's page gives: places/get fills it, places/search leaves it null."},{"version":"1.1.0","date":"2026-10-27","notes":"Three fields Google gives on a place's page: rating.distribution (reviews per number of stars), review_topics (the topics drawn from the reviews, with their mentions) and owner_description (what the place says of itself). Found by the preventive loop (lobstrio/platform#19)."},{"version":"1.0.0","date":"2026-10-26","notes":"First version on the API v2."}],"object":"operation","id":"google_maps/places/search","site":{"title":"Google Maps","domain":"google.com/maps","color":"#3DBE7A"}}