# BPOM

Search the national food and drug register by product name, offers a consumer, across food, drugs, cosmetics, and traditional medicine.

- Method: `GET`
- Path: `/v1/bpom/products`

**Parameters**

| Name | Type | | Description |
|---|---|---|---|
| `q` | string | required | Product name to search for. At least two characters. |
| `category` | string | optional | Which register class to search: `food` (processed food), `drug`, `cosmetic`, or `traditional` (herbal and jamu). |
| `page` | integer | optional | 1 to 500. |
| `page_size` | integer | optional | Records per page, 1 to 50. |
| `max_age` | integer (seconds) | optional | Ask for data no older than this. Clamped to the product's own floor, so it can narrow the window but never force a refresh on every call. |

**Example request**

```bash
curl https://api.diraz.ae/v1/bpom/products \
  -H "Authorization: Bearer drz_live_…"
```

**Example response**

```json
{
  "data": {
    "query": "indomie",
    "category": "food",
    "page": 1,
    "page_size": 20,
    "total_items": 1405,
    "total_pages": 71,
    "results": [
      {
        "registration_number": "MD 242811002100462",
        "name": "Es Krim Rasa Mi Ayam Bawang (Indomie Ayam Bawang)",
        "brand": "CHOC ROCKS",
        "package": "Kertas Laminat (100 ml, 110 ml)",
        "status": "Berlaku",
        "registrar": "PT Cita Rasa Prima",
        "registrar_npwp": null,
        "manufacturer": "PT Cita Rasa Prima",
        "importer": null,
        "submitted_at": "2024-01-19",
        "registered_at": "2024-02-27",
        "expires_at": "2027-02-26",
        "halal_certificate_id": null
      }
    ]
  },
  "meta": {
    "request_id": "req_7Q2fK4mZ",
    "as_of": "2026-08-22T01:05:00.000Z",
    "age_seconds": 12,
    "next_update_at": "2026-08-22T01:20:00.000Z"
  }
}
```