Indonesia Bank Rate
Exchange rates from Indonesian banks (BRI, Mandiri, BCA, etc.).
Base URL
https://use.api.co.id
Call GET /api/bank-rates with the x-api-co-id header and the bank_code query parameter to get rates for a specific bank. The response contains exchange rates organized by rate type, with buy/sell prices for multiple currencies. Timestamps use the Jakarta timezone.
Endpoints
| Endpoint | Purpose |
|---|---|
/api/bank-rates/codes | List all available bank codes |
/api/bank-rates | Exchange rates by bank code |
Supported banks
| Bank | bank_code |
|---|---|
| BRI | bri |
| Bank Mandiri | mandiri |
| BCA | bca |
More banks are available; get the full list from /api/bank-rates/codes.
Rate types
- TT Counter
- E-Rate
- Special Rate
- Bank Notes
Get Available Bank Codes
Get all unique bank codes available in the system. ### Features - Returns list of all available bank codes - Use this to discover which banks have rate data - Alphabetically sorted ### Use Cases - Bank selection dropdowns - Dynamic bank code discovery - API integration setup
| Name | Type | Description |
|---|---|---|
is_successOptional | boolean | Indicates if the request was successful Example: true |
messageOptional | string | Response message Example: Success |
dataOptional | object | |
data.bank_codesOptional | string[] | List of available bank codes Example: ["bca","bri","mandiri"] |
curl -X GET "https://use.api.co.id/api/bank-rates/codes" \ -H "x-api-co-id: $API_CO_ID_KEY"{ "is_success": true, "message": "Success", "data": { "bank_codes": [ "bca", "bri", "mandiri" ] }}Get Bank Rate by Code
Get exchange rate data for a specific bank.
### Query Parameters
- bank_code (required): Bank code identifier
- Examples: bri, mandiri, bca
- Case insensitive
### Rate Types
Different banks provide different rate types:
- tt-counter: Tellers counter rates
- e-rate: Electronic rates
- special-rate: Special rates for specific currencies
- bank-notes: Bank notes rates
### Response Fields
- bank_code: Bank identifier
- rate: JSON object containing all rate types and currencies
- last_fetched_at: Timestamp in Jakarta timezone (Unix milliseconds)
### Use Cases
- Currency exchange applications
- Bank rate comparison
- Financial dashboards
- Multi-bank rate comparison
- Best rate finder
- Currency exchange services
| Name | Type | Description |
|---|---|---|
bank_codeRequired | string | Bank code (e.g., bri, mandiri, bca) Example: bri |
| Name | Type | Description |
|---|---|---|
is_successOptional | boolean | Indicates if the request was successful Example: true |
messageOptional | string | Response message Example: Success |
dataOptional | object | |
data.bank_codeOptional | string | Bank code identifier Example: bri |
data.rateOptional | object | Exchange rates organized by rate type and currency |
data.last_fetched_atOptional | integer | Timestamp in Jakarta timezone (Unix milliseconds) Example: 1737771218000 |
curl -X GET "https://use.api.co.id/api/bank-rates?bank_code=bri" \ -H "x-api-co-id: $API_CO_ID_KEY"{ "is_success": true, "message": "Success", "data": { "bank_code": "bri", "rate": { "tt-counter": { "usd": { "buy": 16975, "sell": 16675 }, "eur": { "buy": 20002.72, "sell": 19489.67 }, "sgd": { "buy": 13412.48, "sell": 12959.93 }, "myr": { "buy": 4476.19, "sell": 3954.82 } }, "e-rate": { "usd": { "buy": 16890, "sell": 16788 }, "eur": { "buy": 19881.463, "sell": 19716.1848 }, "sgd": { "buy": 13238.6398, "sell": 13123.8274 } } }, "last_fetched_at": 1737771218000 }}