Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8370485
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T13:55:22+00:00 2026-06-09T13:55:22+00:00

I have an application that is using the new Bing API from the Azure

  • 0

I have an application that is using the new Bing API from the Azure Datamarketplace. I used to be able to query the Bing API using a simple syntax using OR AND, etc. That doesn’t seem to work in the new API.

Old syntax:

“Jacksonville Jaguars” OR “NFL Jaguars” OR “Atlanta Falcons”

That would give me a query with any of those phrases (I am making a rt_Sports query for news).

I am calling HttpEncode on the query first, but am still not getting results. It works if I remove all the ” marks, but then I am getting results sometimes for news about Falcons and Jaguars (the animals)… Not what I wanted.

Anyone have any idea how you can form a query that takes multiple phrases?

I have tried to not use the OR, not use the ‘, use a “, use the | instead of OR. All of these work against BING the website, just not in the API.

I just tried this via Bing and got 36 Million results:

NFL Football | Seattle Seahawks | New York Giants | Dallas Cowboys | New Orleans Saints | New England Patriots | Jacksonville Jaguars

Same thing in the API returns 0.

I got an email from a friend who I also emailed this question out to and his thought was that I was going about it wrong. That there should be a way to form a LINQ query off the Bing object with multiple where clauses.

But I don’t see how that would be possible. You allow a BingSearchContainer and then call the News method on the container. The News method has only a single Query parameter.

var bingContainer = new Bing.BingSearchContainer(new Uri("https://api.datamarket.azure.com/Bing/Search"));

bingContainer.Credentials = new NetworkCredential(App.BingAPIAccountKey, App.BingAPIAccountKey);

string unifiedQuery = "NFL Football | Jacksonville Jaguars | Atlanta Falcons";

var newsQuery = bingContainer.News(unifiedQuery, null, "en-US", "Strict", null, null, null, "rt_Sports", "Relevance");

newsQuery.BeginExecute(BingNewsResultLoadedCallback, newsQuery);
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T13:55:23+00:00Added an answer on June 9, 2026 at 1:55 pm

    Try changing unifiedQuery to the following:

    var unifiedQuery = "'NFL Football' or 'Jacksonville Jaguars' or 'Atlanta Falcons'";

    I tried something very similar to your sample code, using this format for the query string, and it worked for me:

    var bingUri = new Uri("https://api.datamarket.azure.com/Bing/Search/v1/", UriKind.Absolute);
    var bingContainer = new BingSearchContainer(bingUri);
    bingContainer.Credentials = new NetworkCredential(BingAPIUserName, BingAPIAccountKey);
    var unifiedQuery = "'NFL Football' or 'Jacksonville Jaguars' or 'Atlanta Falcons'";
    
    var newsQuery = bingContainer.News(unifiedQuery, null, "en-US", "Strict", null, null, null, "rt_Sports", "Relevance");
    
    var results = newsQuery.Execute();
    foreach (var item in results)
    {
        Console.WriteLine(item.Title);
    }
    

    Here are my results:

    Fantasy Football 2012: Ranking the Top 25 RBs
    NFL Football No Longer Just a Sunday Game
    Ravens Notebook: Ed Reed decided to play in game vs. Falcons since he 'wasn't doing anything else'
    PrimeSport Partners with Jacksonville Jaguars to Offer Tickets and Official Fan
    Packages for all Home and Away Games in 2012 Season
    Jaguars cut former Ravens wide receiver Lee Evans
    Falcons left tackle Baker finally feels healthy
    Jaguars release veteran WR Lee Evans
    NFC West: 2012 NFL Training Camp
    Atlanta Falcons 2012 NFL TV Schedule
    Jaguars training camp: Veteran WR Lee Evans released
    Jaguars score 18 points in second half to beat Giants 32-31
    Jacksonville Jaguars put running back Maurice Jones-Drew on reserve/did not report list
    Postcard from camp: Falcons
    Questions abound as NFL preseason opens in earnest
    NFL fantasy football: Ryan Mathews loses value
    

    The format for the unifiedQuery string is basically the OData URI query string format. For a full description of how these query strings work, check out the OData URI conventions documentation at http://www.odata.org/documentation/uri-conventions.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a new application starting that's using Rails 2.3.8 for stability concerns and
I have an application that is served using jetty 6.1.12 from serverA. serverA is
I have a Java desktop application that is using iText to generate PDFs from
I have an application that I am using a global route to query for
I have existing Java application that is using Acegi for authentication/authorization. Our new web
I have been porting an application at work from the old Bing API to
We have an application that logs using log4net. But we would like to delete
I have an application that is using both the carrierwave & tire gems. The
I have an MVC application that is using MEF for the controllers, all working
I have a web application that is using both jQuery 1.2.6 and YUI 2.6.0

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.