Google Maps API Tutorials (JavaScript)

Places API Text Search

Last modified on March 20th, 2022
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

Request URL Parameter (Required)

JSON or XMLOutput format (json recommended)

Request Query Parameters (Required)

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[YOURAPIKEY]&query=restaurants-in-toronto

Text Search Response JSON Object

Hey, Like what you're reading? Check this out!

🔥 9,134+ students already enrolled!
4.6 ⭐️⭐️⭐️⭐️⭐️ (145+ ratings) BEST SELLER