Enough has been discussed in the forum about data, its source, scope and quality. Since nothing is forthcoming on that front, a blanket answer would be the Yahoo and Google APIs. Nearer home, contact GFDL; they had mentioned somewhere that they also also provide an API besides their platform-specific offerings.