As mentioned before, You can export data outside of EE (Without login with ExpressionEngine). You can get he export URL from backend export settings table. If you want to run AJAX export at fronend, You can copy the export link and append &type=ajax in the URL. Export via AJAX in frontend will look like this: