API selection in express