# AgenWebsite Rate API

> REST API cek ongkir Indonesia untuk developer — 14 kurir dalam satu endpoint, termasuk kurir instant dalam kota.

Source: https://www.agenwebsite.com/documentation/agenwebsite-rate-api/ · Updated: 2026-11-17 · Language: Bahasa Indonesia

**Ringkasan**

### Apa itu AgenWebsite Rate API

**AgenWebsite Rate API** adalah REST API cek ongkos kirim untuk developer. Kirim alamat asal, alamat tujuan, dan berat paket; API mengembalikan tarif dari **14 kurir Indonesia** dalam satu format JSON yang konsisten, lengkap dengan estimasi waktu tiba dan penanda layanan termurah serta tercepat. Kurir instant dalam kota (Lalamove, GoSend) ikut tampil bila Anda mengirim titik koordinat asal dan tujuan.

Base URL: `https://api.agenwebsite.com/v1` · Autentikasi lewat header `x-api-key`.

> **Cakupan:** API ini khusus **menghitung ongkir**. API tidak membuat order, tidak menerbitkan AWB/resi, tidak melacak paket, dan tidak menghitung biaya COD.

### Endpoint

| Method | Path | Fungsi |
| --- | --- | --- |
| POST | `/v1/rates` | Tarif semua kurir untuk satu rute. [Referensi](https://www.agenwebsite.com/documentation/agenwebsite-rate-api/agenwebsite-rate-api-rates/) |
| GET | `/v1/locations/search` | Autocomplete alamat (kelurahan, kecamatan, kota, provinsi, kode pos). [Referensi](https://www.agenwebsite.com/documentation/agenwebsite-rate-api/agenwebsite-rate-api-locations/) |
| GET | `/v1/couriers` | Daftar 14 kurir: kode, nama, logo. [Referensi](https://www.agenwebsite.com/documentation/agenwebsite-rate-api/agenwebsite-rate-api-couriers/) |
| GET | `/v1/usage` | Paket aktif dan sisa kuota hari ini. [Referensi](https://www.agenwebsite.com/documentation/agenwebsite-rate-api/agenwebsite-rate-api-usage/) |

### Kurir yang didukung

J&T Express, JNE, SiCepat, POS Indonesia, AnterAja, TIKI, Paxel, GoSend, RPX, Lion Parcel, SAP Express, SPX Express, J&T Cargo, dan Lalamove. Tidak semua kurir melayani setiap rute; kurir instant (Lalamove, GoSend) hanya untuk rute dalam kota dan butuh koordinat. Kode kurirnya ada di [GET /v1/couriers](https://www.agenwebsite.com/documentation/agenwebsite-rate-api/agenwebsite-rate-api-couriers/).

### Paket dan kuota

Kuota dihitung per akun per hari dan di-reset setiap pukul 00:00 WIB. Semua API key dalam satu akun berbagi kuota yang sama.

| Paket | Kuota / hari | Burst / menit | Key aktif | Harga |
| --- | --- | --- | --- | --- |
| Free | 150 | 20 | 2 | Rp 0 |
| Pro | 30.000 | 300 | 5 | Rp 129.000 / bulan |
| Max | 60.000 | 600 | 20 | Rp 229.000 / bulan |

### Alur integrasi

1. Buat akun dan ajukan akses di [Akun → Developer API](https://www.agenwebsite.com/account/developer-api/). Setelah disetujui tim AgenWebsite, buat (generate) API key. [Panduan Quickstart](https://www.agenwebsite.com/documentation/agenwebsite-rate-api/agenwebsite-rate-api-quickstart/)
2. Simpan key di environment variable server (mis. `AGENWEBSITE_API_KEY`), jangan di browser atau aplikasi mobile.
3. Pembeli mengisi alamat lewat `/v1/locations/search`.
4. Server Anda memanggil `/v1/rates` dan menampilkan pilihan kurir.
5. Tangani error dan kuota sesuai [Penanganan Error](https://www.agenwebsite.com/documentation/agenwebsite-rate-api/agenwebsite-rate-api-errors/) dan [Batas & Kuota](https://www.agenwebsite.com/documentation/agenwebsite-rate-api/agenwebsite-rate-api-rate-limits/).

### Untuk AI coding agent

Dokumentasi ini siap dibaca AI:

- [prompt.md](https://www.agenwebsite.com/developer-api/prompt.md): instruksi langkah demi langkah yang diikuti agent untuk memasang Rate API di proyek Anda.
- [llms.txt](https://www.agenwebsite.com/developer-api/llms.txt) dan [llms-full.txt](https://www.agenwebsite.com/developer-api/llms-full.txt): indeks dan seluruh dokumentasi dalam satu file.
- [OpenAPI spec](https://api.agenwebsite.com/v1/openapi.json): skema request dan response yang bisa dibaca mesin.

> **Pakai AI coding agent?** Tempel kalimat ini ke Claude Code, Cursor, Codex, atau Copilot: `Fetch and follow https://www.agenwebsite.com/developer-api/prompt.md to integrate AgenWebsite Rate API`. Setiap halaman dokumentasi ini juga tersedia sebagai Markdown di `<url-halaman>index.md`.

## Articles

### Memulai

- [Memulai / Quickstart](https://www.agenwebsite.com/documentation/agenwebsite-rate-api/agenwebsite-rate-api-quickstart/index.md): Dapatkan API key, kirim request cek ongkir pertama, dan pahami struktur respons dalam beberapa menit.
- [Autentikasi (x-api-key)](https://www.agenwebsite.com/documentation/agenwebsite-rate-api/agenwebsite-rate-api-authentication/index.md): Cara mengautentikasi request dengan header x-api-key, format key awk_live_, serta praktik keamanan, rotasi, dan revoke.
- [Batas & Kuota (Rate Limits)](https://www.agenwebsite.com/documentation/agenwebsite-rate-api/agenwebsite-rate-api-rate-limits/index.md): Kuota harian per tier Free/Pro/Max, batas burst per menit, header X-RateLimit-*, respons 429, dan praktik terbaik.

### Endpoint

- [POST /v1/rates — Cek Ongkir](https://www.agenwebsite.com/documentation/agenwebsite-rate-api/agenwebsite-rate-api-rates/index.md): Endpoint utama cek ongkir: request body lengkap, contoh curl, response asli dengan penjelasan tiap field, kurir instant dengan koordinat, helper termurah/tercepat.
- [GET /v1/couriers](https://www.agenwebsite.com/documentation/agenwebsite-rate-api/agenwebsite-rate-api-couriers/index.md): Daftar 14 kurir yang didukung: contoh response dan tabel courier_code (JNE, J&T, SiCepat, POS, AnterAja, TIKI, Paxel, GoSend, RPX, Lion, SAP, SPX, J&T Cargo, Lalamove).
- [GET /v1/locations/search](https://www.agenwebsite.com/documentation/agenwebsite-rate-api/agenwebsite-rate-api-locations/index.md): Autocomplete kelurahan, kecamatan & kode pos: query param, contoh response, dan cara mengirim lokasi terpilih ke /v1/rates.
- [GET /v1/usage](https://www.agenwebsite.com/documentation/agenwebsite-rate-api/agenwebsite-rate-api-usage/index.md): Pantau kuota harian: window saat ini, contoh response, dan cara memantau sisa kuota via header X-RateLimit tanpa panggilan ekstra.

### Referensi

- [Penanganan Error](https://www.agenwebsite.com/documentation/agenwebsite-rate-api/agenwebsite-rate-api-errors/index.md): Envelope error standar, tabel semua kode (400/401/422/429/502/500), dan contoh respons untuk tiap kasus.
- [Changelog](https://www.agenwebsite.com/documentation/agenwebsite-rate-api/agenwebsite-rate-api-changelog/index.md): Riwayat versi API: rilis perdana v1.0 (Juli 2026) dengan rates/couriers/locations/usage, plus roadmap COD & pelacakan AWB.

## For AI agents

- [Integration prompt](https://www.agenwebsite.com/developer-api/prompt.md)
- [llms.txt](https://www.agenwebsite.com/developer-api/llms.txt) · [llms-full.txt](https://www.agenwebsite.com/developer-api/llms-full.txt)
- [OpenAPI spec](https://api.agenwebsite.com/v1/openapi.json)
