PASAR API

🇲🇾 Monthly Electricity Consumption

← directory
TNB, SESB, SWK-ENERGY, ST, DOSMEnvironmenttier: openauth: no authpricing: freefreq: MONTHLYcovers 2018~2026geography: NATIONAL

Monthly Electricity Consumption by TNB, SESB, SWK-ENERGY, ST, DOSM, Environment API, for Malaysia, free.

More Environment APIs All Malaysia APIs

Call it

curl --fail-with-body --location --max-time 30 'https://api.data.gov.my/data-catalogue/?id=electricity_consumption&limit=10&sort=-date'

AI prompt

I'm building an app using a public Malaysia API (no private credentials needed).

API: Monthly Electricity Consumption
Provider: TNB, SESB, SWK-ENERGY, ST, DOSM
Endpoint: GET https://api.data.gov.my/data-catalogue/?id=electricity_consumption&limit=10&sort=-date
Response format: JSON

Source: TNB, SESB, SWK-ENERGY, ST, DOSM (https://data.gov.my/data-catalogue/electricity_consumption)
Source type: Official open-data catalogue
Endpoint type: Open-data catalogue JSON
Integration difficulty: Copy-paste ready
Production caveat: Still handle empty rows, schema changes, pagination, stale coverage, and temporary upstream failures.

Help me fetch and display this data. Follow the documented format and handle errors, empty responses, stale coverage, caching and rate limits.

Related Environment APIs

Monthly Electricity SupplyAccess to Treated Water by State & Strata