Is there some kind of query language one can use in Bing Search API News to get, for example, only news that contain in their title some words/phrases? Is there AND, OR, near, etc. that could be used? You can see the operators here, which I thought would be working: https://msdn.microsoft.com/en-us/library/ff795620.aspx
I am talking right now about version 5 and version 7 of the API.
Here's the code I wrote to try this out:
# below query is want I would like to have, which doesn't work
query_words = ['announce* near:4 win']
headers = {'Ocp-Apim-Subscription-Key': 'xxxx'}
b = 'https://api.cognitive.microsoft.com/bing/v5.0/news/search'
for w in query_words:
params = {"q": w, "count": "5", "mkt": "en-US", "category": "business", "freshness": "day"}
res = requests.get(b, params=params, headers=headers)
if res.status_code == 200:
articles = json.loads(res.content)