# AgenWebsite Rate API > REST API for Indonesian shipping rates (cek ongkir): 14 couriers behind one endpoint, incl. same-city instant (Lalamove, GoSend), x-api-key auth, JSON responses, prices in IDR, daily quota per plan. The Rate API returns shipping rates for a route (origin, destination, weight in grams) from JNE, J&T Express, SiCepat, POS Indonesia, AnterAja, TIKI, Paxel, GoSend, RPX, Lion Parcel, SAP Express, SPX Express, J&T Cargo and Lalamove (instant couriers need coordinates on both ends). It only calculates rates: no orders, AWB/resi, tracking or COD. - Base URL: `https://api.agenwebsite.com/v1`. Auth: header `x-api-key: awk_live_<32 hex>`. Call it from a server only; the key must never reach a browser or app bundle. - Endpoints: `GET /v1/usage`, `GET /v1/locations/search?q=`, `GET /v1/couriers`, `POST /v1/rates`. - Locations are Indonesian address levels: kelurahan/desa (`subdistrict`), kecamatan (`district`), kota/kabupaten (`city`), provinsi (`province`), kodepos (`zipcode`, 5 digits). Money is IDR as integers. - Quota is per account per day, reset at 00:00 WIB: Free 150/day, Pro 30.000/day, Max 60.000/day. - To integrate with an AI coding agent, tell it: "Fetch and follow https://www.agenwebsite.com/developer-api/prompt.md to integrate AgenWebsite Rate API". ## Start here - [Integration prompt for AI coding agents](https://www.agenwebsite.com/developer-api/prompt.md): Step-by-step instructions an agent follows to add the Rate API to a project (key setup, location search, rates, errors, caching, instant couriers with coordinates, recipes for Next.js, Laravel, PHP, Python, headless WooCommerce, Joomla). Checked against the live API. - [Full documentation in one file](https://www.agenwebsite.com/developer-api/llms-full.txt): The integration guide plus every documentation page as Markdown. - [OpenAPI 3.1 spec](https://api.agenwebsite.com/v1/openapi.json): Machine-readable request and response schemas; the source of truth for fields. ## Docs: Memulai (Bahasa Indonesia) - [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. ## Docs: Endpoint (Bahasa Indonesia) - [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. ## Docs: Referensi (Bahasa Indonesia) - [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. ## Optional - [Documentation overview](https://www.agenwebsite.com/documentation/agenwebsite-rate-api/index.md): Overview page and article list (HTML: https://www.agenwebsite.com/documentation/agenwebsite-rate-api/). - [Product page and plans](https://www.agenwebsite.com/products/developer-api/): Free, Pro and Max plans, pricing in Rupiah. - [Developer account](https://www.agenwebsite.com/account/developer-api/): Request access, then generate, rotate or revoke API keys (needs a logged-in human). - [AgenWebsite site index](https://www.agenwebsite.com/llms.txt): All AgenWebsite products.