api conversion