swudev
swudev

Reputation: 283

Bing Local Business Search API | Sending a request with Postman

I am trying to send a request to the Bing Local Business Search API using Postman.

It's giving a 404 status.

If I use the default URL not the regional one that matches my key it will return invalid key which makes sense, sounds like it's connecting properly.

But if I use the regional southcentral endpoint from my dashboard it returns a 404.

I signed up for the free plan and generated a key that I am using.

Here are my settings in postman. Thanks in advance.

bing api postman

Upvotes: 0

Views: 845

Answers (2)

xhermit
xhermit

Reputation: 501

I think you'll need to go into the Azure Portal. Under Cognitive Services create a new service with Bing Search v7 under the free tier. It should give you a global location. After it's created you'll get your keys. At least that worked for me. Their initial "Welcome page" keys did not work for me either, I don't understand why.

enter image description here

Then you'll be able to call - https://api.cognitive.microsoft.com/bing/v7.0/localbusinesses/search?q=chicago+restaurants&mkt=en-US

Upvotes: 1

robynhenderson
robynhenderson

Reputation: 1368

I think you need to URL encode the search params, the space after q=chicago should be %20.

Upvotes: 0

Related Questions