About a weeks back, the stocks widget on mac os mojave stopped showing the current prices.

enter image description here

Does anyone know of a workaround to fix this? Thank you.


The Stocks widget gets its data from Yahoo:

$ cd /Library/Widgets/Stocks.wdgt
$ grep http Stocks.*
Stocks.html:    <meta http-equiv="Content-type" content="text/html; charset=utf-8">
Stocks.js:              var url = 'http://api.apple.go.yahoo.com/appledwf/q?s=' + symbol;
Stocks.js:      openLink('http://api.apple.go.yahoo.com/appledwf/');
Stocks.js:      var url = "http://api.apple.go.yahoo.com/appledwf/q/cq?d=v1";

The server used seems to be offline though

$ ping api.apple.go.yahoo.com
ping: cannot resolve api.apple.go.yahoo.com: Unknown host

most probably Yahoo changed the API. I also found pages mentioning that the API got deprecated by Yahoo already years ago. Combining this with the fact that Apple deprecated Dashboard as well you may want to use other ways to access that data.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .