# Antonym Finder API

> Antonym Finder is an antonym lookup API that finds words with opposite meanings along with their parts of speech across supported languages. Pass any term and an optional language code to receive an array of antonyms.

**Endpoint:** `GET https://api.apiverve.com/v1/antonym`  
**Category:** Text Processing  
**Cost:** 20 credits per call  
**Canonical page:** https://apiverve.com/marketplace/antonym

## Overview

Submit a target word and an optional language parameter, which defaults to English. The endpoint checks the term to return an array of direct antonyms. It also identifies the grammatical part of speech, omitting that field whenever an input word is unrecognised.

## Authentication

Every call carries your key in an `x-api-key` header. The same key works across the whole
APIVerve catalog — there are no per-API subscriptions. Responses always use the same three
top-level keys: `status`, `error`, and `data`.

## Example request

```bash
curl "https://api.apiverve.com/v1/antonym?word=happy&language=Spanish" \
  -H "x-api-key: YOUR_API_KEY"
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `word` | string | Yes | The word to get the antonyms for |
| `language` | string | No | Language to return the antonyms in. Defaults to English |

## Response fields

- `partOfSpeech` — string · Part of speech of the input word (noun, verb, adjective, adverb and so on). Omitted when the word is not recognised.
- `word` — string · The input word for which antonyms were found
- `language` — string · Language code identifying the language of the word
- `antonyms` — array · Array of antonym words with opposite meanings

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "partOfSpeech": "adjective",
    "word": "happy",
    "language": "en",
    "antonyms": [
      "sad",
      "unhappy",
      "miserable",
      "depressed",
      "glum"
    ]
  }
}
```

## Use cases

- **Vocabulary Flashcard Building** — EdTech platforms show opposite terms next to word definitions to help students prepare for standardized language exams.
- **Content Rewriting Assistance** — In text editors, writing assistants suggest contrasting phrasing by retrieving antonyms and parts of speech for highlighted text.
- **Automated Quiz Generation** — To generate fill-in-the-blank questions automatically, course creators query antonyms to build multiple-choice distractors for reading tests.
- **Customer Review Analysis** — When evaluating customer reviews, text processing pipelines inspect antonym lists to detect negation and tonal shifts.

## SDKs

- **npm** — `npm install @apiverve/antonym` (https://www.npmjs.com/package/@apiverve/antonym)
- **NuGet** — `dotnet add package APIVerve.API.AntonymFinder` (https://www.nuget.org/packages/APIVerve.API.AntonymFinder)
- **Source** — https://github.com/apiverve/antonym-api

## More

- Full reference: https://docs.apiverve.com/ref/antonym
- Get an API key: https://dashboard.apiverve.com
- Full catalog: https://apiverve.com/marketplace
