Kurs Mata Uang
Kurs mata uang global terbaru.
Base URL
https://use.api.co.id
Kirim request GET dengan header x-api-co-id, lalu tentukan mata uang dasar atau pasangan mata uang sesuai endpoint. Response berisi kurs terbaru.
Fitur
- Kurs real-time.
- Matriks lengkap untuk semua mata uang yang didukung.
- Dukungan banyak pasangan mata uang.
- Query batch untuk beberapa pasangan sekaligus.
List All Exchange Rates
GET/api/exchange-rates
Get complete currency matrix with all exchange rates. Returns all possible currency pairs, alphabetically sorted by base currency.
Request
curl -X GET "https://use.api.co.id/api/exchange-rates" \ -H "x-api-co-id: $API_CO_ID_KEY"Response
{ "success": true, "updated_at": 1763461822000, "rates": [ { "base": "IDR", "rates": { "AED": 0.00021941, "AUD": 0.00009185, "CAD": 0.00008381, "CHF": 0.00004759, "CNY": 0.00042474, "EUR": 0.00005155, "GBP": 0.00004544, "INR": 0.00528973, "JPY": 0.00927646, "KRW": 0.08742593, "MYR": 0.00024851, "PHP": 0.00351643, "SAR": 0.00022403, "SGD": 0.00007779, "THB": 0.00193489, "USD": 0.00005974 } }, { "base": "MYR", "rates": { "AED": 0.88290865, "AUD": 0.36961538, "CAD": 0.33723558, "CHF": 0.19149038, "CNY": 1.70915865, "EUR": 0.20742788, "GBP": 0.18286058, "IDR": 4024.03846154, "INR": 21.28605769, "JPY": 37.32884615, "KRW": 351.80528846, "PHP": 14.15024038, "SAR": 0.90149038, "SGD": 0.31302885, "THB": 7.78605769, "USD": 0.24038462 } }, { "base": "USD", "rates": { "AED": 3.6729, "AUD": 1.5376, "CAD": 1.4029, "CHF": 0.7966, "CNY": 7.1101, "EUR": 0.8629, "GBP": 0.7607, "IDR": 16740, "INR": 88.55, "JPY": 155.288, "KRW": 1463.51, "MYR": 4.16, "PHP": 58.865, "SAR": 3.7502, "SGD": 1.3022, "THB": 32.39 } } ], "last_data_updated_at": 1732178872000}Get Rates by Currency
GET/currency/:currency
Get all exchange rates for a specific base currency. Returns rates to all available currencies.
Path parameter
| Nama | Tipe | Keterangan |
|---|---|---|
currencyWajib | string | Base currency code (3 characters, case insensitive, e.g., USD, EUR, IDR) Contoh: USD |
Request
curl -X GET "https://use.api.co.id/currency/:currency" \ -H "x-api-co-id: $API_CO_ID_KEY"Response
{ "is_success": true, "message": "Success", "data": { "currency": "USD", "updated_at": 1732178872000, "rates": { "AED": 3.6729, "AUD": 1.5376, "CAD": 1.4029, "CHF": 0.7966, "CNY": 7.1101, "EUR": 0.8629, "GBP": 0.7607, "IDR": 16740, "INR": 88.55, "JPY": 155.288, "KRW": 1463.51, "MYR": 4.16, "PHP": 58.865, "SAR": 3.7502, "SGD": 1.3022, "THB": 32.39 } }, "last_data_updated_at": 1732178872000}Get Rates by Multiple Pairs
GET/currency/exchange-rate
Get exchange rates for single or multiple currency pairs in a single request. Supports comma-separated pair symbols (e.g., USDIDR or USDIDR,EURIDR,MYRIDR). Maximum recommended: 10 pairs per request.
Query parameter
| Nama | Tipe | Keterangan |
|---|---|---|
pairWajib | string | Currency pair symbol(s). Single pair (e.g., USDIDR) or comma-separated multiple pairs (e.g., USDIDR,EURIDR,MYRIDR) Contoh: USDIDR,EURIDR,MYRIDR |
Request
curl -X GET "https://use.api.co.id/currency/exchange-rate?pair=USDIDR%2CEURIDR%2CMYRIDR" \ -H "x-api-co-id: $API_CO_ID_KEY"Response
{ "is_success": true, "message": "Success", "data": { "pair": "USDIDR", "updated_at": 1732178872000, "rate": 16740 }, "last_data_updated_at": 1732178872000}Apakah halaman ini membantu?