basic compare api call