get_item_data function

Retrieve data for an item.