# ZenQuotes API

> Returns a random quote, the quote of the day, and the latest batch of quotes optionally filtered by author.

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

A random quote.

Scope: `social:read` · Units: 1

| 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), `date` (string), `text` (string)

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

## GET /v1/zenquotes/today

The quote of the day, the same for everyone until midnight UTC.

Scope: `social:read` · Units: 1 · Cached: 30 min

| 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), `date` (string), `text` (string)

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

## GET /v1/zenquotes/quotes

The latest batch of about fifty quotes, optionally only by authors whose name contains a text.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `author` | string | no | Text the author's name contains, such as Einstein. Case does not matter. |
| `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), `length` (integer (int64)), `text` (string)

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