×

Python 3.x client library

Use Python 3.x client library to integrate AutoComplete API into your Python 3.x application

import requests #install from: http://docs.python-requests.org/en/master/

#Replace the following string value with your valid X-RapidAPI-Key.
Your_X_RapidAPI_Key = "XXXXXXXXXXXXXX";

#The query parameters: Update according to your search query.
q = "tay" #the search query

response=requests.get("https://contextualwebsearch-websearch-v1.p.rapidapi.com/api/spelling/AutoComplete?text={}".format(q),
headers={
"X-RapidAPI-Key": Your_X_RapidAPI_Key
}
).json()