Cambodia Exchange REST API
A clean JSON API for daily MEF-published KHR exchange rates. Built for accounting systems, ERPs, spreadsheets, and fintech apps operating in Cambodia.
Quick start
Every request requires a Bearer token in the Authorization header. Generate keys from your dashboard once Pro access is enabled.
curl https://api.cambodiaexchange.today/v1/rates/latest \ -H "Authorization: Bearer YOUR_API_KEY"
Authentication
API keys are scoped per project. Keep your secret key on the server — never ship it in client-side code. Rotate keys at any time from your account settings; revoked keys stop working immediately.
- Header
Authorization: Bearer sk_live_… - FormatJSON responses, UTF-8, ISO-8601 dates
Endpoints
/v1/rates/latestLatest MEF daily rates for all 24 tracked currencies vs KHR.
curl https://api.cambodiaexchange.today/v1/rates/latest \ -H "Authorization: Bearer YOUR_API_KEY"
/v1/rates/{currency}Latest rate for a single currency (e.g. USD, EUR, THB, CNY) vs KHR.
curl https://api.cambodiaexchange.today/v1/rates/USD \ -H "Authorization: Bearer YOUR_API_KEY"
/v1/rates/historyHistorical rates by date range. Query params: currency, from, to (YYYY-MM-DD).
curl "https://api.cambodiaexchange.today/v1/rates/history?currency=USD&from=2025-01-01&to=2025-12-31" \ -H "Authorization: Bearer YOUR_API_KEY"
/v1/convertConvert any amount between two currencies using the daily MEF average rate.
curl "https://api.cambodiaexchange.today/v1/convert?from=USD&to=KHR&amount=100" \ -H "Authorization: Bearer YOUR_API_KEY"
Rate limits
| Tier | Per minute | Per day | History depth |
|---|---|---|---|
| Free | 60 req/min | 1,000 req/day | 30 days |
| Pro | 600 req/min | 100,000 req/day | Full archive |
| Enterprise | Custom | Unlimited | Full + SLA |
Limit headers (X-RateLimit-Remaining, X-RateLimit-Reset) are returned on every response.
Need higher limits or full history?
Pro API access unlocks higher throughput, the full historical archive, and webhooks for daily MEF updates.
View pricing