# Halal BPJPH API

> Returns the BPJPH halal registers: product certificates, auditors, inspection, training and companion bodies, companions and recognised foreign certification bodies.

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

Halal auditors registered with BPJPH (the people who check a product's halal status), with the inspection body each works for. Filter by name, paged, 20 a page.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | no | Part of the auditor's name, such as Angga. |
| `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: `id` (string), `institution` (string), `name` (string), `registeredAt` (string), `registrationNumber` (string)

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

## GET /v1/halal/inspectionBodies

Halal inspection bodies (LPH, lembaga pemeriksa halal) registered with BPJPH: their region, accreditation status, the services they cover and the date the registration runs to. Filter by name, paged.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | no | Part of the inspection body's name, such as Institut Teknologi. |
| `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), `district` (string), `id` (string), `name` (string), `regency` (string), `region` (string), `registrationNumber` (string), `services` (string), `status` (string), `type` (string), `validUntilDate` (string)

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

## GET /v1/halal/foreignBodies

Foreign halal certification bodies that BPJPH recognises (lembaga halal luar negeri): their city and country, the product categories they certify and the date the recognition runs to. Filter by name and country, paged.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | no | Part of the body's name, such as Certification. |
| `country` | string | no | Part of the country name, such as Malaysia. |
| `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), `categories` (string), `city` (string), `country` (string), `id` (string), `location` (string), `name` (string), `registrationNumber` (string), `status` (string), `validUntilDate` (string)

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

## GET /v1/halal/trainingBodies

Halal training bodies (lembaga pelatihan halal) registered with BPJPH, with their address and approval status. Filter by name, paged.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | no | Part of the training body's name, such as Halal Center. |
| `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), `district` (string), `id` (string), `name` (string), `province` (string), `regency` (string), `status` (string)

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

## GET /v1/halal/companionBodies

Institutions registered with BPJPH to accompany small businesses through halal certification (lembaga pendamping proses produk halal), with their type, region and registration number. Filter by name, paged.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | no | Part of the institution's name, such as Halal Center. |
| `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), `district` (string), `id` (string), `name` (string), `province` (string), `regency` (string), `registrationNumber` (string), `status` (string), `type` (string)

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

## GET /v1/halal/companions

Halal companions (pendamping proses produk halal) registered with BPJPH, who help small businesses through halal certification, with their region, status and the institution they work for. Filter by name, paged, 20 a page.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | no | Part of the companion's name. |
| `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: `id` (string), `institution` (string), `name` (string), `province` (string), `regency` (string), `registrationNumber` (string), `status` (string)

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

## GET /v1/halal/certificates

Halal product certificates issued by BPJPH, the register of certified products: product, brand, producer, factories and issue date. Filter by product name, producer or certificate number, paged.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `product` | string | no | Part of the product name, such as Keripik Pisang. |
| `producer` | string | no | Part of the producer's name, such as Usaha Makmur. |
| `number` | string | no | Certificate number, such as ID33110084946301126. |
| `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: `brand` (string), `factories` (Factory[]), `factories[].address` (string), `factories[].name` (string), `factories[].regencyCode` (string), `issuedDate` (string), `number` (string), `producer` (string), `product` (string)

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