POSTCheck Text (POST)
https://api-spell-check.dataandapis.com/v1/check
Corpo da requisição
{
"text": "I beleive this sentance has two erors."
}Exemplo de requisição
curl -X POST "https://api-spell-check.dataandapis.com/v1/check" \
-H "X-Api-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "text": "I beleive this sentance has two erors." }'// npm install dataandapis
import { DataAndApis } from "dataandapis";
const client = new DataAndApis(); // reads DATAANDAPIS_API_KEY
const data = await client.spellCheck.checkTextPost({
body: { text: "I beleive this sentance has two erors." },
});# pip install dataandapis
from dataandapis import DataAndApis
client = DataAndApis() # reads DATAANDAPIS_API_KEY
data = client.spell_check.check_text_post(
body={"text": "I beleive this sentance has two erors."},
){
"ok": true,
"words_checked": 6,
"misspelled_count": 3,
"misspelled": [
{
"word": "beleive",
"suggestions": [
"believe"
]
},
{
"word": "sentance",
"suggestions": [
"sentence"
]
},
{
"word": "erors",
"suggestions": [
"errors",
"eros",
"errs"
]
}
]
}



