Total views, OpenAPI hits, and downloads for data.gov.my
0 viewsΒ·0 downloads
This data is aggregated from transactional records produced by web analytics tools which monitor user interactions across the data.gov.my platform in real time. The data does not contain any personally identifiable information, as there is no component of data.gov.my which requires an authenticated login to access.
β
The data shown here is exactly the same as the usage metrics displayed on the site's homepage.
Total views, OpenAPI hits, and downloads for data.gov.my
Name in Dataset | Variable | Definition |
---|---|---|
date (Date) | Date | Date in YYYY-MM-DD format |
views (Integer) | Views | Total number of views on data.gov.my for the given date; this should not be taken as the total number of unique visitors. |
api_hits (Integer) | OpenAPI Hits | Number of requests made to the OpenAPI (api.data.gov.my) for the given date. |
downloads (Integer) | Downloads | Number of dataset downloads for the given date; this only includes downloads made via the data.gov.my portal, and does not include programmatic access via the permalinks provided. |
19 Aug 2025, 00:10
20 Aug 2025, 00:10
This data is made open under the Creative Commons Attribution 4.0 International License (CC BY 4.0). A copy of the license is available Here.
Full Dataset (CSV)
Recommended for individuals seeking an Excel-friendly format.
0
Full Dataset (Parquet)
Recommended for data scientists seeking to work with data via code.
0
Connect directly to the data with Python.
# If not already installed, do: pip install pandas fastparquet
import pandas as pd
URL_DATA = 'https://storage.data.gov.my/metrics/metrics_agg.parquet'
df = pd.read_parquet(URL_DATA)
if 'date' in df.columns: df['date'] = pd.to_datetime(df['date'])
print(df)
The following code is an example of how to make an API query to retrieve the data catalogue mentioned above. You can use different programming languages by switching the code accordingly. For a complete guide on possible query parameters and syntax, please refer to the official Open API Documentation.
import requests
import pprint
url = "https://api.data.gov.my/data-catalogue?id=usage_metrics&limit=3"
response_json = requests.get(url=url).json()
pprint.pprint(response_json)
Β© 2025 Public Sector Open Data