Predictive Search API

Predictive Search API

Predictive Search API is a powerful tool for developers that allows them to easily integrate predictive search functionality into their applications.

API description

About the API: 

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.

 

What are the most common uses cases of this API?

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

Are there any limitations to your plans?

Besides API call limitations per month, there are no other limitations.

API Documentation

Endpoints


To use this endpoint you must insert in the parameter a word or letters of the place you want to be autocompleted and you must also insert the radius.



                                                                            
GET https://zylalabs.com/api/1808/predictive+search+api/1462/get+place+autocomplete
                                                                            
                                                                        

Get place autocomplete - Endpoint Features
Object Description
input [Required]
radius [Required]
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            {
   "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, 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" : "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" : "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" : [
            "cafe",
            "bar",
            "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", "store", "point_of_interest", "establishment" ]
      }
   ],
   "status" : "OK"
}
                                                                                                                                                                                                                    
                                                                                                    

Get place autocomplete - CODE SNIPPETS


curl --location --request GET 'https://zylalabs.com/api/1808/predictive+search+api/1462/get+place+autocomplete?input=del&radius=500' --header 'Authorization: Bearer YOUR_API_KEY' 

    

API Access Key & Authentication

After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the Predictive Search API REST API, simply include your bearer token in the Authorization header.

Headers

Header Description
Authorization [Required] Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.


Simple Transparent Pricing

No long term commitments. One click upgrade/downgrade or cancellation. No questions asked.

🚀 Enterprise
Starts at $10,000/Year

  • Custom Volume
  • Dedicated account manager
  • Service-level agreement (SLA)

Customer favorite features

  • ✔︎ Only Pay for Successful Requests
  • ✔︎ Free 7-Day Trial
  • ✔︎ Multi-Language Support
  • ✔︎ One API Key, All APIs.
  • ✔︎ Intuitive Dashboard
  • ✔︎ Comprehensive Error Handling
  • ✔︎ Developer-Friendly Docs
  • ✔︎ Postman Integration
  • ✔︎ Secure HTTPS Connections
  • ✔︎ Reliable Uptime

Zyla API Hub is, in other words, an API MarketPlace. An all-in-one solution for your developing needs. You will be accessing our extended list of APIs with only your user. Also, you won't need to worry about storing API keys, only one API key for all our products is needed.

Prices are listed in USD. We accept all major debit and credit cards. Our payment system uses the latest security technology and is powered by Stripe, one of the world’s most reliable payment companies. If you have any trouble with paying by card, just contact us at [email protected]

Sometimes depending on the bank's fraud protection settings, a bank will decline the validation charge we make when we attempt to be sure a card is valid. We recommend first contacting your bank to see if they are blocking our charges. If more help is needed, please contact [email protected] and our team will investigate further

Prices are based on a recurring monthly subscription depending on the plan selected — plus overage fees applied when a developer exceeds a plan’s quota limits. In this example, you'll see the base plan amount as well as a quota limit of API requests. Be sure to notice the overage fee because you will be charged for each additional request.

Zyla API Hub works on a recurring monthly subscription system. Your billing cycle will start the day you purchase one of the paid plans, and it will renew the same day of the next month. So be aware to cancel your subscription beforehand if you want to avoid future charges.

Just go to the pricing page of that API and select the plan that you want to upgrade to. You will only be charged the full amount of that plan, but you will be enjoying the features that the plan offers right away.

Yes, absolutely. If you want to cancel your plan, simply go to your account and cancel on the Billing page. Upgrades, downgrades, and cancellations are immediate.

You can contact us through our chat channel to receive immediate assistance. We are always online from 9 am to 6 pm (GMT+1). If you reach us after that time, we will be in contact when we are back. Also you can contact us via email to [email protected]

 Service Level
100%
 Response Time
598ms

Useful links:


Category:


Tags:


Related APIs