apyhub
Back
DATA VALIDATION · DEVELOPER TOOLS

Check Spelling API

What it does

The Check Spelling API is a spell check API that finds the misspelled words in a word, phrase or short text and suggests a correction for each one. It tells you what is wrong and what it should be, and leaves the decision to change the text to you.

It is a single GET request: pass the text in the text query parameter and the answer comes back straight away. The response has three parts: input with the text that was checked, misspelled with an array of the words that are wrong, and corrections, which maps each wrong word to its suggested fix. Checking Ths is a smple sentence returns ["Ths", "smple"] as misspelled, with Ths corrected to This and smple to simple.

Because it reports mistakes instead of rewriting the text, it fits anywhere you want to show a suggestion to a person: a "did you mean" prompt on search queries, spelling hints in form fields while the user types, flags on product titles and listings before they are published, and checks on names, tags or keywords in your own data. An empty misspelled array is a quick signal that the text is clean.

If you want the fully corrected text back in one go, use the Correct Text Spelling API. For longer text, or to fix grammar as well as spelling, use the Proofread Text and Grammar Check API.

You can try it right here in the playground. Start for free with 5 API calls a day, no card required, and check your own text before you commit.

The API is also available through ApyHub MCP, so AI agents can check spelling directly before they store or send text.

GET
Detect misspelled words in text and return correction suggestions
https://api.eu.apyhub.com/dosvak/spellcheck

QUICKSTART

GUIDE

Quickstart

Check a word or phrase for spelling mistakes by sending it as the text query parameter.

curl -X GET "https://api.eu.apyhub.com/dosvak/spellcheck?text=Ths%20is%20a%20smple%20sentence" \
  -H "apy-token: $APY_TOKEN"

What you'll get back

Returns a JSON object with three optional top-level fields: input is the original text as a string, misspelled is an array of misspelled words, and corrections is an object mapping misspelled words to suggested corrections.

{
  "input": "Ths is a smple sentence",
  "misspelled": ["Ths", "smple"],
  "corrections": {
    "Ths": "This",
    "smple": "simple"
  }
}
TRY ITLIVE · 10 ATOMS
Loading your default key…
The full key is used to call the gateway and stays in this tab — never sent to orbit or saved.

About this endpoint

What it does

Detects misspelled words in the provided text and returns suggested corrections. You send the text as a query parameter and receive a JSON object describing the input, the misspelled words, and a corrections map.

Query Parameter(s)

AttributeTypeMandatoryDescription
textStringYesThe text to check for spelling mistakes.

Response

Returns a JSON object with three top-level fields: input as a string, misspelled as a string array, and corrections as an object whose values are strings. The schema does not define a fixed success status code, so the response shape itself is the source of truth.

ParameterTypeMandatoryDescription
inputStringNoThe input text that was checked.
misspelledString ArrayNoA list of misspelled words found in the input text.
correctionsObjectNoA map of corrections for misspelled words; each property value is a string.

Query parameters

Name
Type
Description
textREQUIRED
string
▣ COMMON ERRORS

Errors any endpoint can return

400bad_request

Required parameter missing or malformed body.

401unauthorized

API key missing, revoked, or not authorized for this service.

429rate_limited

Your plan's per-second rate exceeded. Retry with exponential backoff.

503upstream_busy

Backend temporarily unavailable. Try again in a few seconds.