The API uses the information entered by the user to suggest possible matches for a given query, based on the users location. This means that custom applications can be created for the user to type in a query and receive the autocomplete they want, the API provides feedback, displaying suggestions based on the text entered so far. This feature helps to reduce typing errors and save time for users by presenting them with relevant suggestions as they type.
Another important feature of the Predictive Search API is that it offers multi-country support. This means that developers can easily localize their applications to support different countries and cultures, making it easier for users to search for places like their own countries.
The API also supports a wide range of location types, such as countries from the US to India, addresses, points of interest and others. This means that developers can use the API to search for a wide variety of different places, depending on the needs of their application.
Overall, Predictive Search API is a powerful tool for developers who want to integrate predictive search features into their applications. Thanks to its support for multiple countries and regions, its wide range of place types. The API offers a complete solution for developers wishing to enhance the user experience of their applications.
What your API receives and what your API provides (input/output)?
It will receive parameters and provide you with a JSON.
E-commerce: Many e-commerce websites use the autocomplete locations API to allow customers to search for nearby stores or pickup locations based on their address. This helps customers find the nearest store and speeds up the checkout process.
Travel: Travel and tourism websites use the autocomplete places API to suggest popular landmarks, tourist attractions and hotels to users as they enter their destination. This makes it easier for travelers to plan their trips and find nearby points of interest.
Food Delivery: Food delivery apps use the Place Autocomplete API to suggest nearby restaurants and food delivery options to customers. This helps customers find the nearest restaurant offering the food they are looking for.
Real Estate: Real estate websites use the Place Autocomplete API to allow users to search for properties by location. This makes it easy for users to search for properties that match their preferences in a specific area.
Job search: Job search websites use the Place Autocomplete API to suggest nearby job locations to job seekers. This helps job seekers find job openings in a specific area and narrow down their search.
Besides API call limitations per month, there are no other limitations.
{
"predictions" :
[
{
"description" : "Delaware, USA",
"matched_substrings" :
[
{
"length" : 3,
"offset" : 0
}
],
"place_id" : "ChIJO9YMTXYFx4kReOgEjBItHZQ",
"reference" : "ChIJO9YMTXYFx4kReOgEjBItHZQ",
"structured_formatting" :
{
"main_text" : "Delaware",
"main_text_matched_substrings" :
[
{
"length" : 3,
"offset" : 0
}
],
"secondary_text" : "USA"
},
"terms" :
[
{
"offset" : 0,
"value" : "Delaware"
},
{
"offset" : 10,
"value" : "USA"
}
],
"types" :
[
"administrative_area_level_1",
"political",
"geocode"
]
},
{
"description" : "Delhi-6, Parkhurst Plaza, Ashburn, VA, USA",
"matched_substrings" :
[
{
"length" : 3,
"offset" : 0
}
],
"place_id" : "ChIJq8bRo8Q-tokREkwNSEudcTU",
"reference" : "ChIJq8bRo8Q-tokREkwNSEudcTU",
"structured_formatting" :
{
"main_text" : "Delhi-6",
"main_text_matched_substrings" :
[
{
"length" : 3,
"offset" : 0
}
],
"secondary_text" : "Parkhurst Plaza, Ashburn, VA, USA"
},
"terms" :
[
{
"offset" : 0,
"value" : "Delhi-6"
},
{
"offset" : 9,
"value" : "Parkhurst Plaza"
},
{
"offset" : 26,
"value" : "Ashburn"
},
{
"offset" : 35,
"value" : "VA"
},
{
"offset" : 39,
"value" : "USA"
}
],
"types" :
[
"restaurant",
"food",
"point_of_interest",
"establishment"
]
},
{
"description" : "Delhi, India",
"matched_substrings" :
[
{
"length" : 3,
"offset" : 0
}
],
"place_id" : "ChIJLbZ-NFv9DDkRQJY4FbcFcgM",
"reference" : "ChIJLbZ-NFv9DDkRQJY4FbcFcgM",
"structured_formatting" :
{
"main_text" : "Delhi",
"main_text_matched_substrings" :
[
{
"length" : 3,
"offset" : 0
}
],
"secondary_text" : "India"
},
"terms" :
[
{
"offset" : 0,
"value" : "Delhi"
},
{
"offset" : 7,
"value" : "India"
}
],
"types" :
[
"administrative_area_level_1",
"political",
"geocode"
]
},
{
"description" : "Delirium Café-Leesburg, South King Street, Leesburg, VA, USA",
"matched_substrings" :
[
{
"length" : 3,
"offset" : 0
}
],
"place_id" : "ChIJjaI_j9YXtokRYZyy9Fj1fds",
"reference" : "ChIJjaI_j9YXtokRYZyy9Fj1fds",
"structured_formatting" :
{
"main_text" : "Delirium Café-Leesburg",
"main_text_matched_substrings" :
[
{
"length" : 3,
"offset" : 0
}
],
"secondary_text" : "South King Street, Leesburg, VA, USA"
},
"terms" :
[
{
"offset" : 0,
"value" : "Delirium Café-Leesburg"
},
{
"offset" : 24,
"value" : "South King Street"
},
{
"offset" : 43,
"value" : "Leesburg"
},
{
"offset" : 53,
"value" : "VA"
},
{
"offset" : 57,
"value" : "USA"
}
],
"types" :
[
"bar",
"cafe",
"restaurant",
"food",
"point_of_interest",
"establishment"
]
},
{
"description" : "Delicioso Sterling, West Church Road, Sterling, VA, USA",
"matched_substrings" :
[
{
"length" : 3,
"offset" : 0
}
],
"place_id" : "ChIJ3T2iIPk4tokRNjqunOYl03c",
"reference" : "ChIJ3T2iIPk4tokRNjqunOYl03c",
"structured_formatting" :
{
"main_text" : "Delicioso Sterling",
"main_text_matched_substrings" :
[
{
"length" : 3,
"offset" : 0
}
],
"secondary_text" : "West Church Road, Sterling, VA, USA"
},
"terms" :
[
{
"offset" : 0,
"value" : "Delicioso Sterling"
},
{
"offset" : 20,
"value" : "West Church Road"
},
{
"offset" : 38,
"value" : "Sterling"
},
{
"offset" : 48,
"value" : "VA"
},
{
"offset" : 52,
"value" : "USA"
}
],
"types" :
[
"restaurant",
"food",
"point_of_interest",
"store",
"establishment"
]
}
],
"status" : "OK"
}
curl --location --request GET 'https://zylalabs.com/api/1808/predictive+search+engine+api/1462/get+place+autocomplete?input=del&radius=500' --header 'Authorization: Bearer YOUR_API_KEY'
| Header | Description |
|---|---|
Authorization
|
[Required] Should be Bearer access_key. See "Your API Access Key" above when you are subscribed. |
No long-term commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.
The Get place autocomplete endpoint returns a JSON object containing an array of predictions. Each prediction includes details such as the place's description, place ID, and structured formatting, which provides main and secondary text for better user readability.
Key fields in the response data include "description," "place_id," "structured_formatting," and "terms." These fields provide essential information about the predicted places, including their names and types.
The response data is organized as a JSON object with a "predictions" array. Each prediction object contains fields like "description," "matched_substrings," and "types," allowing users to easily access relevant information about suggested places.
The endpoint accepts parameters such as a query string (the text to autocomplete) and a radius (to limit the search area). Users can customize their requests by adjusting these parameters to refine the suggestions.
The endpoint provides information on various location types, including administrative areas, points of interest, and addresses. This allows developers to cater to diverse user needs in their applications.
Data accuracy is maintained through continuous updates from reliable sources and user feedback. The API leverages a combination of geographic databases and real-time data to ensure high-quality suggestions.
Typical use cases include enhancing search functionality in e-commerce sites, travel planning apps, food delivery services, real estate platforms, and job search websites, where users benefit from quick and relevant location suggestions.
Users can utilize the returned data by displaying the "description" and "structured_formatting" fields in their applications, allowing for a user-friendly interface that presents relevant suggestions as users type their queries.
To obtain your API key, you first need to sign in to your account and subscribe to the API you want to use. Once subscribed, go to your Profile, open the Subscription section, and select the specific API. Your API key will be available there and can be used to authenticate your requests.
You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.
If you don’t cancel before the 7th day, your free trial will end automatically and your subscription will switch to a paid plan under the same plan you originally subscribed to, meaning you will be charged and gain access to the API calls included in that plan.
The free trial ends when you reach 50 API requests or after 7 days, whichever comes first.
No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.
Yes, we offer a 7-day free trial that allows you to make up to 50 API calls at no cost, so you can test our APIs without any commitment.
Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund
Service Level:
100%
Response Time:
238ms
Service Level:
81%
Response Time:
1,855ms
Service Level:
100%
Response Time:
764ms
Service Level:
100%
Response Time:
1,320ms
Service Level:
100%
Response Time:
179ms
Service Level:
100%
Response Time:
2,760ms
Service Level:
100%
Response Time:
7,433ms
Service Level:
100%
Response Time:
1,179ms
Service Level:
100%
Response Time:
541ms
Service Level:
100%
Response Time:
203ms