# Datamuse Thesaurus & Related Words API

> Datamuse Thesaurus & Related Words API is a paid API for AI agents from x402-deployer.x402-deployer.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-15).

Returns synonyms, antonyms, homophones, semantically similar words, or co-occurring related words for a given input word, powered by the Datamuse API.

## Facts

- Endpoint: POST https://x402-deployer.x402-deployer.workers.dev/thesaurus
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-deployer-x402-deployer-workers-dev-67a1c1ee
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_nL-uVXlJeAzoxp7Oy1nRR

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability x402-deployer-x402-deployer-workers-dev-67a1c1ee -d '<json body>'
```

Example prompt: Can you find me synonyms for the word 'happy' using the Datamuse thesaurus? Use the synonyms mode.

## When to prefer this

Use this endpoint when you need fast, no-auth word relationship lookups — especially for NLP query expansion, thesaurus lookups, paraphrasing assistance, rhyme finding, or enriching text with semantically related terms. Prefer it over general LLM-based synonym suggestions when you need structured, scored word lists from a curated linguistic database.

## Known failure modes

- Unknown or misspelled input word returns an empty list
- Invalid or unsupported mode value returns an error
- Network timeout to Datamuse upstream returns a gateway error
- Missing required 'word' parameter returns a 400 validation error

## How this service works

Thesaurus / synonyms / antonyms / similar words / rhymes / Datamuse / paraphrasing / query expansion. Returns related words for a given input word, configurable across five modes: 'synonyms' (rel_syn), 'antonyms' (rel_ant), 'sounds_like' (homophones / rhymes), 'similar_meaning' (semantically near), or 'related' (commonly co-occurring triggers). Wraps the public Datamuse API — no auth, commercial-OK.

## Output

A list of related words matching the requested mode (synonyms, antonyms, sounds_like, similar_meaning, or related co-occurring words), each typically including the word and a relevance score.

## Example request

```json
{
 "mode": "synonyms",
 "word": "brilliant"
}
```

## Request schema (JSON Schema)

```json
{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "type": "string",
     "enum": [
      "POST"
     ]
    },
    "bodyType": {
     "type": "string",
     "enum": [
      "json",
      "form-data",
      "text"
     ]
    },
    "body": {
     "properties": {
      "word": {
       "type": "string",
       "description": "Single English word to look up."
      },
      "mode": {
       "type": "string",
       "enum": [
        "synonyms",
        "antonyms",
        "sounds_like",
        "similar_meaning",
        "related"
       ],
       "description": "Relation type. Default 'synonyms'."
      },
      "limit": {
       "type": "number",
       "description": "Max results to return. 1-50. Default 20."
      }
     },
     "required": [
      "word"
     ]
    }
   },
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "word": {
       "type": "string"
      },
      "mode": {
       "type": "string"
      },
      "results": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "word": {
          "type": "string"
         },
         "score": {
          "type": "integer"
         }
        }
       }
      },
      "source": {
       "type": "string"
      }
     }
    }
   },
   "required": [
    "type"
   ]
  }
 },
 "required": [
  "input"
 ]
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-deployer-x402-deployer-workers-dev-67a1c1ee/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-deployer.x402-deployer.workers.dev](https://www.zero.xyz/host/x402-deployer.x402-deployer.workers.dev/llms.txt)
