select an api