Some preriods are missing in search result.

Kevin Lee 1 Reputation point
2020-11-26T17:08:26.817+00:00

43010-question.png

Below is my query option:

    keyword = 'Apple'  
    headers = {"Ocp-Apim-Subscription-Key" : self.subscription_key}  
    params  = {'q': keyword, 'count': 100, 'offset': offset, 'sortBy': 'Date', 'mkt': 'en-US', 'freshness': 'Month'}  

I add 'SortBy' Date option but, result show move from 1 hour to 14 days.
It seems same result occur at not only API, but Bing Site.

Is it a bug?

Bing News Search
Bing News Search
A Bing service that supports searching for news and get comprehensive results.
43 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. romungi-MSFT 42,311 Reputation points Microsoft Employee
    2020-11-27T07:51:20.29+00:00

    @Kevin Lee I have used the following parameters in my bing news API request and the following are the published dates in the order received.

    https://api.bing.microsoft.com/v7.0/news/search?q=apple&sortBy=Date&count=100&mkt=en-US&freshness=Month&offset=0  
    

    DatePublished order, adding the first few lines for convenience.

                "datePublished": "2020-11-27T07:05:00.0000000Z",  
                "datePublished": "2020-11-27T07:05:00.0000000Z",  
                "datePublished": "2020-11-27T06:59:00.0000000Z"  
                "datePublished": "2020-11-27T06:58:00.0000000Z"  
                "datePublished": "2020-11-27T06:53:00.0000000Z",  
                "datePublished": "2020-11-27T06:50:00.0000000Z",  
                "datePublished": "2020-11-27T06:49:00.0000000Z",  
                "datePublished": "2020-11-27T06:45:00.0000000Z",  
                "datePublished": "2020-11-27T06:41:00.0000000Z"  
                "datePublished": "2020-11-27T06:40:00.0000000Z",  
                "datePublished": "2020-11-27T06:36:00.0000000Z"  
                "datePublished": "2020-11-27T06:31:00.0000000Z",  
                "datePublished": "2020-11-27T06:30:00.0000000Z",  
                "datePublished": "2020-11-27T06:24:00.0000000Z",  
    

    I am not sure what is the offset value you used. I used 0 to get 100 results per page and it seems to give me the details in the correct way sorted accordingly.