method to retrieve book and author from API