anvk / google-stocks

Get stocks using Google Finance API.
https://www.npmjs.com/package/google-stocks
MIT License
34 stars 14 forks source link

Unexpected token < in JSON at position 0 #10

Open stevenlkm opened 6 years ago

stevenlkm commented 6 years ago

Hi,

The following problem happing today.

2018-03-20 12 50 35

https://runkit.com/stevenlkm/5ab09417e9416a00121fb629

jazarja commented 6 years ago

+1

anvk commented 6 years ago

@stevenlkm @jazarja it looks like Google changed its API and a basic query which most of the modules out there have been using (https://finance.google.com/finance?q=AAPL&output=json) stopped working. Not sure on how to get stock data from Google Finances at the moment. Will try to research that but if anyone has an idea on how to get JSON data from Google Finances please let me know.