pruning api call to only required fields