RapidAPI logo

Web Search

FREEMIUM
By contextualwebsearch
Updated 4 months ago
Data
9.6/10
Popularity Score
2434ms
Latency
99%
Success Rate

Web Search API Documentation

Web Search API. News API. Image API. Billions of webpages, images and news with a single API call.

View API Details
GETautoComplete
GETwebSearch
GETnewsSearch
GETimageSearch
GETautoComplete

Suggest as-you-type completion.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
textSTRING
REQUIREDThe prefix to complete
Code Snippet
unirest.get("https://contextualwebsearch-websearch-v1.p.rapidapi.com/api/spelling/AutoComplete?text=do")
.header("X-RapidAPI-Host", "contextualwebsearch-websearch-v1.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://contextualwebsearch-websearch-v1.p.rapidapi.com/api/spelling/AutoComplete
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://contextualwebsearch-websearch-v1.p.rapidapi.com/api/spelling/AutoComplete?text=do")
.header("X-RapidAPI-Host", "contextualwebsearch-websearch-v1.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