Microsoft Bing Customer Search Deployed. Seeking Javascript embed for usage.

Maggie Gibson 0 Reputation points
2023-12-06T19:17:47.65+00:00

We recently deployed a Bing Search API in our Azure account. Under Settings I can see KeySetting and sample code in C#, JAVA, PYTHON.

We used javascript on our old website with the previous search:

EXAMPLE OLD CODE:

<script type="text/javascript" id="bcs_js_snippet" src="https://ui.customsearch.ai/api/ux/render?customConfig=2480718146&market=en-US&safeSearch=Moderate&q="></script>

The above was the old script found on the website. We need something similar, so that we can add to the website.With referring the old script, can anyone suggest code should be installed on the website?

Attached is supporting account info.

Bing | Bing Search APIs | Bing Custom Search API
{count} votes

1 answer

Sort by: Most helpful
  1. romungi-MSFT 48,911 Reputation points Microsoft Employee Moderator
    2023-12-07T07:54:19.3766667+00:00

    @Maggie Gibson The above snippet is using your bing custom search instance. Please login to your custom search portal and update the instance with the new set of keys and try the custom search from custom search portal before updating your website with the HTML endpoint.

    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.

    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.