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, first sign in to your account and navigate to the API you want to use. From the API's Pricing section, choose a plan and complete the subscription process. Once subscribed, return to the API page and you will see your API Access Key displayed at the top of the documentation page. You can use this key 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.
The free trial lasts for 7 days and allows you to make up to 50 API requests.
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. If the API offers a free trial, you will see a "Free 7-Day Trial" option in its Pricing section. The trial lasts for 7 days and allows up to 50 API requests, enabling you to evaluate the API before subscribing to a paid plan.
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.
You can monitor your API usage through the response headers included with every request:
x-zyla-api-calls-monthly-used: Shows the total number of API requests you have used during the current billing period.
x-zyla-api-calls-monthly-remaining: Shows the number of API requests you have remaining for the current billing period.
Yes, you can cancel your subscription at any time. Simply go to the Pricing section of the API you're subscribed to and click the "Unsubscribe" button.
Please note that upgrades, downgrades, and cancellations take effect immediately. Once your subscription is canceled, access to the service will end immediately, regardless of any remaining API calls in your quota.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund
Service Level:
100%
Response Time:
193ms
Service Level:
100%
Response Time:
185ms
Service Level:
100%
Response Time:
157ms
Service Level:
100%
Response Time:
186ms
Service Level:
100%
Response Time:
299ms
Service Level:
100%
Response Time:
788ms
Service Level:
100%
Response Time:
147ms
Service Level:
100%
Response Time:
150ms
Service Level:
100%
Response Time:
275ms
Service Level:
100%
Response Time:
478ms