split api from server