Spell Check Client
microsoft · Developer Tools
The Spell Check API - V7 lets you check a text string for spelling and grammar errors.
Authentication
Sample Requests
The Bing Spell Check API lets you perform contextual grammar and spell checking. Bing has developed a web-based spell-checker that leverages machine learning and statistical machine translation to dynamically train a constantly evolving and highly contextual algorithm. The spell-checker is based on
Hover any highlighted part to learn what it does
| X-BingApis-SDK | true |
curl -X POST "https://api.apis.guru/v2/specs/microsoft.com/cognitiveservices-SpellCheck/1.0/spellcheck?cc=example&mkt=example&Mode=proof&Text=example&DocId=example&UserId=example&AppName=example&SetLang=example&SessionId=example&ActionType=Edit&PreContextText=example&PostContextText=example&ClientMachineName=example" \ -H "X-BingApis-SDK: true"
import requests
params = {
"cc": "example",
"mkt": "example",
"Mode": "proof",
"Text": "example",
"DocId": "example",
"UserId": "example",
"AppName": "example",
"SetLang": "example",
"SessionId": "example",
"ActionType": "Edit",
"PreContextText": "example",
"PostContextText": "example",
"ClientMachineName": "example"
}
headers = {
"X-BingApis-SDK": "true"
}
response = requests.post(
"https://api.apis.guru/v2/specs/microsoft.com/cognitiveservices-SpellCheck/1.0/spellcheck",
params=params,
headers=headers,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/microsoft.com/cognitiveservices-SpellCheck/1.0/spellcheck');
url.searchParams.set('cc', 'example');
url.searchParams.set('mkt', 'example');
url.searchParams.set('Mode', 'proof');
url.searchParams.set('Text', 'example');
url.searchParams.set('DocId', 'example');
url.searchParams.set('UserId', 'example');
url.searchParams.set('AppName', 'example');
url.searchParams.set('SetLang', 'example');
url.searchParams.set('SessionId', 'example');
url.searchParams.set('ActionType', 'Edit');
url.searchParams.set('PreContextText', 'example');
url.searchParams.set('PostContextText', 'example');
url.searchParams.set('ClientMachineName', 'example');
const response = await fetch(url, {
method: 'POST',
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-SpellCheck/1.0/spellcheck")
q := baseURL.Query()
q.Set("cc", "example")
q.Set("mkt", "example")
q.Set("Mode", "proof")
q.Set("Text", "example")
q.Set("DocId", "example")
q.Set("UserId", "example")
q.Set("AppName", "example")
q.Set("SetLang", "example")
q.Set("SessionId", "example")
q.Set("ActionType", "Edit")
q.Set("PreContextText", "example")
q.Set("PostContextText", "example")
q.Set("ClientMachineName", "example")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("POST", 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-SpellCheck/1.0/spellcheck")
uri.query = URI.encode_www_form({
"cc" => "example",
"mkt" => "example",
"Mode" => "proof",
"Text" => "example",
"DocId" => "example",
"UserId" => "example",
"AppName" => "example",
"SetLang" => "example",
"SessionId" => "example",
"ActionType" => "Edit",
"PreContextText" => "example",
"PostContextText" => "example",
"ClientMachineName" => "example"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Post.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-SpellCheck/1.0/spellcheck?" . http_build_query([
"cc" => "example",
"mkt" => "example",
"Mode" => "proof",
"Text" => "example",
"DocId" => "example",
"UserId" => "example",
"AppName" => "example",
"SetLang" => "example",
"SessionId" => "example",
"ActionType" => "Edit",
"PreContextText" => "example",
"PostContextText" => "example",
"ClientMachineName" => "example"
]);
$opts = ["http" => [
"method" => "POST",
"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
- See official documentation for authentication and setup.
What can you build with Spell Check Client?
Spell Check 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. Spell Check Client is free to use, making it a low-risk choice to experiment with.
New to APIs? Read our beginner's guide