Search code examples
c#.netbingbing-api

Bing API in .net


I use this code to use bing api in my app:

string requestString = "http://api.bing.net/xml.aspx?"

        // Common request fields (required)
        + "AppId=" + bingAppId
        + "&Query=" + searchString
        + "&Sources=Web"
        + "&Web.Count=20";

and i want to know if there is a way to tell the api that i dont want to get results from a specific website.


Solution

  • Maybe in query: -site:stackoverflow.com