bearrito
bearrito

Reputation: 2316

Simple Bing News Search Api - Search for Phrase

I want to search for a phrase and not the collection of words How can I do this?

For instance "&Query= Widget Foo"

I only want to return results with the phrase 'Widget Foo' and not widget separate from foo.

Upvotes: 0

Views: 1081

Answers (2)

Bingfoot
Bingfoot

Reputation: 21

Same principle applies to phrases searched for with the Bing API's subscription model at:

https://datamarket.azure.com/dataset/bing/search

So if you're looking for the news phrase:

"Palin mocks Obama and Rove in CPAC speech"

..wrap your query in quotes and URL encode the quotes as well:

https://api.datamarket.azure.com/Bing/Search/v1/News?Query=%27%22Palin%20mocks%20Obama%20and%20Rove%20in%20CPAC%20speech%22%27

Upvotes: 0

spinon
spinon

Reputation: 10847

Wrap your search term in quotes. Here is an example that is already url encoded:

http://www.bing.com/search?q=%22widget+foo%22

Upvotes: 1

Related Questions