0
votes

I am new to this community. So ignore if i am not asking question according to the standards.

My Question here I am trying to get information from bing search through URl. For this I create account on hotmail.com and get my account key which was by default. I wrote the following url in browser. https://api.datamarket.azure.com/Bing/Search/Web?Query=%27Xbox%27 After that it demands username/password. I saw in documents that username can be placed empty but password will be your account key. I write the accurate key but I alwasy get 403 forbidden error. as given below

403 - Forbidden: Access is denied. You do not have permission to view this directory or page using the credentials that you supplied. I also create my own account key but alwasys get the same results. Anyone please help me.. where I m wrong.

Many thanks, Farhan

2

2 Answers

1
votes

Have you used the account key mentioned as "Primary Account Key" on your Azure Datamarket Account page?

I tried to access the link you mentioned using my key and was able to get search results in xml format successfully.

0
votes

I strongly recommend you switch to the new Bing Search API, which is part of Microsoft Cognitive Services: Bing Web Search API. The legacy Search API in Azure marketplace will soon be deprecated (Dec '16).

Getting started is easy. After you sign up to Cognitive Services with your Microsoft account (e.g outlook.com e-mail), you'll get a subscription key, which you can use to send requests to the API, as described in the Getting Started guide.