none
Unclear docs on how to get AppID

    Question

  • Hi, I'm trying to use Bing to retrieve search results programmatically.  I'm trying to get the AppID so that I can dynamically build a URL to do so.  In order to find out how to create an AppID, I went to this site:

    http://www.microsoft.com/web/post/using-the-free-bing-translation-apis

    I already have a hotmail account, so I figured I'd use that for now.  When I get to #2 in the list, I got to the specified link and try to find "Get started by applying for an AppId now"... which I don't see.  But, I have 5 options at the top: Learn, Applications, Data, My Account and Publish.  I click on "My Account" and I see a Primary Account Key and a Customer ID... is the Primary Account Key my AppID?  Am I even in the right place from the getgo?

    Some help on this would be appreciated :) .

    Friday, June 07, 2013 8:04 PM

Answers

All replies

  • Hi,

    We don't use AppID anymore. Please refer to following link as a new documentation: http://msdn.microsoft.com/en-us/library/hh454949.aspx

    Generally speaking, you need to generate clientID and client secret here: https://datamarket.azure.com/developer/applications/register

    Use any valid https URL in URI field (you are not going to need it for Translator). 

    Thanks,

    Max

    Monday, June 10, 2013 7:21 AM
    Owner
  • Hi Max,

    Thanks for writing back.  I don't think I was very explicit in my previous post.  What I'd like to do is use Bing to search for sites, then get those URLs and use them in my app.  How would I do that?  I wasn't sure how Bing translator would play out in this...

    Wednesday, June 12, 2013 7:12 PM
  • Hi Yves,

    Are you planning to use Bing translator or Bing Search API? These are different offers on the marketplace today. For Bing Search API, please refer to Bing documents published on the page below:

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

    Thanks,

    Max

    Wednesday, June 12, 2013 7:25 PM
    Owner
  • Hi Max,

    I'd like to use Bing Search API.

    I've already gone there and what I'd like to do is to have a URL that I can plug in keywords and then get a list of URLs that represent the results.  Does this make sense?
    Wednesday, June 12, 2013 7:34 PM
  • This is my dilemma, I'm trying to get the generated JSON file using the bing api search.
    
    This is the code that I'm executing from inside the Python shell:
    http://bin.cakephp.org/view/460660617
    
    The port doesn't matter to me.  Is my URL messed up?  Thoughts?
    Thursday, June 13, 2013 10:26 PM
  • We do not support passing user in URL. You should pass it as a header and you have to encode it.

    Look at code samples here:http://go.microsoft.com/fwlink/?LinkID=272626&clcid=0x409

    Thanks,

    Max


    Thursday, June 13, 2013 10:47 PM
    Owner
  • Hi Max, this is what I've tried and it worked.

    https://user:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA@api.datamarket.azure.com/Bing/SearchWeb/Web?Query=%27xbox%20one%27&$top=50&$format=JSON

    How can I do the same, but have XML be outputted?

    Friday, June 14, 2013 7:04 PM
  • You can just remove $format statement or use $format=ATOM.

    Thanks,

    Max

    Friday, June 14, 2013 10:02 PM
    Owner
  • I'm having a similar problem. According to this page: "msdn.microsoft.com/en-us/library/dd250893 .aspx"

    I should be able to use this url "http://api.bing.net/xml.aspx?AppId= YOUR_APPID &Version=2.2&Market=en-US&Query=testign&Sources=web+spell&Web.Count= 1"

    and substitute my AppId in. However this is not the case. I receive an error message stating the parameter had an invalid value.

    Friday, June 21, 2013 12:03 AM
  • You can just remove $format statement or use $format=ATOM...........

    • Edited by seobadao Thursday, July 04, 2013 10:05 AM luongdinh
    Thursday, July 04, 2013 10:04 AM
  • I think the point here is that the docs are VERY VERY OUTDATED...

    AppID is no longer used? 

    we need a clear guide on how to do this using a server side application server... think of a PHP site that is going to get Bing content and then wrap it in whatever way we want to and then present this to the end user.


    nagendra mishr

    Wednesday, July 30, 2014 2:16 PM