3
votes

I would like to get key statistics data for a given symbol in Yahoo! Finance.

I found a few ways to get statistics data using Yahoo Finance API. For example, to get Appleā€™s name (n), ask (a), bid (b), market cap(j1), http://finance.yahoo.com/d/quotes.csv?s=AAPL&f=nabj1 (e.g. http://www.jarloo.com/yahoo_finance/)

But I would like to extract more information such as return on equity and enterprise value. How can I do this? I cannot even fetch these values from web scraping either.

1

1 Answers

1
votes

Key statistics can be accessed by calling the following API-Call:

https://query1.finance.yahoo.com/v10/finance/quoteSummary/AAPL?modules=defaultKeyStatistics

This includes enterprise value and book value. I have not found a way to get return on equity directly from Yahoo Finance but it could be calculated from other values found in this answer.

Edit:

Return on equity can be found in the financial data:

https://query1.finance.yahoo.com/v10/finance/quoteSummary/AAPL?modules=financialData