The integration of Qwiery in C# is really easy and it works in context of e.g. Xamarin as well.
The following code requires RestSharp library which eases the consumption of REST services:

class MainClass
    private static string getAnswer(string question)
        return null;
      var client = new RestClient("http://localhost:4785");
      var request = new RestRequest("lexic/question", Method.POST);
      request.AddHeader("Accept", "application/json");
      request.AddHeader("Content-Type", "application/json");
      request.AddHeader("ApiKey", "Anonymous");
      var json = JsonConvert.SerializeObject(new{ question = question});
      request.AddJsonBody(new{ question = question});
      IRestResponse response = client.Execute(request);
      var content = response.Content; // raw content as string
      var j = JObject.Parse(content);
      var pod = j["Output"]["Answer"][0];
      if(pod["DataType"].ToString() == "SimpleContent") {
        return pod["Content"].ToString();   
      } else {
        return "Sorry, the returned answer cannot be shown in the console.";


    public static void Main(string[] args)
      var input = Console.ReadLine().Trim();
      while(input != "q" || input != "quit") {
        var answer = getAnswer(input);
        input = Console.ReadLine().Trim();

Of course, if you get something else than a SimpleContent data type you need to decide what you wish to do with it. For example, if an entity is returned (DataType SingleEntity) you could display its Title in the console. If you have a XAML client you can go beyond this and use a specific control. All depends on your business case.