I am trying to consume ContextualWeb News API. The endpoint is described here:
https://rapidapi.com/contextualwebsearch/api/web-search
Here is the request snippet in Python as described in RapidAPI:
response = unirest.get("https://contextualwebsearch-websearch-v1.p.rapidapi.com/api/Search/NewsSearchAPI?autoCorrect=true&pageNumber=1&pageSize=10&q=Taylor+Swift&safeSearch=false", headers={"X-RapidAPI-Host": "contextualwebsearch-websearch-v1.p.rapidapi.com","X-RapidAPI-Key": "XXXXXX" })
How do I send the request and parse the response? Can you provide a complete code example for the News API?