# Spell Checker API

> Spell Checker flags misspelled words in submitted English text and generates correction suggestions. It counts total spelling errors, lists possible replacements for each mistaken word, and can return the text with the top suggestions applied, plus on paid plans the character offsets of every misspelling.

**Endpoint:** `POST https://api.apiverve.com/v1/spellchecker`  
**Category:** Text Processing  
**Cost:** 10 credits per call  
**Canonical page:** https://apiverve.com/marketplace/spellchecker

## Overview

A spell check API you can call to check spelling and correct text: send English text and get back whether it passes, how many distinct misspellings were found, and suggested corrections for each misspelled word. Turn on autocorrect to get correctedText, the text with each misspelling replaced by its first suggestion. Paid plans add total and per-word occurrence counts, and offsets to get the start and end position of every occurrence for highlighting in an editor. Spell Checker works by checking each word of the text against the US and British English dictionaries (either spelling passes) and suggesting likely replacements for the ones it does not recognise.

## Authentication

Every call carries your key in an `x-api-key` header. The same key works across the whole
APIVerve catalog — there are no per-API subscriptions. Responses always use the same three
top-level keys: `status`, `error`, and `data`.

## Example request

```bash
curl -X POST "https://api.apiverve.com/v1/spellchecker" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"text":"I neeed to call my friend on telephine today!","autocorrect":true,"offsets":true}'
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `text` | string | Yes | The text to check the spelling of. length 0-50000 |
| `autocorrect` | boolean | No | Include correctedText, the submitted text with each misspelling replaced by its first suggestion. default false |
| `offsets` | boolean | No | Include the start and end character position of every occurrence of each misspelled word. default false. Premium field |

## Response fields

- `spellPass` — boolean · Whether the text passed the spell check with no misspellings detected
- `mispellingsFound` — number · Count of distinct misspelled words found in the text (a word repeated multiple times is only counted once)
- `totalOccurrences` — number · Total number of misspelled words in the text, counting every repeat · (premium)
  - `corrections.0.word` — string · The misspelled word as it appeared in the text
  - `corrections.0.suggestions` — array · Up to five candidate correct spellings for the misspelled word, ordered by the dictionary's relevance ranking
  - `corrections.0.occurrences` — number · How many times the misspelled word appears in the text · (premium)
    - `corrections.0.offsets.0.start` — number · Character offset where the occurrence begins · (premium)
    - `corrections.0.offsets.0.end` — number · Character offset just after the occurrence ends · (premium)
- `correctedText` — string · The submitted text with each misspelling replaced by its first suggestion, capitalized or upper-cased where the original word was; words with no suggestion are left as written (only with autocorrect=true)

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "spellPass": false,
    "mispellingsFound": 2,
    "totalOccurrences": 2,
    "corrections": [
      {
        "word": "neeed",
        "suggestions": [
          "needed",
          "need",
          "needy",
          "Neel",
          "needs"
        ],
        "occurrences": 1,
        "offsets": [
          {
            "start": 2,
            "end": 7
          }
        ]
      },
      {
        "word": "telephine",
        "suggestions": [
          "telephone",
          "telephoned",
          "telephoner",
          "telephones",
          "telephony"
        ],
        "occurrences": 1,
        "offsets": [
          {
            "start": 29,
            "end": 38
          }
        ]
      }
    ],
    "correctedText": "I needed to call my friend on telephone today!"
  }
}
```

## Use cases

- **Rich Text Editors** — Flag typos in user-submitted drafts in real time and display replacement suggestions directly inside the editing interface.
- **Customer Support Chat** — Before sending agent replies to customers, scan message drafts to detect misspelled words and prevent communication errors.
- **Form Submission Sanitization** — Job boards inspect candidate resumes and cover letters upon upload to tally spelling mistakes before forwarding applications to recruiters.
- **Student Essay Assessment** — To automate rubric scoring, learning platforms scan student papers to count uncorrected typos and show teachers the identified errors.

## SDKs

- **npm** — `npm install @apiverve/spellchecker` (https://www.npmjs.com/package/@apiverve/spellchecker)
- **PyPI** — `pip install apiverve-spellchecker` (https://pypi.org/project/apiverve-spellchecker/)
- **NuGet** — `dotnet add package APIVerve.API.SpellChecker` (https://www.nuget.org/packages/APIVerve.API.SpellChecker)
- **Source** — https://github.com/apiverve/spellchecker-api

## More

- Full reference: https://docs.apiverve.com/ref/spellchecker
- Get an API key: https://dashboard.apiverve.com
- Full catalog: https://apiverve.com/marketplace
