Open nitinthewiz opened 11 months ago
As per the code comments mentioned here - https://github.com/Azure/azure-sdk-for-python/blob/d8d8718ffee877ef5a80d72a794fd5ba8435f145/sdk/cognitiveservices/azure-cognitiveservices-search-newssearch/azure/cognitiveservices/search/newssearch/operations/_news_operations.py#L50
It seems query parameter can never be empty. So "Get today's top news" can never work.
"Get today's top news" does not work.
API documentation says that to get the top news of the day, simply leave the q parameter unset, as follows -
curl -H "Ocp-Apim-Subscription-Key: <yourkeygoeshere>" https://api.bing.microsoft.com/v7.0/news/search?q=&mkt=en-us
However, this does not return any results. This is the response I see -
{"_type": "News", "queryContext": {"originalQuery": ""}, "value": []}
Please remove this line item if getting top news is not possible. Or please update with the correct parameter.
Thanks!
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.