About a weeks back, the stocks widget on mac os mojave stopped showing the current prices.
Does anyone know of a workaround to fix this? Thank you.
Ask Different is a question and answer site for power users of Apple hardware and software. It only takes a minute to sign up.Sign up to join this community
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.