Text Search

Learn how to get a global list of cities and locations by using text search.

In this lesson, we'll learn how to search for locations worldwide by using text search.

Search for global locations

The Text Search endpoint allows us to retrieve a list of all locations around the globe that match our given text. It provides detailed information for each location, including, but not limited to, its geographical position, timezone, and population. We can also limit the number of results retrieved as per our requirements.

For this purpose, we make a GET request to the following URL.

Get hands-on with 1200+ tech skills courses.