html to api