Fix to fetch the 'api' correctly from the tooltip.