simplify api call