Hi, thanks for reaching out. The Cognitive Image Search API got migrated to Microsoft Bing, please refer latest document. Ensure to use your Bing Resource Key as shown below. Let us know if you have further questions, thanks!
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I'm following the quickstart code here: https://video2.skills-academy.com/en-us/azure/cognitive-services/bing-web-search/quickstarts/client-libraries?pivots=programming-language-python
I'm using a Bing Resource with the Free Tier.
The endpoint I'm using is https://api.bing.microsoft.com/
Why am I getting these errors and how to solve the issue?
Hi, thanks for reaching out. The Cognitive Image Search API got migrated to Microsoft Bing, please refer latest document. Ensure to use your Bing Resource Key as shown below. Let us know if you have further questions, thanks!
Thank you very much, but this did not solve the issue,
Also I am trying to use Bing search rather than image search.
Could you please direct me to the document regarding news search (similar to the one I shard in the first post)
HTTPError Traceback (most recent call last)
<ipython-input-7-808139fa1eb0> in <module>
1 response = requests.get(search_url, headers=headers, params=params)
----> 2 response.raise_for_status()
3 search_results = response.json()
4 thumbnail_urls = [img["thumbnailUrl"] for img in search_results["value"][:16]]
/usr/local/lib/python3.9/site-packages/requests/models.py in raise_for_status(self)
941
942 if http_error_msg:
--> 943 raise HTTPError(http_error_msg, response=self)
944
945 def close(self):
HTTPError: 401 Client Error: PermissionDenied for url: https://api.bing.microsoft.com/v7.0/images/search?q=puppies&license=public&imageType=photo