If you host your own Matomo, you get access to all data that is stored in your MySQL database. The data is stored in a table called matomo_activity_log.

The data is also made easily available via the Activity Log HTTP Reporting API.

Previous FAQ: Which events / activities are being tracked in the Activity Log?