Access to stats via API?

I think that with the data manager plugin you can download statistics via the api.

Edit: it’s data explorer plugin.