Search code examples
jsonyahoo-apiyahoo-finance

Yahoo Finance API for Headlines with JSON Results


I just need headlines for a given ticker symbol in JSON format. YQL Console used to have a working example here, but it seems to be broken now. This is from the console page, "example queries" on the right hand side there is an "Extract headlines from Yahoo Finance" link. This would have been perfect!

Does anyone know how to get this info in json format?

Edit: Yahoo Pipes has been shut down, so be warned that this answer is no longer valid.


Solution

  • Someone created a Yahoo Pipe to convert RSS to JSON. You can simply pump Yahoo Finance's company RSS feed through that, I guess.

    Here's the resulting URL:

    http://pipes.yahoo.com/pipes/pipe.run?_id=2FV68p9G3BGVbc7IdLq02Q&_render=json&feedcount=10&feedurl=http%3A%2F%2Ffinance.yahoo.com%2Frss%2Fheadline%3Fs%3Dyhoo

    Obviously just change the "yhoo" at the end to whatever stock symbol you're interested in.