I am working on a small project regarding PE ratio of SP500,for which I need historic earning per share data of SP500. I searched finance yahoo, but it has only prices data. Could anyone tell me the website where one can obtain it?
A Google search turns up sites like
which slightly disagree about whether the current trailing ratio is just above or just below 20