Catalog/words-autocomplete

Words

Word autocomplete / typeahead API

Ranked word completions for a prefix, scored by likelihood — a suggestion engine for search boxes and writing aids. Answers 'what words start with quant?', 'autocomplete this partial word'.

Price$0.01per request
MethodPOST
Route/v1/words/autocomplete
StatusLive
MIME typeapplication/json
Rate limit60/minute
Cache86400s public
wordsautocompletetypeaheadsuggestprefixsearchdatamuselexical
API URLhttps://x402.hexl.dev/v1/words/autocomplete
Integration docs
Example request
{
  "prefix": "quant",
  "max": 5
}
Example response
{
  "prefix": "quant",
  "count": 5,
  "suggestions": [
    {
      "word": "quantity",
      "score": 148098
    },
    {
      "word": "quantum",
      "score": 148091
    },
    {
      "word": "quantify",
      "score": 148084
    },
    {
      "word": "quantitative",
      "score": 148079
    },
    {
      "word": "quant",
      "score": 148065
    }
  ]
}
Input schema
{
  "type": "object",
  "required": [
    "prefix"
  ],
  "properties": {
    "prefix": {
      "type": "string",
      "description": "Partial word; letters, spaces, hyphens, apostrophes."
    },
    "max": {
      "type": "integer",
      "default": 10,
      "minimum": 1,
      "maximum": 50
    }
  }
}
Output schema
{
  "type": "object",
  "additionalProperties": true
}