×

C# (.Net) client library

Use C#(.Net) client library to integrate AutoComplete API into your C#(.Net) application

public static void Test()
{
    //Replace the following string value with your valid X-RapidAPI-Key.
    string Your_X_RapidAPI_Key = "xxxxxxxxxxxxxxxxxxxxx";

    //The query parameters: Update according to your search query.
    string q = "tay"; //the search query

    //Perform the web request and get the response
    var response = Unirest.get(string.Format("https://contextualwebsearch-websearch-v1.p.rapidapi.com/api/spelling/AutoComplete?text={0}", q))
    .header("X-RapidAPI-Key", Your_X_RapidAPI_Key)
    .asJson();
}