bbtest what's the use case, to know which kind of information you would need at at which level of detail?
If you want a raw export, tools like phpMyAdmin should be able to give you a dump of all database tables as CSV.
If you want to interconnect with another system, the best solution would be a custom Flarum extension that exports exactly the data you want in the format you want. An extension could for example expand each user setting to its own CSV column, or generate additional statistics to export along with users or discussions.