Bing Visual Search API Access Denied

Mara Salem 20 Reputation points
2025-01-08T18:56:10.7666667+00:00

I'm trying to set up a visual image search through the Bing API, but I can't seem to get it to function. I have tried these two URI's:
https://api.bing.microsoft.com/v7.0/images/visualsearch

https://api.bing.microsoft.com/bing/v7.0/images/visualsearch

And neither seem to work. My subscription key is correct, and the file I am using exists and is able to be read. I am following the API/guide posted with the python quickstart found here: https://learn.microsoft.com/en-us/bing/search-apis/bing-visual-search/quickstarts/rest/python

The first URI seems to give me denied access, while the second one says the resource is not found.

Thanks!

Bing Visual Search
Bing Visual Search
A Bing service that gives you rich insights to help build compelling image applications on the device of your choice.
28 questions
0 comments No comments
{count} votes

Accepted answer
  1. Saideep Anchuri 860 Reputation points Microsoft Vendor
    2025-01-09T01:58:46.7633333+00:00

    Hi Mara Salem

    Welcome to Microsoft Q&A Forum, thank you for posting your query here!

    I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to accept the answer.

    Ask: Bing Visual Search API Access Denied

    Solution: Your issue has been resolved. You could normally search for images and queries, but visual searches didn't work until I set the entire resource group, and not just the resource, to Bing Search.

    If I missed anything please let me know and I'd be happy to add it to my answer, or feel free to comment below with any additional information.

    If you have any other questions, please let me know. Thank you again for your time and patience throughout this issue.

     

    Please don’t forget to Accept Answer and Yes for "was this answer helpful" wherever the information provided helps you, this can be beneficial to other community members.

    Thank You.

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Mara Salem 20 Reputation points
    2025-01-08T22:47:55.0333333+00:00

    Solved, created a wrong resource. I was able to search images and queries normally, but not visual searches until I made the resource group (and not just the resource) a bing search.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.