Find an API

Search public APIs with auth details & Postman guides

← All APIs

AutoSuggest Client

microsoft · Developer Tools

Developer Tools No Auth Free & Open developer_tools cloud

Autosuggest supplies search terms derived from a root text sent to the service. The terms Autosuggest supplies are related to the root text based on similarity and their frequency or ratings of usefulness in other searches. For examples that show how to use Autosuggest, see [Search using AutoSuggest](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-autosuggest-api-v7-reference).

Authentication

No authentication requiredFree to use with no key needed.

Sample Requests

GET The AutoSuggest API lets you send a search query to Bing and get back a list of query suggestions. This section provides technical details about the query parameters and headers that you use to request suggestions and the JSON response objects that contain them.

The AutoSuggest API lets you send a search query to Bing and get back a list of query suggestions. This section provides technical details about the query parameters and headers that you use to request suggestions and the JSON response objects that contain them.

https://api.apis.guru/v2/specs/microsoft.com/cognitiveservices-AutoSuggest/1.0/Suggestions?q=test&cc=example&mkt=en-us&setLang=example&safeSearch=Off&ResponseFormat=example

Hover any highlighted part to learn what it does

Headers — extra info sent with the request
X-BingApis-SDK true
curl -X GET "https://api.apis.guru/v2/specs/microsoft.com/cognitiveservices-AutoSuggest/1.0/Suggestions?q=test&cc=example&mkt=en-us&setLang=example&safeSearch=Off&ResponseFormat=example" \
  -H "X-BingApis-SDK: true"
import requests
params = {
    "q": "test",
    "cc": "example",
    "mkt": "en-us",
    "setLang": "example",
    "safeSearch": "Off",
    "ResponseFormat": "example"
}
headers = {
    "X-BingApis-SDK": "true"
}
response = requests.get(
    "https://api.apis.guru/v2/specs/microsoft.com/cognitiveservices-AutoSuggest/1.0/Suggestions",
    params=params,
    headers=headers,
)
print(response.json())
const url = new URL('https://api.apis.guru/v2/specs/microsoft.com/cognitiveservices-AutoSuggest/1.0/Suggestions');
url.searchParams.set('q', 'test');
url.searchParams.set('cc', 'example');
url.searchParams.set('mkt', 'en-us');
url.searchParams.set('setLang', 'example');
url.searchParams.set('safeSearch', 'Off');
url.searchParams.set('ResponseFormat', 'example');

const response = await fetch(url, {
  headers: {
    'X-BingApis-SDK': 'true'
  },
}); 
const data = await response.json();
console.log(data);
package main

import (
	"fmt"
	"io"
	"net/http"
	"net/url"
)

func main() {
	baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/microsoft.com/cognitiveservices-AutoSuggest/1.0/Suggestions")
	q := baseURL.Query()
	q.Set("q", "test")
	q.Set("cc", "example")
	q.Set("mkt", "en-us")
	q.Set("setLang", "example")
	q.Set("safeSearch", "Off")
	q.Set("ResponseFormat", "example")
	baseURL.RawQuery = q.Encode()
	targetURL := baseURL.String()
	req, _ := http.NewRequest("GET", targetURL, nil)
	req.Header.Set("X-BingApis-SDK", "true")

	client := &http.Client{}
	resp, _ := client.Do(req)
	defer resp.Body.Close()
	body, _ := io.ReadAll(resp.Body)
	fmt.Println(string(body))
}
require "net/http"
require "json"

uri = URI("https://api.apis.guru/v2/specs/microsoft.com/cognitiveservices-AutoSuggest/1.0/Suggestions")
uri.query = URI.encode_www_form({
  "q" => "test",
  "cc" => "example",
  "mkt" => "en-us",
  "setLang" => "example",
  "safeSearch" => "Off",
  "ResponseFormat" => "example"
})

http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"

req = Net::HTTP::Get.new(uri)
req["X-BingApis-SDK"] = "true"

res = http.request(req)
puts JSON.parse(res.body)
<?php
$url = "https://api.apis.guru/v2/specs/microsoft.com/cognitiveservices-AutoSuggest/1.0/Suggestions?" . http_build_query([
    "q" => "test",
    "cc" => "example",
    "mkt" => "en-us",
    "setLang" => "example",
    "safeSearch" => "Off",
    "ResponseFormat" => "example"
]);
$opts = ["http" => [
    "method" => "GET",
    "header" => implode("\r\n", [
        "X-BingApis-SDK: true"
    ]),
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));

Postman Setup Guide

Get Postman ↗
  1. See official documentation for authentication and setup.

What can you build with AutoSuggest Client?

AutoSuggest Client is a Developer Tools API. Developers commonly use developer tools APIs for:

  • automating code review and quality checks
  • integrating CI/CD pipelines and build systems
  • managing feature flags and A/B tests
  • monitoring errors and application performance
  • generating and validating test data

No authentication required. This API is open — no signup or key needed. Ideal for quick prototypes and public-facing features. AutoSuggest Client is free to use, making it a low-risk choice to experiment with.

New to APIs? Read our beginner's guide · Learn about API keys · What is REST?

Open documentation ↗