CoreyMSchafer / code_snippets

MIT License
10.3k stars 17.62k forks source link

Yahoo Finance API not working #58

Open Gomezrbz opened 5 years ago

Gomezrbz commented 5 years ago

Hi Schafer,

It seems the Yahoo Finances API is not working anymore, but I believe this link will work to you at least for your demo :

https://api.worldtradingdata.com/api/v1/stock?symbol=AAPL&output=json&api_token="YOUR API TOKEN"

You only need to create an account in https://www.worldtradingdata.com. But at least it is free! Or use any other API json file.

felix4webscience commented 5 years ago

@Gomezrbz, thanks for that hint. Because its true, the Yahoo finance Api thorws a 502 response status_code.

Arnold-git commented 3 years ago

I had similar issues with yahoo API even after trying the requests library. Check out this link for free public API you use