The vSphere API let's you get this information. But it's not quite so simple given the number of metrics, rollups, etc. Look the PerformanceManager object in the API.
For some of the cpu, men and other high level metics, there are summary metics available on hosts, vms, etc that might be useful depending on what your application requires.