Bank Negara Malaysia Open Data API

Beginner's Pick Government / No Auth Required Beginner HTTPS
Free to Use Varies (check documentation)

Overview

Bank Negara Malaysia Open Data provides free access to official financial data published by Malaysia's central bank, including exchange rates, interest rates, and key economic indicators. No API key is required, making it easy to start exploring Malaysian monetary data. It is ideal for developers building fintech apps, dashboards, or research tools focused on the Malaysian economy.

Beginner Tip

No authentication is needed. Browse available datasets at apikijangportal.bnm.gov.my to find the endpoint for the data you need, then query it directly for the latest values.

Available Data

Use case: Integrate malaysia central bank open data data into web and mobile applications
Bank Negara Malaysia Open Data data via REST API

Example Response

JSON Response
{
  "status": "success",
  "data": {
    "result": "Data from Bank Negara Malaysia Open Data",
    "description": "Malaysia Central Bank Open Data",
    "timestamp": "2025-01-15T10:00:00Z"
  }
}

Field Reference

data Array of data records for the requested dataset.
data[].currency_code ISO 4217 three-letter currency code, e.g. USD or EUR.
data[].buying_rate BNM's buying rate for the currency in Malaysian Ringgit (MYR).
data[].selling_rate BNM's selling rate for the currency in Malaysian Ringgit (MYR).
data[].middle_rate Mid-market rate between buying and selling rates.
meta.last_updated ISO 8601 timestamp of when the dataset was last updated.

Implementation Example

Request
const url = "https://apikijangportal.bnm.gov.my/";
const response = await fetch(url);
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data);

What Can You Build?

Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.

Common Errors & Troubleshooting

404 Not Found The endpoint path or dataset name is incorrect.
Refer to the official API portal at apikijangportal.bnm.gov.my to confirm the correct endpoint paths for each dataset.
Unexpected response format The Content-Type header was not set to accept JSON.
Add the header Accept: application/vnd.BNM.API.v1+json to your request to receive data in JSON format.
Empty data array Querying a date range with no published data, such as weekends or public holidays.
BNM does not publish rates on weekends or Malaysian public holidays. Query the most recent weekday date instead.

Metadata Score Breakdown

Estimated from metadata — endpoint not independently tested

This score is estimated from observable metadata — HTTPS support, authentication model, declared CORS, and documentation reachability — because the API requires authentication or exposes no publicly testable endpoint. The five-signal breakdown is only shown for live-tested APIs.

Metadata estimate · endpoint not independently tested

Technical Specifications

Auth No Auth
HTTPS REQUIRED
CORS UNKNOWN
Category Government
Difficulty Beginner
Verified: 2026-04-04

Similar APIs

View All →