# Urban Dictionary API

> Returns community slang definitions by term or id, random and word-of-the-day entries, and autocomplete suggestions.

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

The community definitions of a term, most thumbed-up first.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | yes | The term to look up, such as yeet. (e.g. yeet) |
| `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: `author` (string), `defId` (string), `definition` (string), `example` (string), `thumbsDown` (integer (int64)), `thumbsUp` (integer (int64)), `url` (string), `word` (string)

```bash
curl "https://api.hoshime.com/v1/urbandictionary/define?query=yeet" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/urbandictionary/random

A few random community definitions. Each call returns new ones, so it is not cached.

Scope: `social:read` · Units: 1 · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `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: `author` (string), `defId` (string), `definition` (string), `example` (string), `thumbsDown` (integer (int64)), `thumbsUp` (integer (int64)), `url` (string), `word` (string)

```bash
curl "https://api.hoshime.com/v1/urbandictionary/random" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/urbandictionary/wordOfTheDay

The community definitions that Urban Dictionary features as the word of the day.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `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: `author` (string), `defId` (string), `definition` (string), `example` (string), `thumbsDown` (integer (int64)), `thumbsUp` (integer (int64)), `url` (string), `word` (string)

```bash
curl "https://api.hoshime.com/v1/urbandictionary/wordOfTheDay" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/urbandictionary/defineById

One community definition by its definition id, as the permalink of a definition shows it.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | integer | yes | Definition id, such as 13029477 from a define result. (e.g. 13029477) |
| `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: `author` (string), `defId` (string), `definition` (string), `example` (string), `thumbsDown` (integer (int64)), `thumbsUp` (integer (int64)), `url` (string), `word` (string)

```bash
curl "https://api.hoshime.com/v1/urbandictionary/defineById?id=13029477" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/urbandictionary/autocomplete

Terms that start with the text typed so far, as the search box suggests them.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | yes | The beginning of a term, such as yee. (e.g. yee) |
| `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: `term` (string)

```bash
curl "https://api.hoshime.com/v1/urbandictionary/autocomplete?query=yee" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/urbandictionary/autocompleteExtra

Terms that start with the text typed so far, each with a preview of its meaning.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | yes | The beginning of a term, such as yee. (e.g. yee) |
| `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: `preview` (string), `term` (string)

```bash
curl "https://api.hoshime.com/v1/urbandictionary/autocompleteExtra?query=yee" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
