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 string to receive the original query along with a list of alternate spelling suggestions.

Try it — live request, no key required

Request
GETapi.apiverve.com/v1/didyoumean?query=what%20weather%20today%20is
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": "what weather today is",
    "didYouMean": [
      "what is the weather today",
      "what's the weather like today",
      "what will be the weather today"
    ]
  }
}

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 or awkward phrasing and returns alternative versions of it, similar to Google's did you mean prompt under a search box.

You send one query string and get back the original query plus an array of suggested rewrites with misspelled words corrected and the wording tidied, for example "what weather today is" becoming "what is the weather today". 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.

Suggestions are generated by an AI language model, so the same query can return slightly different alternatives on different calls. Every plan, including the Free plan, receives the full response: the query and the complete list of suggestions.

How it works

Did You Mean sends your query to a Gemini language model with an instruction to act as a JSON API that returns three "did you mean" alternatives in the style of a search engine, with spellings corrected and without shortening the query. The model is constrained to a JSON schema containing a single array of strings, and that array is returned as didYouMean. query echoes your input unchanged.

The model runs with a sampling temperature of 0.7, so repeated calls with the same query can produce different wording or ordering. Three suggestions are requested, but the count is not enforced in code; treat didYouMean as a list of zero or more strings rather than a fixed-length array. If the model returns nothing, didYouMean is an empty array. Suggestions are always written in English, even when the query is in another language, so this endpoint suits English search interfaces best.

If the model's safety filter blocks the query, the request fails with a 400 error and the block reason instead of returning an empty list. There is no dictionary lookup or edit-distance step: the output depends entirely on the model, so it can rephrase a correctly spelled query as well as fix a misspelled one. Use it as a suggestion source to show the user, not as an automatic correction. 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 to the endpoint. The AI-backed engine evaluates the full text string to identify typos and find appropriate spelling suggestions.
What would 5,000 search corrections a month cost me?
5,000 requests use 100,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.003 per check, or $3.00 per 1,000 calls. The Free plan provides 10 checks each month for testing.
What does the response return if the query has no spelling mistakes?
When a query is already spelled correctly, the didYouMean array will return without alternative corrections. Your original input text is always preserved and returned in the query field so you can confirm what was evaluated.
Can I receive multiple spelling suggestions for a single input?
Yes. The Did You Mean API returns suggestions inside a JSON array rather than a single string, allowing your application to present multiple alternative spellings to the user or pick the first suggestion automatically.
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.

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

Explore the catalog

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

Browse all APIs