Clean up API urls