# Otoritas Jasa Keuangan (OJK) API

> Returns OJK press releases and monthly banking and capital market statistics publications with document links.

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

The latest press releases of OJK, newest first.

Scope: `social:read` · Units: 1 · Cached: 30 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` (Author), `author.avatarUrl` (string), `author.id` (string), `author.name` (string), `author.url` (string), `author.username` (string), `date` (string), `id` (string), `imageUrl` (string), `publishedAt` (string), `source` (string), `summary` (string), `title` (string), `url` (string)

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

## GET /v1/ojk/latest

The newest OJK press releases, up to the ten the list shows.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `limit` | integer | no | Items per page, 1 to 10. (default 10) |
| `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), `date` (string), `id` (string), `imageUrl` (string), `publishedAt` (string), `source` (string), `summary` (string), `title` (string), `url` (string)

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

## GET /v1/ojk/statistikPerbankan

OJK's monthly banking statistics publications, newest first, with their PDF and XLSX documents.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `limit` | integer | no | Items per page, 1 to 10. (default 10) |
| `documents` | string | no | Resolve each publication's XLSX and PDF links. Default false: true costs one request per entry and is slow. (one of true, false; default false) |
| `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: `month` (integer (int64)), `pageUrl` (string), `pdfUrl` (string), `period` (string), `title` (string), `xlsxUrl` (string), `year` (integer (int64))

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

## GET /v1/ojk/pasarModal

OJK's monthly capital market publications, newest first, with their PDF and XLSX documents.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `report` | string | no | Which report family: emisi-efek, bid-ask-spread, or all (both interleaved). Default all. (one of all, emisi-efek, bid-ask-spread; default all) |
| `limit` | integer | no | Items per page, 1 to 10. (default 10) |
| `documents` | string | no | Resolve each publication's XLSX and PDF links. Default false: true costs one request per entry and is slow. (one of true, false; default false) |
| `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: `month` (integer (int64)), `pageUrl` (string), `pdfUrl` (string), `period` (string), `title` (string), `xlsxUrl` (string), `year` (integer (int64))

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