'Limit Bing API search to site/URL

https://support.microsoft.com/en-us/topic/advanced-search-keywords-ea595928-5d63-4a0b-9c6b-0b769865e78a

suggests that it is possible to limit to a particular site/URL, such as CNN. But searches like:

https://api.cognitive.microsoft.com/bing/v7.0/news/search?q=of&**url:cnn.com**&since=1646868728&sortBy=date&count=100&offset=1&textDecorations=false

https://api.cognitive.microsoft.com/bing/v7.0/news/search?q=of&**site:cnn.com**&since=1646868728&sortBy=date&count=100&offset=1&textDecorations=false (note: url:cnn.com or site:cnn.com)

are not limiting the results to CNN (or any specific website). Any suggestions?

(BTW, what I'm trying to do is to loop through a list of news websites and find articles from these websites from the previous 24 hours.)



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source