Does bing autosuggest API support HTTP requests?

Mike Ubezzi 2,776 Reputation points
2020-05-13T00:30:36.497+00:00

Can I use Bing auto suggest API with HTTP only requests to get suggestions for my search terms for my internal website?

[Note: As we migrate from MSDN, this question has been posted by an Azure Cloud Engineer as a frequently asked question] Source: MicrosoftDocs

Bing Autosuggest
Bing Autosuggest
A Bing service that gives your app intelligent autosuggest options for searches.
13 questions
0 comments No comments
{count} votes

Accepted answer
  1. Rohit Mungi 801 Reputation points
    2020-05-13T10:11:07.037+00:00

    Requests to the Bing Autosuggest API must use the HTTPS protocol.

    We recommend that all requests originate from a server. Distributing the key as part of a client application provides more opportunity malicious third-party access. Additionally, making calls from a server provides a single upgrade point for future updates.

    The request must specify the q query parameter, which contains the user's partial search term. Although it's optional, the request should also specify the mkt query parameter, which identifies the market where you want the results to come from. For a list of optional query parameters, see Query Parameters. All query parameter values must be URL encoded.

    The request must specify the Ocp-Apim-Subscription-Key header. Although optional, you are encouraged to also specify the following headers:

    User-Agent  
    X-MSEdge-ClientID  
    X-Search-ClientIP  
    X-Search-Location  
    

    The client IP and location headers are important for returning location aware content.

    Source: Azure Documentation

    0 comments No comments

0 additional answers

Sort by: Most helpful

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.