Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

Free JSON api for stock app

Andrew Chalkley can you please tell me a free json api for stock app that you tell us in the last video of node.js basic course

3 Answers

Andrew Chalkley
STAFF
Andrew Chalkley
Treehouse Guest Teacher

Yahoo has an API - the following will get the stock price for Apple (AAPL)

http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20yahoo.finance.quotes%20where%20symbol%20in%20(%22AAPL%22)&env=store://datatables.org/alltableswithkeys&format=json

This one will get it for Apple and Ford

http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20yahoo.finance.quotes%20where%20symbol%20in%20(%22AAPL,F%22)&env=store://datatables.org/alltableswithkeys&format=json

Andrew Chalkley thank you so much for helping me :)

Hi Andrew Chalkley , I'm trying to create a stock app for the node.js course, but the Yahoo Finance API you provided last year does not work anymore. Can you recommend another? thank you!