Thesaurus API logo
DataMAINTAINED2 tokens / call

Thesaurus API

Synonyms and antonyms for English words, grouped by part of speech and ranked by sense, from WordNet 3.1

Synonyms and antonyms for English words, grouped by part of speech and ranked by how common each sense is, from Princeton WordNet 3.1. Ask for synonyms, antonyms or both in one call. Self-hosted, no third-party service.

Every call needs an X-Api-Key header. A free key includes 500 tokens a month, no card required. 2 tokens per call, so the free plan covers about 250 calls a month.

No credit card requiredAccess to 125+ APIsCancel anytime
response.json
{
  "ok": true,
  "word": "happy",
  "synonym_count": 3,
  "synonyms": {
    "adjective": [
      "felicitous",
      "glad",
      "well-chosen"
    ]
  },
  "antonym_count": 1,
  "antonyms": {
    "adjective": [
      "unhappy"
    ]
  },
  "source": "Princeton WordNet 3.1"
}
Production Ready
Battle-tested infrastructure with a 99.9% uptime SLA. Rate limits are generous, responses are consistent.
Simple Integration
Standard REST + JSON. Works with any HTTP client. Copy-ready code snippets in 4 languages.
One Key, 125+ APIs
Your DataAndAPIs subscription unlocks every API on the platform β€” anime, finance, sports, and more.

Use cases for Thesaurus API

  • Suggest alternative words in a writing assistant or editor.

  • Expand search queries with synonyms to improve recall.

  • Build word games and vocabulary drills around synonym and antonym pairs.

  • Normalise tags and keywords by mapping variants to a preferred term.

Thesaurus API endpoints

Every endpoint with its parameters and a real example response.

GETFull Thesaurus

https://api-thesaurus.dataandapis.com/v1/thesaurus/{word}

Path parameters

ParameterExample
wordhappyRequired

Example request

curl "https://api-thesaurus.dataandapis.com/v1/thesaurus/happy" \
  -H "X-Api-Key: YOUR_API_KEY"
Example response
{
  "ok": true,
  "word": "happy",
  "synonym_count": 3,
  "synonyms": {
    "adjective": [
      "felicitous",
      "glad",
      "well-chosen"
    ]
  },
  "antonym_count": 1,
  "antonyms": {
    "adjective": [
      "unhappy"
    ]
  },
  "source": "Princeton WordNet 3.1"
}

GETGet Antonyms

https://api-thesaurus.dataandapis.com/v1/antonyms/{word}

Path parameters

ParameterExample
wordhappyRequired

Example request

curl "https://api-thesaurus.dataandapis.com/v1/antonyms/happy" \
  -H "X-Api-Key: YOUR_API_KEY"
Example response
{
  "ok": true,
  "word": "happy",
  "antonym_count": 1,
  "antonyms": {
    "adjective": [
      "unhappy"
    ]
  },
  "source": "Princeton WordNet 3.1"
}

GETGet Synonyms

https://api-thesaurus.dataandapis.com/v1/synonyms/{word}

Path parameters

ParameterExample
wordhappyRequired

Query parameters

ParameterExample
posadjectiveOptional

Example request

curl "https://api-thesaurus.dataandapis.com/v1/synonyms/happy?pos=adjective" \
  -H "X-Api-Key: YOUR_API_KEY"
Example response
{
  "ok": true,
  "word": "happy",
  "synonym_count": 3,
  "synonyms": {
    "adjective": [
      "felicitous",
      "glad",
      "well-chosen"
    ]
  },
  "source": "Princeton WordNet 3.1"
}

Where the data comes from

Source
Princeton WordNet 3.1, used under the WordNet licence.
Freshness
Static reference data.

One install. Every endpoint.

No proprietary SDKs needed. Any HTTP client works. Pick your language and paste.

3languages
3endpoints
RESTarchitecture
1key for all APIs
  • Fully typed responses β€” auto-completion in your IDE
  • Tracks the API in lockstep β€” new endpoints land same day
  • One key works across 125+ APIs on the platform
import axios from 'axios';

const { data } = await axios.get(
  'https://api-thesaurus.dataandapis.com/v1/thesaurus/{word}',
  { headers: { 'X-Api-Key': process.env.API_KEY } }
);

Thesaurus API Β· X-Api-Key

Explore the endpoints

Browse request parameters and inspect live example responses.

Available Endpoints

Request Parameters

API URL

Headers

X-Api-Key

Path Parameters

word
import axios from 'axios';

const url = 'https://api-thesaurus.dataandapis.com/v1/thesaurus/{word}';
const { data } = await axios.get(url, {
  headers: { 'X-Api-Key': 'YOUR_API_KEY' }
});

One subscription. Every API.

Tokens unlock this API and 125+ others on DataAndAPIs. Switch APIs any time β€” we promote.

FREE

$0/mo

500 tokens / month

  • Access to all APIs
  • Tokens reset monthly
  • Community support
Start free
Most Popular

STARTER

$6.99/mo

25,000 tokens / month

  • Access to all APIs
  • Tokens reset monthly
  • Email support
Subscribe

PRO

$24.99/mo

100,000 tokens / month

  • Access to all APIs
  • Tokens reset monthly
  • Priority email support
Subscribe

ULTRA

$99.99/mo

1,000,000 tokens / month

  • Access to all APIs
  • Tokens reset monthly
  • Priority support
Subscribe

Need higher volume, dedicated infra, or a custom contract? Talk to sales β†’

Questions about Thesaurus API

Ship Thesaurus API this afternoon.

500 free tokens. No card. Plus 125+ other APIs on the same key.