# PUNCH API

> Returns the latest PUNCH cocktail recipes and articles by section, and recipe details with ingredients and steps.

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

The latest recipes, or the latest articles of one section such as cocktails or spirits.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `category` | string | no | Section slug, such as cocktails, beer, wine, spirits or places. Empty for the latest recipes. (e.g. cocktails) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `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` (Author), `author.avatarUrl` (string), `author.id` (string), `author.name` (string), `author.url` (string), `author.username` (string), `id` (string), `imageUrl` (string), `kind` (string), `publishedAt` (string), `source` (string), `summary` (string), `title` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/punchdrink/latest?category=cocktails" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/punchdrink/detail

The ingredients, steps, serving and garnish of one PUNCH recipe.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `url` | string | yes | Recipe page URL on punchdrink.com, such as https://punchdrink.com/recipes/dirty-gin-tonic/. (e.g. https://punchdrink.com/recipes/dirty-gin-tonic/) |
| `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), `garnish` (string), `imageUrl` (string), `ingredients` (Line[]), `ingredients[].text` (string), `servings` (string), `steps` (Line[]), `steps[].text` (string), `title` (string), `updatedAt` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/punchdrink/detail?url=https%3A%2F%2Fpunchdrink.com%2Frecipes%2Fdirty-gin-tonic%2F" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
