API for accessing and analyzing variables