HI Community, can you help me to download event reports using api? I have created a report in Event Report App and have saved it as a favorite. I need to fetch that report using api.
Thanks
-
the direct endpoint
/api/eventReports/id/data.csv
doesn’t work for downloading event report data. Instead, you should use the/api/analytics/events/
endpoint. -
The documentation indicates that the
eventCharts
andeventReports
APIs are deprecated in favor of theeventVisualizations
API as mentioned in the DHIS2 documentation. -
If you’re encountering issues with downloading large datasets, you might need to adjust the pagination parameters.