Azure Bing API Visual Image search implementation in PHP

Adeyeye George 1 Reputation point
2021-12-05T11:20:03.04+00:00

I have some list of image url on my system and i want to use each image url to search for similar images using PHP on Bing but there seems to be no example of PHP use case in the docs. I can only see JavaScript implementations through uploading image.

I don't want to use JavaScript because everything is to run from the server side without client interactions.

I can also see the PHP text search implementations here https://learn.microsoft.com/en-us/azure/cognitive-services/bing-image-search/quickstarts/php but this is using text to search for images.

What am looking for is to use image url to search for similar images on the api.

Please if help me... with the PHP implementations. Thanks.

Bing Image Search
Bing Image Search
A Bing service that supports searching for images and gets comprehensive results.
42 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. romungi-MSFT 41,321 Reputation points Microsoft Employee
    2021-12-06T14:55:38.437+00:00

    @Adeyeye George The doc link mentioned seems to point to the bing image search API which uses text in the query string to get the results. Bing visual search along with other bing search API's migrated to bing from cognitive services and the appropriate doc link for all services is the following.

    I am not an expert on PHP but the following SO thread could help to perform a PHP visual search operation. I hope this helps.

    P.S: SO thread referenced

    If an answer is helpful, please click on 130616-image.png or upvote 130671-image.png which might help other community members reading this thread.

    1 person found this answer helpful.