Bank Negara Malaysia Open Data API

Beginner's Pick Government / No Auth Required Beginner HTTPS
Free to Use
63 C
Measured Score 0 50 100 Speed 20/30 Consistency 17/20 Security 18/20 Browser access 0/15 Transparency 8/15 TESTED 2026-08-10

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.

Measurement Record

What actually happened when we called this API from our own infrastructure. Every value below was recorded by the request, not copied from the provider's documentation.

Request
GET https://api.bnm.gov.my/api/specification/categories
Result
HTTP 200 · application/json · 19,937 bytes · compressed
Response time
168 ms (median of 3) · fastest 158 ms
Transport
TLSv1.2 · ECDHE-RSA-AES128-GCM-SHA256 · certificate issued by Entrust Limited
Browser CORS
No Access-Control-Allow-Origin header — call it from a server, not the browser
Recorded
2026-08-10

Fields Returned

Top-level fields present in the response we captured, with the type and value we actually received.

Field Type Value received
servers string (url) https://api.bnm.gov.my/public
categories array [1 item]

Captured Response

Captured from a real request to https://api.bnm.gov.my/api/specification/categories on 2026-08-10. Long arrays and nested objects are truncated to keep the shape readable.

JSON Response · Captured
{
  "servers": "https://api.bnm.gov.my/public",
  "categories": [
    {
      "name": "Rates and Volumes",
      "icon": "fa-chart-bar",
      "enabled": true,
      "tags": [
        "Base Rates/BLR/Effective LR"
      ]
    }
  ]
}

Implementation Example

Calls a real endpoint of this API. Replace any placeholder credentials with your own key.

Request
const url = "https://apikijangportal.bnm.gov.my/openapi/kijang/public/exchange-rate";
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.

How This API Fails

We deliberately sent this API a broken request and recorded exactly what came back on 2026-08-10. Knowing the shape of an error before you hit it makes error handling much easier to write.

HTTP 404 Requesting a path that does not exist text/plain
We are pleased to announce that starting from 15/11/2021, our BNM Open API Portal URL has moved from httpsapi.bnm.gov.my to httpsapikijangportal.bnm.gov.my. Please note there will be no changes to the API request URL which currently consume by users.

Common Errors & Troubleshooting

Generated guidance based on this API's documentation, not observed by us. Treat it as a starting point and check against the provider's own error reference.

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.

Measured Score Breakdown

Live HTTP request to the API endpoint

Speed 20/30
Consistency 17/20
Security 18/20
Browser access 0/15
Transparency 8/15
Endpoint Response Time 168ms

Fully tested on Aug 10, 2026

Technical Specifications

Auth No Auth
HTTPS REQUIRED
CORS UNKNOWN
Category Government
Difficulty Beginner
Endpoint last called: 2026-08-10

Similar APIs

View All →