Using Bing Search API

Hi every one,
I needed to use Bing search API Yesterday and I'd like to share it with you.
What should you do to use Bing Search API

  1. You should have a Microsoft account (hotmail,....), Sign in here.
  2. If you don't have a Windows Azure Marketplace account you will be redirected to a registration form, fill it and press continue then accept the terms of use, Register.
  3. If you opened "My Account" you will see what you need and it is the Primary Account key that you will need as an Appid to authenticate your request.
  4. The Appid is formed by adding a colon(:) before it then encode to base64, you can use this link.
  5. You now need to subscribe for Bing search API from here, there is a free plan 5,000 Transaction/month.
  6. To use the API in your code, make sure to put this header in your request "Authorization : Basic [your Appid]"
  7.  You can test the API and check different url forms from here.
Good Luck.

Comments

Popular Posts