clean api url