# Free Dictionary API API

> Returns English word definitions, phonetics, examples, audio pronunciations, synonyms and antonyms.

Category: Search & Knowledge. Region: global. 3 endpoints at `https://api.hoshime.com/v1/dictionaryapi/<endpoint>`, `GET` with query parameters, answering `{data, meta}` (see https://hoshime.com/docs/responses.md). Reference: https://hoshime.com/docs/platforms/dictionaryapi
## GET /v1/dictionaryapi/define

The definitions, phonetics, examples and synonyms of one word.

Scope: `social:read` · Units: 1 · Cached: 1440 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `word` | string | yes | The word to look up, such as hello. (e.g. hello) |
| `lang` | string | no | Language code of the dictionary, such as en, fr or es. (default en) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `meanings` (Meaning[]), `meanings[].definitions` (Definition[]), `meanings[].partOfSpeech` (string), `meanings[].synonyms` (string[]), `origin` (string), `phonetic` (string), `word` (string)

```bash
curl "https://api.hoshime.com/v1/dictionaryapi/define?word=hello" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/dictionaryapi/pronunciations

How a word is pronounced: its phonetic spellings and the recorded audio of each.

Scope: `social:read` · Units: 1 · Cached: 1440 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `word` | string | yes | The word to look up, such as hello. (e.g. hello) |
| `lang` | string | no | Language code of the dictionary, such as en, fr or es. (default en) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `audio` (string), `license` (string), `licenseUrl` (string), `sourceUrl` (string), `text` (string)

```bash
curl "https://api.hoshime.com/v1/dictionaryapi/pronunciations?word=hello" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/dictionaryapi/relations

The synonyms and antonyms of a word, grouped by part of speech.

Scope: `social:read` · Units: 1 · Cached: 1440 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `word` | string | yes | The word to look up, such as hello. (e.g. hello) |
| `lang` | string | no | Language code of the dictionary, such as en, fr or es. (default en) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `antonyms` (string[]), `partOfSpeech` (string), `synonyms` (string[])

```bash
curl "https://api.hoshime.com/v1/dictionaryapi/relations?word=hello" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
