Search code examples
javascriptyahoo-financestockquotesgoogle-finance-apigoogle-api-javascript-client

google finance api not working from 6/september/2017


I was using google finance api to get the stock quotes and display the contents on my site. All of a sudden from 6/september/2017 this stopped working. The url i used to get the stock quotes is https://finance.google.com/finance/info?client=ig&q=SYMBOL&callback=?.

Previously, i was using yahoo finance api and it was inconsistent. So, i switched over to google finance api.

Could you please help me on this?

Thanks, Ram


Solution

  • In the end i started using yahoo finance. The data is not live, there is a 20 minutes delay. I thought it will be helpful to people who are facing issues like me.

    The yahoo api url is https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20yahoo.finance.quotes%20where%20symbol%3D%22MSFT%22&env=store://datatables.org/alltableswithkeys

    This will return the stock data in xml format. You can parse the xml to get your desired fields.

    Thanks, Ram