Can't get VisualSearch SimilarProducts to give back any results

Sean P 0 Reputation points
2023-07-31T19:10:38.1733333+00:00

I'm trying to list products through the Bing VisualSearch API using the SimilarProduct invokedSkill.

I never see any products, even though some are listed on the Bing website. Here's the request I'm making

curl --request POST \
  --url 'https://api.bing.microsoft.com/v7.0/images/visualsearch?entityTypeHint=Product&mkt=en-US&setLang=en-US&safeSearch=Moderate&responseFilter=Images&imageType=Shopping' \
  --header 'Content-Type: multipart/form-data' \
  --header 'Ocp-Apim-Subscription-Key: OMITTED' \
  --data '--boundary_1234-abcd
Content-Disposition: form-data; name="knowledgeRequest"

And the empty response I get back:

{"_type": "ImageKnowledge", "instrumentation": {"_type": "ResponseInstrumentation"}, "tags": [{"displayName": "", "actions": []}], "image": {"imageInsightsToken": "ccid_Qvx1hJV7*cp_F93D79824CABB027B73F34A22C2756E8"}, "debugInfo": {}}

On the Bing website, multiple products are shown when using the same image. Is there any way to get them through the API?

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.
23 questions
{count} votes

1 answer

Sort by: Most helpful
  1. romungi-MSFT 43,631 Reputation points Microsoft Employee
    2023-08-01T08:03:21.5966667+00:00

    @Sean P I think only SimilarImages skill is only supported by bing visual search API. I remember SimilarProducts was removed as a skill last year. Could you check if SimilarImages skill works?

    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.

    1 person found this answer helpful.
    0 comments No comments