Places API Text Search

Google Maps API Javascript

Text search is part of Google Places API as well.

Text Search Request returns a set of places based on the text query string.

For Example: “Restaurants in Toronto

Text Search Request Base URL

https://maps.googleapis.com/maps/api/place/textsearch/

Request URL Parameter (Required)

namedescription
JSON or XMLOutput format (json recommended)

Hey, Like what you're reading?

🔥 1,750+ students already enrolled!
4.5 ⭐️⭐️⭐️⭐️⭐️ (86+ ratings) BEST SELLER

Request Query Parameters (Required)

namedescription
keyYour API Key from Google Cloud Platform
queryThe value can be single or multiple words. For Example: “Restaurants in Toronto”

Sample URL Request To Text Search

https://maps.googleapis.com/maps/api/place/textsearch/json?key=[YOURAPIKEY]&query=restaurants-in-toronto

Text Search Response JSON Object