Getting Started with Bing Custom Search API

Bing Custom Search API lets you build a focused search engine that returns results only from domains you trust. Instead of the entire web, you define a curated set of sites. This sharpens relevance, improves compliance, and makes answers faster and cleaner for your users. It’s ideal for internal knowledge portals, customer-facing help centers, and vertical search experiences where control matters more than breadth.

Compared to general Bing Web Search, you get domain scoping, ranking controls, pinned results, and filters you can tune without code. You’ll create two things:

  1. a Custom Bing Search instance,
    where you configure domains and rules
  2. an Azure Bing Search resource,
    which provides keys, quotas, and enterprise-grade management.

You’ll then call an endpoint that includes your customConfig ID and your subscription key.

Architecture at a Glance

Prerequisites & Access

Create a Custom Bing Search Instance

  1. add an instance in custom bing search

    Bing Custom Search

    Untitled

    Untitled

    add domain to search on

Register the Azure Bing Resource

  1. register a Bing Custom Search in azure subscription

    Untitled

Connect Custom Config to Azure

  1. access the azure resource
    • use this endpoint, the endpoint in the sample code is not working
        https://api.bing.microsoft.com/v7.0/custom/search?q=@{triggerBody()['text']}&customconfig=5ffcd700-1ab8-4382-8c77-32bc455916e0&mkt=en-US
      

      replace the custom config with that in custom bing search

      Untitled

    • Send the search key in the header

      Ocp-Apim-Subscription-Key: <azure bing search key> Untitled

Conclusion

With a well-tuned Bing Custom Search API setup—custom instance, Azure resource, correct endpoint, and secure headers—you’ll deliver focused, trustworthy results from approved sources. Add PVA for conversational access, monitor usage, and keep domains/rules current. The result is faster answers, better compliance, and a smoother user experience for your audience.

ßHelpful External Resource