API reduceEntities