# Cek Ongkir

Shipping tariffs for any route in Indonesia, kecamatan to kecamatan — every courier's services with estimated delivery time and price, at any weight.

- Method: `GET`
- Path: `/v1/ongkir`

**Parameters**

| Name | Type | | Description |
|---|---|---|---|
| `from` | string | required | Origin kecamatan or city, e.g. `gambir jakarta`. |
| `to` | string | required | Destination kecamatan or city, e.g. `coblong bandung`. |
| `weight` | number | optional | Weight in kg. |
| `courier` | string | optional | One courier or all, the default — every tariff code is listed in `/v1/resi/courier`. |

**Example request**

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

**Example response**

```json
{
  "data": {
    "from": { "id": "2096", "kec": "Gambir", "tipe": "Kota", "kota": "Jakarta Pusat", "prop": "DKI Jakarta" },
    "to": { "id": "356", "kec": "Coblong", "tipe": "Kota", "kota": "Bandung", "prop": "Jawa Barat" },
    "weight_kg": 1,
    "courier": "jne",
    "couriers": [
      {
        "courier": "JNE EXPRESS",
        "services": [
          { "service": "OKE", "etd": "2 hari", "price_idr": 11000 },
          { "service": "REG", "etd": "1 hari", "price_idr": 12000 }
        ]
      }
    ]
  },
  "meta": {
    "request_id": "req_7Q2fK4mZ",
    "as_of": "2026-08-20T00:00:00.000Z",
    "age_seconds": 3600,
    "next_update_at": "2026-08-21T00:00:00.000Z"
  }
}
```