How do I export the Raw data from Matomo (users, actions, clicks)?
We design the Matomo Analytics (formerly Piwik Analytics) platform in a way that all the data is yours and can be easily exported. We offer many APIs which let you get all of your data, and one API in particular which lets you get all of the RAW data.
The API you want to use is Live.getLastVisitsDetails and is listed here: developer.matomo.org/api-reference/reporting-api#Live
You can use this API to download the data for a given website (or all websites), for given day / week / month / year (or all-time), and you can even specify a Custom Segment to filter out the data and return only the users that match a particular criteria.
If there is any data that you cannot export via our standard APIs, you may want to consider the Custom Reports premium feature which lets you create any report based on your requirements in seconds. It is our mission to help you keep full control of your data!
See also: How do I make the Matomo Analytics (formerly Piwik Analytics) data available to my data warehouse?