×

ContextualWeb Web API

The Web API is simple HTTP REST API for searching webpages from all over the web. This API is optimal for applications that need access to all content that is relevant to a user's search query. If you are building an application that requires only a specific type of result, consider using the ContextualWeb Image Search API, ContextualWeb News Search API.

Header Parameters:

X-RapidAPI-HostStringcontextualwebsearch-websearch-v1.p.rapidapi.com
X-RapidAPI-KeyStringGet API Key

Required parameters:

qStringThe user's search query string
pageNumberNumberThe page to view
pageSizeNumberThe number of items per page. The maximum value is 50
autoCorrectBooleanAutomatically correct spelling
safeSearchBooleanFilter results for adult content

Response 200:

{
  "_type": "all",
  "didUMean": "",
  "totalCount": 5960,
  "relatedSearch": [
    "President",
    "U.S",
    "Michael Cohen",
    "John McCain",
    "White House",
    "Washington",
    "Americans",
    "Supreme Court",
    "UNITED",
    "TIMES",
    "New York",
    "Republicans"
  ],
  "value": [
    {
      "title": "<b>Donald Trump</b> - Wikipedia",
      "url": "https://en.wikipedia.org/wiki/Donald_Trump",
      "description": "<b>Donald</b> John <b>Trump</b> (born June 14, 1946) is the 45th and current President of the United States, in office since January 20, 2017. Before entering politics, he was a businessman and television personality.",
      "keywords": "",
      "language": "en",
      "isSafe": true,
      "datePublished": "0001-01-01T00:00:00",
      "provider": {
        "name": "wikipedia"
      },
      "image": {
        "url": "",
        "height": 0,
        "width": 0,
        "thumbnail": "",
        "thumbnailHeight": 0,
        "thumbnailWidth": 0,
        "base64Encoding": ""
      }
    },
    {
      "title": "<b>Donald Trump</b> Jr. - Wikipedia",
      "url": "https://en.wikipedia.org/wiki/Donald_Trump_Jr.",
      "description": "<b>Donald</b> John <b>Trump</b> Jr. (born December 31, 1977) is an American businessman and former reality television personality. He is the eldest child of the 45th President of the United States, <b>Donald Trump</b>, and his first wife, Ivana.",
      "keywords": "",
      "language": "en",
      "isSafe": true,
      "datePublished": "0001-01-01T00:00:00",
      "provider": {
        "name": "wikipedia"
      },
      "image": {
        "url": "",
        "height": 0,
        "width": 0,
        "thumbnail": "",
        "thumbnailHeight": 0,
        "thumbnailWidth": 0,
        "base64Encoding": ""
      }
    },
    {
      "title": "<b>Donald Trump</b> (song) - Wikipedia",
      "url": "https://en.wikipedia.org/wiki/Donald_Trump_(song)",
      "description": ""<b>Donald Trump</b>" is a song by American rapper/singer Mac Miller, and the only song released as an official single from his mixtape "Best Day Ever". The melody, which is played throughout the song, is taken from "Vesuvius" by Sufjan Stevens. The music video to the song was uploaded to YouTube on March 3, 2011, while the single was released digitally on May 17, 2011. "<b>Donald Trump</b>" is also incorrectly included as a bonus track on the track list of some versions of Mac Miller's debut album "Blue Slide Park". Miller himself confirmed that the song does not feature on the album. The song was dedicated to the American business magnate <b>Donald Trump</b>, who, five years after the song's release, was elected as the 45th President of the United States. During <b>Trump</b>'s 2016 campaign, the song regained popularity, hitting #28 on the iTunes Charts on November 9, 2016, the day after he was elected president. However Mac Miller has personally stated in an interview that he was not a supporter of <b>Trump</b>.",
      "keywords": "",
      "language": "en",
      "isSafe": true,
      "datePublished": "0001-01-01T00:00:00",
      "provider": {
        "name": "wikipedia"
      },
      "image": {
        "url": "",
        "height": 0,
        "width": 0,
        "thumbnail": "",
        "thumbnailHeight": 0,
        "thumbnailWidth": 0,
        "base64Encoding": ""
      }
    },
    {
      "title": "<b>Donald Trump</b> (disambiguation) - Wikipedia",
      "url": "https://en.wikipedia.org/wiki/Donald_Trump_(disambiguation)",
      "description": "<b>Donald Trump</b> (born 1946) is the 45th President of the United States, as well as an American businessman and television personality.",
      "keywords": "",
      "language": "en",
      "isSafe": true,
      "datePublished": "0001-01-01T00:00:00",
      "provider": {
        "name": "wikipedia"
      },
      "image": {
        "url": "",
        "height": 0,
        "width": 0,
        "thumbnail": "",
        "thumbnailHeight": 0,
        "thumbnailWidth": 0,
        "base64Encoding": ""
      }
    },
    {
      "title": "<b>Donald Trump</b> in music - Wikipedia",
      "url": "https://en.wikipedia.org/wiki/Donald_Trump_in_music",
      "description": "<b>Donald Trump</b> in music refers to songs, albums and bands that refer to <b>Donald Trump</b> and his various brands, including <b>Trump</b> Tower, his TV show, his hotel chain, and his casinos. Though recent songs refer to <b>Trump</b>'s campaign and subsequent election as president of the United States, more than 200 songs refer to <b>Trump</b> prior to his successful presidential campaign between 1989 and 2013. With his victory in the 2016 presidential election, <b>Trump</b>'s prominence in hip-hop music has been likened to that of Ronald Reagan's in hardcore punk during the 1980s.",
      "keywords": "",
      "language": "en",
      "isSafe": false,
      "datePublished": "0001-01-01T00:00:00",
      "provider": {
        "name": "wikipedia"
      },
      "image": {
        "url": "",
        "height": 0,
        "width": 0,
        "thumbnail": "",
        "thumbnailHeight": 0,
        "thumbnailWidth": 0,
        "base64Encoding": ""
      }
    },
    {
      "title": "<b>Donald Trump</b> and golf - Wikipedia",
      "url": "https://en.wikipedia.org/wiki/Donald_Trump_and_golf",
      "description": "<b>Donald Trump</b> is closely associated with the sport of golf. As a real estate developer, <b>Trump</b> began acquiring and constructing golf courses in 1999. By the time of his election as United States President in 2016, he owned 17 golf courses worldwide through his holding company The <b>Trump</b> Organization. Courses owned by <b>Trump</b> have been selected to host various PGA and LPGA events, including the upcoming 2022 PGA Championship.",
      "keywords": "",
      "language": "en",
      "isSafe": true,
      "datePublished": "0001-01-01T00:00:00",
      "provider": {
        "name": "wikipedia"
      },
      "image": {
        "url": "",
        "height": 0,
        "width": 0,
        "thumbnail": "",
        "thumbnailHeight": 0,
        "thumbnailWidth": 0,
        "base64Encoding": ""
      }
    },
    {
      "title": "<b>Donald Trump</b> on social media - Wikipedia",
      "url": "https://en.wikipedia.org/wiki/Donald_Trump_on_social_media",
      "description": "<b>Donald Trump</b>'s usage of social media has attracted worldwide attention. The main coverage has been about his tweets about various subjects, after he joined social networking site Twitter in March 2009. <b>Trump</b> has frequently used Twitter and other social media platforms to make comments about other politicians, celebrities and daily news. He relied on Twitter significantly to communicate during the 2016 United States presidential campaign. The attention on <b>Trump</b>'s Twitter activity has significantly increased since he was sworn in as the 45th President of the United States and has continued to post controversial or false opinions and statements.",
      "keywords": "",
      "language": "en",
      "isSafe": true,
      "datePublished": "0001-01-01T00:00:00",
      "provider": {
        "name": "wikipedia"
      },
      "image": {
        "url": "",
        "height": 0,
        "width": 0,
        "thumbnail": "",
        "thumbnailHeight": 0,
        "thumbnailWidth": 0,
        "base64Encoding": ""
      }
    },
    {
      "title": "<b>Donald Trump</b> in popular culture - Wikipedia",
      "url": "https://en.wikipedia.org/wiki/Donald_Trump_in_popular_culture",
      "description": "<b>Donald Trump</b>, the President of the United States since 2017, has attracted considerable media attention during his career as businessman and politician, inspiring numerous portrayals and appearances in popular culture. <b>Trump</b> has been represented in popular culture since the 1980s, including cameo appearances on film and television.",
      "keywords": "",
      "language": "en",
      "isSafe": true,
      "datePublished": "0001-01-01T00:00:00",
      "provider": {
        "name": "wikipedia"
      },
      "image": {
        "url": "",
        "height": 0,
        "width": 0,
        "thumbnail": "",
        "thumbnailHeight": 0,
        "thumbnailWidth": 0,
        "base64Encoding": ""
      }
    },
    {
      "title": "<b>Donald Trump</b>'s Real Estate Tycoon - Wikipedia",
      "url": "https://en.wikipedia.org/wiki/Donald_Trump's_Real_Estate_Tycoon",
      "description": "<b>Donald Trump</b>'s Real Estate Tycoon is a business simulation game developed by RedCap and published by Activision Value. It was released for Microsoft Windows on November 7, 2002. It was later published in Europe by Xplosiv on September 3, 2004. On October 20, 2004, Activision Value published a version of the game that was developed by Airborne Entertainment for J2ME and BREW-enabled mobile phones, as well as the N-Gage QD. It is named after American business magnate and politician <b>Donald Trump</b>, who also provided his voice for both versions of the game.",
      "keywords": "",
      "language": "en",
      "isSafe": true,
      "datePublished": "0001-01-01T00:00:00",
      "provider": {
        "name": "wikipedia"
      },
      "image": {
        "url": "",
        "height": 0,
        "width": 0,
        "thumbnail": "",
        "thumbnailHeight": 0,
        "thumbnailWidth": 0,
        "base64Encoding": ""
      }
    },
    {
      "title": "<b>Donald Trump</b> presidential campaign, 2000 - Wikipedia",
      "url": "https://en.wikipedia.org/wiki/Donald_Trump_presidential_campaign,_2000",
      "description": "<b>Donald Trump</b>'s presidential campaign of 2000 for the nomination of the Reform Party began when real estate magnate <b>Donald Trump</b> of New York announced the creation of a presidential exploratory committee on the October 7, 1999 edition of "Larry King Live". Though <b>Trump</b> had never held elected office, he was well known for his frequent comments on public affairs and business exploits as head of The <b>Trump</b> Organization. He had previously considered a presidential run in 1988 as a Republican, but chose not to run. For 2000, Minnesota Governor Jesse Ventura persuaded <b>Trump</b> to seek the presidential nomination of the Reform Party, which was fracturing despite achieving ballot access and qualifying for matching funds as a result of the 1996 presidential campaign of businessman Ross Perot. <b>Trump</b>'s entrance into the Reform Party race coincided with that of paleoconservative commentator Pat Buchanan, whom <b>Trump</b> attacked throughout the campaign as a "Hitler-lover."",
      "keywords": "",
      "language": "en",
      "isSafe": true,
      "datePublished": "0001-01-01T00:00:00",
      "provider": {
        "name": "wikipedia"
      },
      "image": {
        "url": "",
        "height": 0,
        "width": 0,
        "thumbnail": "",
        "thumbnailHeight": 0,
        "thumbnailWidth": 0,
        "base64Encoding": ""
      }
    }
  ]
} 

Schema:

{
  "type": "object",
  "properties": {
    "_type": {
      "type": "string"
    },
    "didUMean": {
      "type": "string"
    },
    "totalCount": {
      "type": "integer"
    },
    "relatedSearch": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "value": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "description": {
            "type": "string"
          },
          "keywords": {
            "type": "string"
          },
          "language": {
            "type": "string"
          },
          "isSafe": {
            "type": "boolean"
          },
          "datePublished": {
            "type": "string",
            "format": "style"
          },
          "provider": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              }
            }
          },
          "image": {
            "type": "object",
            "properties": {
              "url": {
                "type": "string"
              },
              "height": {
                "type": "integer"
              },
              "width": {
                "type": "integer"
              },
              "thumbnail": {
                "type": "string"
              },
              "thumbnailHeight": {
                "type": "integer"
              },
              "thumbnailWidth": {
                "type": "integer"
              },
              "base64Encoding": {
                "type": "string"
              }
            }
          }
        }
      }
    }
  }
}