question

Gio-0841 avatar image
0 Votes"
Gio-0841 asked romungi-MSFT answered

Bing News Search API returns similar articles from different sources. Is there a solution?

Hi all!

I'm using the News API where the user can input the search query. I'm still testing it but I noticed it returns a bunch of very very similar articles from several sources.

I'm thinking to implement a filter with JavaScript once I get the results back but I was wondering if there is a better way (maybe, an option/parameter I can pass in the API call) to get unique results back?


Thank you in advance.
Gio

azure-bing-news
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

romungi-MSFT avatar image
0 Votes"
romungi-MSFT answered

@Gio-0841 With the bing news search API the options to limit your source of search results is to use the cc parameter in the request which is basically the country code to return the results specific to a location. mkt is another parameter to specify the market from which the request was made. Both these are options are mutually exclusive.

A better way to tailor or limit the results from only the required sources is to use the bing custom search API. This API allows you to control the domains from which the results are returned and the custom search portal helps you add/remove the domains and publish your custom search instance.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.