Hasan
Hasan

Reputation: 21

BING API Search Query

I'm trying to search the Bing API for a list words using the 'site' parameter to only get results from that site / domain.

I've tried to use the following as a search query in bing

site:https://www.bbcgoodfood.com/ cake OR gateau OR victoria sponge

However this does not bring back appropriate results. I only want results from that site and I want to see if they contain any of those words.

Upvotes: 0

Views: 670

Answers (2)

saurabh shrivastava
saurabh shrivastava

Reputation: 64

What you are looking for is actually Bing Custom Search API. Use Bing Custom Search API, to scope your results from limited domains (in your case a single domain). It comes in two flavor:

  1. Regular Rest API that returns JSON.
  2. Prebuilt UX that you can embed in your code with single line of code.

Try it out here: https://azure.microsoft.com/en-us/services/cognitive-services/bing-custom-search/

Upvotes: 0

Ronak
Ronak

Reputation: 736

The problem here seems to be with "OR"ing of multiple queries. If you remove all the "OR"s from this query, it works. If you really need to "OR", you can make different queries with one phrase each time and site:.

Upvotes: 0

Related Questions