Yahoo Finance is a financial news and data provider that offers a range of financial information, including stock quotes, financial reports, and market data. The Yahoo Finance API allows developers to access this data and use it in their own applications. In this article, we’ll discuss how to use the Yahoo Finance API to fetch stock data and other financial information.

Fetching Stock Quotes Data from Yahoo Finance API
https://query1.finance.yahoo.com/v7/finance/quote?symbols=RELIANCE.NS
Sample API Response
{"quoteResponse":{"result":[{"language":"en-US","region":"US","quoteType":"EQUITY","typeDisp":"Equity","quoteSourceName":"Delayed Quote","triggerable":true,"customPriceAlertConfidence":"HIGH","currency":"INR","regularMarketChangePercent":-0.40530553,"regularMarketPrice":2567.9,"marketState":"PREPRE","exchange":"NSI","shortName":"RELIANCE INDS","longName":"Reliance Industries Limited","messageBoardId":"finmb_878373","exchangeTimezoneName":"Asia/Kolkata","exchangeTimezoneShortName":"IST","gmtOffSetMilliseconds":19800000,"market":"in_market","esgPopulated":false,"fiftyTwoWeekLowChange":387.8999,"fiftyTwoWeekLowChangePercent":0.17793573,"fiftyTwoWeekRange":"2180.0 - 2856.15","fiftyTwoWeekHighChange":-288.25,"fiftyTwoWeekHighChangePercent":-0.10092258,"fiftyTwoWeekLow":2180.0,"fiftyTwoWeekHigh":2856.15,"earningsTimestamp":1666349940,"earningsTimestampStart":1674125940,"earningsTimestampEnd":1674475200,"trailingAnnualDividendRate":0.0,"trailingPE":29.406914,"trailingAnnualDividendYield":0.0,"epsTrailingTwelveMonths":87.323,"epsForward":71.85,"sharesOutstanding":6765989888,"bookValue":1132.233,"fiftyDayAverage":2562.28,"fiftyDayAverageChange":5.619873,"fiftyDayAverageChangePercent":0.0021933094,"twoHundredDayAverage":2560.4849,"twoHundredDayAverageChange":7.415039,"twoHundredDayAverageChangePercent":0.002895951,"marketCap":17374385274880,"forwardPE":35.739735,"priceToBook":2.2679958,"sourceInterval":15,"exchangeDataDelayedBy":15,"averageAnalystRating":"2.1 - Buy","tradeable":false,"cryptoTradeable":false,"firstTradeDateMilliseconds":820467900000,"priceHint":2,"regularMarketChange":-10.450195,"regularMarketTime":1671184800,"regularMarketDayHigh":2618.8,"regularMarketDayRange":"2558.15 - 2618.8","regularMarketDayLow":2558.15,"regularMarketVolume":7308934,"regularMarketPreviousClose":2578.35,"bid":0.0,"ask":0.0,"bidSize":0,"askSize":0,"fullExchangeName":"NSE","financialCurrency":"INR","regularMarketOpen":2571.0,"averageDailyVolume3Month":5046327,"averageDailyVolume10Day":4702946,"symbol":"RELIANCE.NS"}],"error":null}}
To fetch stock data using the Yahoo Finance API, you can use the following steps:
- Build the API endpoint URL: The Yahoo Finance API has a number of endpoints that allow you to retrieve different types of data. For example, you can use the “quote” endpoint to retrieve stock quotes, the “chart” endpoint to retrieve historical stock data, and the “financials” endpoint to retrieve financial reports. To build the API endpoint URL, you will need to specify the endpoint you want to use and any additional parameters, such as the stock symbol or date range.
- Make a request to the API: Once you have built the API endpoint URL, you can use it to make a request to the API. This can be done using an HTTP client library, such as the
fetch
function in JavaScript or therequests
library in Python. - Parse the response: The Yahoo Finance API returns data in JSON format, which can be easily parsed using the built-in JSON parser in most programming languages. Once you have parsed the data, you can access the different fields and use them as needed in your application.
Here is an example of how to use the Yahoo Finance API to fetch stock quotes using JavaScript:
const symbol = "RELIANCE.NS"; // Replace with the actual symbol of the stock you want to track
const url = `https://query1.finance.yahoo.com/v7/finance/quote?symbols=${symbol}
const response = await fetch(url);
const data = await response.json();
const quote = data.quoteResponse.result[0];
console.log(`Price: ${quote.regularMarketPrice}`);
console.log(`Change: ${quote.regularMarketChange}`);
console.log(`Change percent: ${quote.regularMarketChangePercent}`);
This code fetches the current stock quote for the given symbol and logs the price, change, and change percent to the console.
Fetching Historical Data from Yahoo Finance API
To fetch historical stock data for RELIANCE stock using the Yahoo Chart API and JavaScript, you can use the following code:
const symbol = "RELIANCE";
// Set the start and end dates for the period you want to retrieve data for
const startDate = "2022-01-01";
const endDate = "2022-12-31";
// Build the URL for the Yahoo Chart API call
const url = `https://query1.finance.yahoo.com/v8/finance/chart/${symbol}?range=1y&interval=1d&includePrePost=true&events=div%7Csplit%7Cearn&corsDomain=finance.yahoo.com`;
// Fetch the data from the Yahoo Chart API
const response = await fetch(url);
const data = await response.json();
// Extract the relevant data from the response
const quotes = data.chart.result[0].indicators.quote[0].close;
const dates = data.chart.result[0].timestamp.map((ts) => new Date(ts * 1000).toDateString());
// Loop through the data and log the date and close price for each day
for (let i = 0; i < quotes.length; i++) {
console.log(`${dates[i]}: ${quotes[i]}`);
}
This code will retrieve the close price for each day in the specified date range for the stock with the given symbol. It will then loop through the data and log the date and close price for each day to the console.
Note: The Yahoo Chart API has a rate limit of 2000 requests per hour. If you exceed this limit, the API will return an error and the script will stop running. You can add error handling to your code to handle this scenario.
In conclusion, the Yahoo Finance API is a powerful tool for developers looking to access financial data and build applications that use this data. Whether you are building a stock tracking app or a financial reporting tool, the Yahoo Finance API can provide the data you need to build a successful application.
You are a genius man ………….
one of the best article’s i have read on your site 🙂
Sirji
Really u r genius sirji . kya baat hai wowwwww
Request Hemen Kapadia of Getbhavcopy. He is a great .Net programmer.
Sir,
Good information. If you could do little more research and provide us the net program information and the amibroker formula,it would be great!
Bala,
Iam striving to make one. Atleast with the help of my friends.
Dear Rajandran Bhai,
Greetings! I was just flipping through the pages of your site when I found this. Very interesting indeed. However, could you find a way to download the data from the NSE Java Chart . This would be the last word for collating purposes, as the serious pros don’t trust their DSPs alone.
Thanks
Javed
Hello Rajandran sir, i want ami broker realtime charts with buy/sell signals. which apply to my pc? pls help me.
You can download the trial version from amibroker.com. And the Buy/Sell AFL code from the below link
Nick Rypock Trailing Reverse Trading System(NRTR)
Great article! But how do I get the file? I tried data socket, but the link does not work. Do i need to parse the HTML? I would really apprecaite help here.
Yeah, Bryan I think HTML parsing is the only way to read a csv feed. The above said link works only for backfill purpose
i guess. And for real time tick data you should use some other source
Sir,
Bhagwan ki kripa hamesha aap aur aap ki family par barasti rahe. Sir U R the person who aLways help other without any …….. I have no word s. But thanks always sir. God bless U and yr family.
ALways yours,
chandu
Thanks Chandu, the real reason is if iam not going to do that then some one else will claim the credit for the same.
This is an open source world.
with the ami borker trial version is it possible to have a good real time software. but a free alternative i am tring with fchartse with chartsdata and manshi rt. it is some what succesfull but backfilling is a problem for both. if any developer can concentrate on fchartse
Hello,
I agree with the fact that we should not be paying for data which is freely available and we do need to reverse engineer a way to get those softwares customised and unlocked for us. I mean they just gives us yahoo data which anyways is free for us. Is there a software that can give me realtime data for free without any limitations
is amibroker trial version (my version crossed 30 days) can be used for perfect realtime charting.
i have seen that in case of eod data does not stored but heard that real time charting possible with previous data also stored. i am not technical for software., pls inform and what free data real time downloader can be used for my practice
i am new to amibroker learning abcd. i have only a trial verssion of amibroker which already expired but with chartsdata(by loganathon, a real time data feed) it is working. i am testing it but cant under stand is it lagging or not. there r some minor faults of missing some minutes and some time not proper back fill etc.
another thing can any one help how i can change moving avarage overlays,like there is sma of 15,45,100 but i want ema of 5,20,34
how to do that.and how to bring stocastic in lower window in place of macd and how to edit parameter. pls help.
it seems that this yahoo free intraday realtimedata feed link gives 15 min delayed data perticulary for stocks.
Hi raja, is it possible to get 1 min data from yahoo..Pls advise. ichecked with changing the range for the given link. but its not working.Pls help..Thanks in advance..
Prabha, Iam also working on that still hadnt got any complete solution. Hope will get soon.
For nse real time data from yahoo use the given below link:
http://download.finance.yahoo.com/d/quotes.csv?s=YHOO+GOOG+MSFT&f=sl1d1t1c1hgvbap2
Depends on you Internet browser setting, you maybe asked to save the results into a filename call “quotes.csv” or the follow page will appear in your browser.
“YHOO”,14.8188,”6/22/2009″,”1:20pm”,-0.9812,15.61,14.80,13944065,14.81,14.82,”-6.21%”
“GOOG”,402.25,”6/22/2009″,”1:20pm”,-17.84,417.49,402.11,2399141,402.14,402.27,”-4.25%”
“MSFT”,23.359,”6/22/2009″,”1:20pm”,-0.711,23.95,23.32,36595084,23.35,23.36,”-2.95%”
The URL starts with a base URL and then adds parameters and values after a question mark (?).
http://quote.yahoo.com/d/quotes.csv? – The default URL to get the information
‘s=’ – Append a bunch of stock symbols separated by “+” after this
& – to join the string
‘f=’ – Append a bunch of special tags after this with no spaces in between
The following are special tags provided by Yahoo finance:
a Ask a2 Average Daily Volume a5 Ask Size
b Bid b2 Ask (Real-time) b3 Bid (Real-time)
b4 Book Value b6 Bid Size c Change & Percent Change
c1 Change c3 Commission c6 Change (Real-time)
c8 After Hours Change (Real-time) d Dividend/Share d1 Last Trade Date
d2 Trade Date e Earnings/Share e1 Error Indication (returned for symbol changed / invalid)
e7 EPS Estimate Current Year e8 EPS Estimate Next Year e9 EPS Estimate Next Quarter
f6 Float Shares g Day’s Low h Day’s High
j 52-week Low k 52-week High g1 Holdings Gain Percent
g3 Annualized Gain g4 Holdings Gain g5 Holdings Gain Percent (Real-time)
g6 Holdings Gain (Real-time) i More Info i5 Order Book (Real-time)
j1 Market Capitalization j3 Market Cap (Real-time) j4 EBITDA
j5 Change From 52-week Low j6 Percent Change From 52-week Low k1 Last Trade (Real-time) With Time
k2 Change Percent (Real-time) k3 Last Trade Size k4 Change From 52-week High
k5 Percebt Change From 52-week High l Last Trade (With Time) l1 Last Trade (Price Only)
l2 High Limit l3 Low Limit m Day’s Range
m2 Day’s Range (Real-time) m3 50-day Moving Average m4 200-day Moving Average
m5 Change From 200-day Moving Average m6 Percent Change From 200-day Moving Average m7 Change From 50-day Moving Average
m8 Percent Change From 50-day Moving Average n Name n4 Notes
o Open p Previous Close p1 Price Paid
p2 Change in Percent p5 Price/Sales p6 Price/Book
q Ex-Dividend Date r P/E Ratio r1 Dividend Pay Date
r2 P/E Ratio (Real-time) r5 PEG Ratio r6 Price/EPS Estimate Current Year
r7 Price/EPS Estimate Next Year s Symbol s1 Shares Owned
s7 Short Ratio t1 Last Trade Time t6 Trade Links
t7 Ticker Trend t8 1 yr Target Price v Volume/td>
v1 Holdings Value v7 Holdings Value (Real-time)/td> w 52-week Range
w1 Day’s Value Change w4 Day’s Value Change (Real-time) x Stock Exchange
y Dividend Yield
@ Kartheek
Thanks for your detailed update!
I have been looking for few days..for this link of CSV.Thank you very much.You have greatly helped me.I am grateful to you.
Sir ,
You are really great . Being a genius scientist , you are sharing with all. Gog will always shower blessing on you and your family.
Sir , would you please throw light on how to download nse live data from google in csv form. We all will be thankfull.
Are anyone intrested in knowing how to get 15 days 1 minute data backfill from google ?
Hello sir,
Thanks for introducing this to us. treasure of information. i tried to open nsei from google for 60 mins. am getting the following. i want the data to come from 9.15 till 3.30 which i tried to change market_open_minute as 549 and MARKET_CLOSE_MINUTE as 920 and also the columns to appear as date,open,high,low,close,volume. I also need guidance as how to convert the first column of date to say 9.30,10.30 and so on. I have attached the same below of 21/12/2010 data. kindly help me on the same.
Ravi
—– 21/12/2010 ^nsei hrly data from google——
EXCHANGE%3DNSE
MARKET_OPEN_MINUTE=540
MARKET_CLOSE_MINUTE=930
INTERVAL=3600
COLUMNS=DATE,CLOSE,HIGH,LOW,OPEN,VOLUME
DATA=
TIMEZONE_OFFSET=330
a1292905800,5995.5,5996.9,5960.4,5960.4,0
1,5995.5,5998.45,5986,5995.75,0
2,5983.45,6006.5,5982.1,5995.4,0
3,5995.9,5997.8,5981.95,5983.45,0
4,5985,5998.55,5979.15,5995.9,0
5,5999.8,6002.05,5983.7,5984.9,0
6,6000.65,6007.4,5994.05,6000,0
@kartheek
pls let me know how to get it from yahoo site and to backfill into amibroker 5.2. I tried with google. But still don’t know how to import to amibroker. Pls guide me if you know.
Thanks
Ravi
Sir,
will u provide help me how to use your NRTR and counter trend reversal system in free charting utilities like fcharts or chartnexus or ninjatrader. And please can u help me how to configure and install that indicator in them.
Thanks in advance.
Waiting for your reply.
Hi All
Extracting Yahoo RT data from .net is little easy stuff. but after that the real problem arises.
1. without logging in to yahoo you will get 15 min delayed data.
2. Handling Time i.e. Yahoo data server is in US and RT data comes with US timing………
3. DayLight Saving………..Problem…
4. Handling the volume….. as you will get whole day volume even in RT.
Pleaase check all these things before starting your programming.
Google Provides 15 day 1 min Backfill…….. reliable one
as per my knowledge RT data from Google is restricted.
To make you people little Comfortable I coded this.(RT from Yahoo, Backfill From google, BSE, NSE Bhav, and more…….)
Visit : Feeds-plus.blogspot.com
Dont think I am marketing here. Earlier even I too searched for free stuff. when I coded and worked for more than 6 months on this I found that it needs some little, a small, at least reward for my work. So I made it paid. Thats only 2000/- per year.
I made it paid because I want to make the same feeds available for Metastock also but for metastock I need Metalib which costs me some amount so……
Please check out the utility…
Regards
Santosh Sharma
Hi Santosh,
I am looking for yahoo realtime data for world indices, S&P(US market) for Metastock Pro 11(not e-signal broadcast). Is it possible to provide this through your program.
Regards,
Suresh
hi RR,
From that url we get data in that how to calculate data and time values.
Regards
sudhakara
hello ravi
please give me your email address to [email protected]
so that i can try to explain to you
hi kartheek and Rajandran
thank grt topic
how to get last 1 year tick by tick data (ieod) on yahoo finance
plz help me
wonderful article… will help a lot
can v download all nse scrips….
what will be the google finance symbol for M&M and AREVAT&D ?
MR.RAHUL
DOWNLOAD DATADOWNLOADER FROM http://WWW.VOLUMEDIGGER.COM WHICH IS FREE
AND THEN EDIT THE FILE NAMED GOOGLEINTRADAY AND TYPE “M&M,NSE” AND “AREVAT&D,NSE” ONE IN EACH LINE.REMEMBER TO INCLUDE COMMA BEFORE NSE IN EVERY SCRIP NAME.THEN SAVE AND START DATADOWNLOADER.
Eg TATASTEEL,NSE
M&M,NSE
Hi,
Is there any option in any softwarware can give,intraday stock list in Nse, to make trading decision
Presently nse tamelight is available without technicals……
Scrip Price RSI MACD EMA(5) EMA(10) EMA(15) Vloume in Milloin Graph
ACC XXXX xx X X X X 1.Mi Small pic
XXX XXXX XX X X X X x XXXXXX
The above said output has to come every 10 mins or 15 mins of time. We may can add some more additional data if required.
need some prgramming with some sort of analyst.
the out put can be come in excel file.
With regards
Dharmasekar.B
With getting the intraday feed the output has to come like this…. based on this , i hope we can make 70- 85 % of success
With reagrds
Is there any way to obtain a real time live feed for MetaStock 9.2?
The yahoo feed seem to 15 mins delayed even after logging into Yahoo. Why so? How to get rid of that ?
@Siva : Which software you are using for getting the feed?
pls guide for data for metastock
How do i get RSI for NIFTY for intraday?
@Kaushek : you either need a trading software or you can check out http://nsetracker.blogspot.com
How do i get rid of the irritating logos of facebook, twitter and google off the face of teh charts.
Is it possible for me to draw trend lines on the chart.
hi sir,
my data feeder (stock live) is asking for key. so pls help me were i can find. mail id — [email protected]
amibroker i have but is data feeder suddenly asking key…. pls help me
DEAR ALL,
KINDLY NOTE …. ONLY INDEXES ARE REAL TIME ON YAHOO…ALL STOCK QUOTES ARE DELAYED BY ABOUT 15 MINS !!!!!…. AFTER ALL EXCHANGE GETS LOT OF MONEY BY SELLING THE FEED. U CANT GET ANY REAL TIME FEED, NOT OFFICIALLY. INDICES ARE FINE, THEY GIVE OVER ALL MARKET DIRECTION AND NO ONE TRADES DIRECTLY THE INDICES. ALL DERIVATIVES, INCLUDING INDEX DERIVATIVES’ QUOTES ARE DELAYED.
KINDLY NOTE !!
Sir, Rajandran R Your Very Support Nice Thanks
Hi sir…
how to download the bid and ask prices from google financial data in csv format?
odin2ami life time data
check out this article…
dear Rajendra yours is the best stock market site that i have ever come a crossed .my day doesn’t start unless i log it at least once in the morning,it has every thing that trader wants to have. pl.keep it up.
this all link is very useful me thanks. but how can i get nifty data?
@Riddhi,
you need some programming stuff to convert those raw datafeed to feed your trading analysis softwares.
Here is the link to fetch yahoo stock data with source code.
http://Www.gigasters.com/post.aspx?postid=22
Hi…
Could you please provide me some suggestions on how to get intraday stock data at 5 minute interval in a csv format
thank you rajendran Sir for your valuable inputs , i have just come across a site called feeddropper.com which gives realtime data for nsecash, future, selected options, mcx, ncdex, forex, comex, with intraday backfill and historical backfill and rates are too cheap approx 500 rs p.m for all and secondly apart from amibroker and metastock they have also connectores with ninja trader…i hope this might solve many of the fellow traders problem
globaldatafeeds.in charges a minimum of Rs1650 per month for real-time data from NSE. My doubt is if i buy amibroker and buy their data feed can i convert the data in to ascii format in real time. I know C++/C#. Is it possible to use the amibroker sdk and convert the data?
@Martin : GFDL provides API for its clients. In case if you need API then write to me at [email protected]
Thank you very much
How do you get hourly, daily and weekly timeframes?
Dear Sir,
I would like to get OPEN / HIGH / LOW / CLOSE of nifty spot in excel 2007 (real time 1m delay) kindly let me know how to do it
the below link gives me nifty futures when i feed it to data query , but i need nifty spot in excel 2007
http://nseindia.com/content/fo/fomktwtch_FUTIDXNIFTY.htm
Hi raja sir,
I dont know anything about stock marker .i need to know stock market to create a new site. where can i get full datatils about stock market ,stock datas , stock graphs
Is it possible to generate exactly like the graph in the following link
https://www.tradingview.com/e/
please explain the details of the following page
http://chartapi.finance.yahoo.com/instrument/1.0/GOOG/chartdata;type=quote;range=5d/csv/
Hi sir, How to feed mcx data to amibroker.. I’m new to mcx trading and amibroker too.. How to feed mcx data i don’t know.. please help me
Dear Mr. Rajendran,
I am able to right click and copy the best 5 BID/ASK data from the “Market Picture” window in Diet ODIN. Since the data is available in Clipboard, I can paste it in Excel and analyse. My question is, is there a way to get this data without right clicking? Hope you could help.
Warm regards
Ravi
@Ravi,
The Top 5 Best Bid/Ask data is called Level 2 Data. Normally Brokers provide in Trading terminals. Apart from that its tough to get it anywhere else.
Dear Mr. Rajendran,
Thanks for your prompt response. As you rightly said, many brokers in India provide this data through their ODIN Diet terminals. I’m using one such service from RKGlobal. There, I can see Level 2 data for a scrip of my choice by using the “F5″ key. A ” Market Picture’ window appears and the data is there for you to see as well as copy (by right click menu). My question to you was, is there a direct way of copying that data from the ‘Market Picture’ window (using scripts etc..)??
Thanks for your time..
Regards
Ravi
Hullo Rajendran
I have two questions
1) Do you know how to parse the timestamp on this API? When I query using http://chartapi.finance.yahoo.com/instrument/1.0/goog/chartdata;type=quote;range=1d/csv/
I get results like
1405085400,572.5187,572.5187,571.4200,572.1500,41300
1405085519,573.1150,573.2400,572.5100,572.5200,9300
1405085520,572.5607,573.1200,572.1150,573.1200,20300
1405085639,573.2000,573.3000,572.7000,572.8000,15800
I know the first column is the timestamp. So if I try to convert 1405085400 to a Date object, I get a date in 1970 and not today’s date.
B) Do you know how to vary the interval for the results? I am interested in only hourly data and this might be too many results for me.
Thanks
-Venu
where i can find 1 minute tick data from 2000……i have since 2007-8?
You have to get subscribed directly from the exchange. There are no other options because of the costing of tick data 75,000 per of data and for researchers in college/PG it is 12,000 per year of data. Later you have to put tons of effort in formatting the encoded data into your required format.
And the storage it requires are unimaginable.
If I want to build my own intraday 5 min price capture, using Excel: Where can I go to get (even if 15min delay) current price, Hi, Low, Close, Volume (important) ? I would use Excel to schedule, capture and push to Db. Great information and thanks for all your help and love for the market. Yes name pun intended.
Respected Sir,
Here, Girish S B. Sir I would like to have Eod, Weekly, Monthly data feed only sir with 7 Years data , Where can i get this sir, I have licensed AmiBroker Professional 6.0 32 bit.
Thank you sir.
Respected Rajandran Sir,
I have gone through recently of your previous posts.
” This is the secret to get FREE RT DATA IN RT MODE IN AMIBROKER. ONLY THING IS YAHOO DON’T GIVE BARWISE VOLS. SO U HAVE TO MAKE AN AFL FOR VOLUME TO DEDUCT THE PREVIOUS BARS VOLUME FROM CURRENT AR VOLUME TO GET THE TRUE BAR WISE VOLUME. ”
Could you please provide this AFL as I am very week in software writing.
Thanking you,
Thank you so much.
Sir, I am in Tamilnadu, Coimbatore. I need every days gold market details (open, high, low, close & volume) from market opening in 5 Minutes gap. How i download in excel spread sheet.
Use sharekhan/Nest Trading terminal and extract directly from the trading terminal to your spread sheet.
sir
i am from thanjavur, tamilnadu, i need to know how to get free data on nse and bse share for intraday and positional trading. and how to feed the data with the amibroker with buy and sell singals with your free supertrend indicator, please reply for that sir
sir
how to feed this data in amibroker trail version, i have no knowledge on .net like this, so please guide me how to feed this data in amibroker
hello sir,
great work.. using info from your post i am using yahoo chartapi to get realtime stock data, i need your help with one problem i have, is there any way we can get list of all the symbol lookups for all stocks listed on chartapi.yahoo.finance.
regrads
Rajbir Singh
Raj
The link
http://chartapi.finance.yahoo.com/instrument/1.0/^nsei/chartdata;type=quote;range=1d/csv/
doesn’t work anymore.
RIP
Yes yahoo stopped their service.
Hi Sir,
Is there any alternate ?
Google Finance
Yahoo finance API is not available anymore. I have moved to MarketXLS after this change, much more reliable data.
Article updated with updated API links and sample yahoo javascript api request source code.