Question-Answering

FREEMIUM
By webknox
Updated 4 months ago
Communication
5.7/10
Popularity Score
22257ms
Latency
73%
Success Rate

Question-Answering API Documentation

The WebKnox question-answering API allows you to find answers to natural language questions. These questions can be factual such as "What is the capital of Australia" or more complex.

View API Details
Answer
GETAnswer a Question
GETQuickly Answer a Question
Converse
GETHave a conversation.
GETSuggest conversation topics
GETAnswer a Question

Find an answer to a given question.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
questionSTRING
REQUIREDThe question.
Optional Parameters
answerLookupBOOLEAN
OPTIONALWhether the answer can be looked up in a given set of answers.
answerSearchBOOLEAN
OPTIONALWhether the answer can be searched on the Web. If set to true, the answer might take up to a minute to show up.
Code Snippet
unirest.get("https://webknox-question-answering.p.rapidapi.com/questions/answers?answerLookup=false&answerSearch=false&question=Where+is+Los+Angeles%3F")
.header("X-RapidAPI-Host", "webknox-question-answering.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://webknox-question-answering.p.rapidapi.com/questions/answers
Request Method: GET
Response Headers
Response Body

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.get("https://webknox-question-answering.p.rapidapi.com/questions/answers?answerLookup=false&answerSearch=false&question=Where+is+Los+Angeles%3F")
.header("X-RapidAPI-Host", "webknox-question-answering.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication