# Halal Certificate Search

Search Indonesia's national halal certificate register by product name — the same tool BPJPH itself offers a consumer on halal.go.id, wrapped for integration.

- Method: `GET`
- Path: `/v1/halal/certificates`

**Parameters**

| Name | Type | | Description |
|---|---|---|---|
| `q` | string | required | Product name to search for. At least two characters. |
| `page` | integer | optional | 1 to 500. |
| `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/halal/certificates \
  -H "Authorization: Bearer drz_live_…"
```

**Example response**

```json
{
  "data": {
    "query": "kopi kenangan",
    "page": 1,
    "page_size": 20,
    "total_items": 42,
    "total_pages": 3,
    "results": [
      {
        "product_name": "Kopi Kenangan Original",
        "business_name": "PT Kenangan Jaya Indonesia",
        "certificate_number": "ID00110000012345678",
        "issued_at": "2026-06-15"
      }
    ]
  },
  "meta": {
    "request_id": "req_7Q2fK4mZ",
    "as_of": "2026-08-19T13:05:00.000Z",
    "age_seconds": 12,
    "next_update_at": "2026-08-19T13:05:45.000Z"
  }
}
```