Get inventory from data