# ResepKoki API

> Returns recipes and articles from ResepKoki: latest, search results, full text of one entry, and its categories.

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

The latest articles and recipes of ResepKoki, newest first, one page at a time, optionally of one category.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `category` | string | no | Category slug, such as ayam-daging, ikan-seafood, sayur or kue-dessert. Omit it for every category. |
| `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), `categories` (Term[]), `categories[].name` (string), `id` (string), `imageUrl` (string), `publishedAt` (string), `source` (string), `summary` (string), `title` (string), `url` (string)

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

## GET /v1/resepkoki/search

Articles and recipes of ResepKoki that match a query, one page at a time.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | yes | Words to search the posts for, such as nasi goreng. (e.g. nasi goreng) |
| `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), `categories` (Term[]), `categories[].name` (string), `id` (string), `imageUrl` (string), `publishedAt` (string), `source` (string), `summary` (string), `title` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/resepkoki/search?query=nasi+goreng" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/resepkoki/detail

One ResepKoki recipe or article with its full text, read from the site's WordPress API.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `url` | string | yes | Post URL on resepkoki.id, or only its slug. (e.g. 10-resep-sederhana-dari-ayam-untuk-sehari-hari) |
| `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), `categories` (Term[]), `categories[].name` (string), `content` (string), `id` (string), `imageUrl` (string), `publishedAt` (string), `source` (string), `summary` (string), `tags` (Term[]), `tags[].name` (string), `title` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/resepkoki/detail?url=10-resep-sederhana-dari-ayam-untuk-sehari-hari" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/resepkoki/categories

One page of the ResepKoki categories (ayam-daging, sayur, kue-dessert and so on), with the number of articles in each.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `limit` | integer | no | Items per page, 1 to 100. (default 50; e.g. 2) |
| `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: `articleCount` (integer (int64)), `id` (string), `name` (string), `slug` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/resepkoki/categories?limit=2" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
