Download Event Report

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

  1. 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.

  2. The documentation indicates that the eventCharts and eventReports APIs are deprecated in favor of the eventVisualizations API as mentioned in the DHIS2 documentation.

  3. If you’re encountering issues with downloading large datasets, you might need to adjust the pagination parameters.