api: tutorial for exporting data