Getting Searching Bing results by date using BING Search API


  • Hello,

    I have written a code, which consume Bing Search API to fetch search results from Bing.  My ask is, - Is it possible to get filtered results of implement date filtering to get results in specific time from.

    Like - search for 'XBox One' document which were uploaded in last 24 hours only - Achieve this search from BingSearchAPI.

    Bing Search in last 24 hours

    Code Used :

    // get base url and account key from web.config
    string searchApiServiceRootUri = ConfigurationManager.AppSettings["searchApiServiceRootUri"];
    string accountKey = ConfigurationManager.AppSettings["searchApiAccountKey"];

    // make API call
    var bingContainer = new BingSearchContainer(new Uri(searchApiServiceRootUri));

    bingContainer.Credentials = new NetworkCredential(accountKey, accountKey);

    var qry = bingContainer.Web(txtSearchString.Text, null, null, null, null, null, null, null);


    Sachin Dev Gupta

    Monday, November 4, 2013 7:19 PM