doing api