added api method for getting items