# Cek BPOM API

> Returns Indonesian BPOM registered drugs, traditional medicines, supplements, cosmetics and foods with status, composition, registrar and validity dates.

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

Registered drugs, traditional medicines, supplements, cosmetics and food by name, registration number, brand or manufacturer, with their status and dates.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `name` | string | no | Product name, at least 3 characters, such as paracetamol. (e.g. paracetamol) |
| `register` | string | no | Registration number, such as GBL2673400204A1. |
| `brand` | string | no | Brand name of the product. |
| `manufacturer` | string | no | Manufacturer name, such as a company name. |
| `limit` | integer | no | Items per page, 1 to 50. (default 20) |
| `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: `address` (string), `applicationId` (string), `atc` (string), `brand` (string), `category` (string), `categoryName` (string), `expiryDate` (string), `form` (string), `id` (string), `issuedDate` (string), `manufacturer` (string), `name` (string), `package` (string), `register` (string), `registrar` (string), `status` (string)

```bash
curl "https://api.hoshime.com/v1/cekbpom/search?name=paracetamol" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/cekbpom/product

One registered product from its search row: composition, registrar, form, package and validity dates.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | Product id of a search row, such as EREG1723480112600005. (e.g. EREG1723480112600005) |
| `application` | string | yes | Application id of the same row, such as 05. (e.g. 05) |
| `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: `applicationId` (string), `composition` (string), `form` (string), `id` (string), `issuedBy` (string), `issuedDate` (string), `name` (string), `package` (string), `register` (string), `registrar` (string), `validUntil` (string)

```bash
curl "https://api.hoshime.com/v1/cekbpom/product?id=EREG1723480112600005&application=05" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
