Export to API spark