NewAPIVerve Academy: free courses and certifications anyone can verify.Explore the Academy →

Did You Mean API

GET

Catch misspelled search terms and suggest the right words.

Did You Mean suggests spelling corrections for misspelled search queries and phrases. Pass any text to receive the corrected query first, then up to two close alternatives; a correctly spelled query comes back as itself.

Try it — live request, no key required

Request
GETapi.apiverve.com/v1/didyoumean?query=recieve%20teh%20pakage
Query parameters
Verification
Format

No key required to try it. Get a key to use it in your app.

Example
{
  "status": "ok",
  "error": null,
  "data": {
    "query": "recieve teh pakage",
    "didYouMean": [
      "receive the package",
      "relieve the package",
      "receive the packages"
    ]
  }
}

About the Did You Mean API

A did you mean API for search boxes, help centers and chat inputs. Did You Mean takes a query that may contain spelling mistakes and returns corrected versions of it, similar to the did you mean prompt under a search box.

You send one query string and get back the original query plus an array of suggestions: the corrected query first, for example "recieve teh pakage" becoming "receive the package", then up to two close alternatives such as a different correction for an ambiguous word. Product teams use it to rescue zero-result searches, offer typo suggestions before running an expensive lookup, and clean up user-typed phrases before passing them to another service.

Each word is checked against an English word-frequency list and corrected to the likeliest word within two edits, using the neighbouring words to choose between candidates. The same query always returns the same suggestions. Every plan, including the Free plan, receives the full response.

How it works

Did You Mean splits your query into words and checks each one against an English word-frequency list of about 117,500 words (the SymSpell list derived from Google Books Ngram counts and SCOWL, plus everyday modern words, common acronyms and dictionary words). A word that is not in the list is replaced by the likeliest word within two edits: missing letters, swapped neighbours and doubled letters cost less than other edits, a wrong first letter costs more, and British spellings rank below US ones. A rare real word next to a much commoner one, such as calender or convertor, is corrected too. For multi-word queries a bigram list scores how well each candidate fits the words beside it, and the best-scoring sequence comes first in didYouMean, followed by up to two close alternatives.

query echoes your input, trimmed. Case is kept (Whatt becomes What) and digits, symbols and punctuation are left as typed, as are unknown one- and two-letter tokens. A correctly spelled query returns itself as the only suggestion. The correction is deterministic, so the same query always returns the same list, and it fixes spelling only: it does not rephrase or add words. Brand and product names that are not in the list can be corrected toward a similar common word, so show suggestions to the user rather than replacing their text silently. There are no plan-dependent fields.

What people use it for

E-Commerce Search Suggestions
When shoppers mistype product names in a store search bar, display alternate spelling recommendations so they still find inventory.
Help Desk Query Fallback
To prevent dead ends in customer support portals, offer corrected search terms whenever a knowledge base query returns zero articles.
User Form Normalization
Clean user-submitted tags and profile fields during registration by matching misspellings against recommended corrections before saving entries to the database.
Chatbot Typo Recovery
Chatbots can parse incoming user messages with spelling mistakes and prompt users with suggested corrections before triggering fallback handlers.

Ways to call it

One endpoint, many ways in — REST with JSON, XML, YAML and CSV, plus GraphQL and an MCP interface for AI agents.

JSON
Default REST response
XML
Markup format
YAML
Human-readable
CSV
Tabular export
Beta
GraphQL
Query language
New
MCP
For AI agents

Other ways to use Did You Mean

Same data, same APIVerve account, same credit balance — one key works on all of them.

Questions.

Common questions about the Did You Mean API.

Read the docs →
Can it check full search phrases, or only single words?
You can send entire search queries and multi-word phrases. Each word is corrected on its own, and the words around it help choose between close candidates, so "wether forecast tomorrow" becomes "weather forecast tomorrow". Digits, symbols and punctuation are kept as typed.
What would 5,000 search corrections a month cost me?
5,000 requests use 25,000 credits, which fits well within the Starter plan allowance of 200,000 credits at $29.99 per month. That works out to about $0.00075 per check, or $0.75 per 1,000 calls. The Free plan provides 40 checks each month for testing.
What does the response return if the query has no spelling mistakes?
When a query is already spelled correctly, didYouMean holds just the query itself. Your original input is always returned in the query field so you can confirm what was evaluated.
Can I receive multiple spelling suggestions for a single input?
Yes. didYouMean is an array: the best correction comes first, followed by up to two alternatives when another correction is nearly as likely (wether gives whether and weather). Your application can show them all or take the first one.
Does it automatically overwrite the text or just provide suggestions?
It provides suggestions separately from your input rather than modifying the text silently. The response returns your original query alongside an array of suggested corrections so your product can choose between automatic replacement and prompting the user.
Where do the word lists come from?
Word and bigram frequencies come from the SymSpell frequency dictionaries by Wolf Garbe (MIT licence), which combine Google Books Ngram counts (CC BY 3.0) with SCOWL, the Spell Checker Oriented Word Lists. US and British spellings are told apart with the word lists bundled with simple-spellchecker. Corrections are computed on our own servers; no query is sent to an AI model or a third party.
Does it rephrase or complete my query?
No. It corrects spelling only, word by word, so "what weather today" is returned unchanged rather than rewritten as a question. Use it to fix typos, not to suggest related searches.

Ready to build with Did You Mean? Start with 200 free credits — one key unlocks all 420+ APIs.

Explore the catalog

420+ APIs on the same key and the same response shape.

Browse all APIs