Does Yahoo finance have data request upper limit. Is there an alternative or workaround?

Hi there I have scanned this site and Google for any latest updates on downloading stock info from Yahoo Finance. I have not had much success. As I am testing my app, I came across an 404 server not found exception using the following C# code snippet:

string urlTemplate = @"http://ichart.finance.yahoo.com/table.csv?s=[symbol]&a=" + "[startMonth]&b=[startDay]&c=[startYear]&d=[endMonth]&e=" + "[endDay]&f=[endYear]&g=d&ignore=.csv"; ... WebClient wc = new WebClient(); try { history = wc.DownloadString(urlTemplate); }

Do you know if Yahoo recently (or always) had some update on how much much you can request from Yahoo's Finance server? If so, does anyone know the upper limit or threshold? Is it over time or max number of daily requests? I thought about putting a random sleep request of up to 2 minutes to get by this. I don't think that would help. Is there any alternatives that would enable me to constantly make requests to Yahoo Finance? I thought Yahoo had some kind of subscription service you could use for this exact purpose. I cannot find anything about it. If none of this is a no go with Yahoo, does anyone have any recommendations of affordable alternative services or data feed services?


They never said what the limit was. I used to update something like 6000 stocks daily, it worked. On some other pages the limit seems to be much higher, but on historic stock prices they do block at some point.

By the way, sometimes yahoo server returns undocumented HTTP 999 code which I interpret as "too many requests".

If all you want is end of day data then perhaps you can try this: http://www.eoddata.com/products/default.aspx (I've never tried it myself)

Of course there are paid subscriptions for more frequent data.


See the Yahoo Query Language Usage Information and Limits page. This is for all of the YQL APIs, not just the Finance API.

<strong>YQL Rate Limits:</strong>

<img src=https://www.e-learn.cn/content/wangluowenzhang/"https://i.stack.imgur.com/uwxbl.jpg" alt="YQL Rate Limits">

What this means:

    <li>Using the Public API (without authentication), you are limited to 2,000 requests per hour per IP (or up to a total of 48,000 requests a day).</li> <li>Using the Private API (with OAuth authentication using an API key), you are limited to 20,000 requests per hour per IP and you are limited to 100,000 requests per day per API Key.</li> </ul>

    As for implementation, if you wish to use the Yahoo Finance API, then you must adhere to their requirement. Build a system that only makes the number of requests they allow to prevent errors. You can do this with a database (in case there is more than one script/application client using it) and use threads/jobs (jobs=polling) to wait until it can make more requests. Get an API key to extend your limit. Get multiple API keys to extend it even more.

    As for an alternative, there are too many to count. I've only used the Yahoo and Google APIs. Yahoo is my preferred option, but I haven't found a free alternative that is comparable. Try your luck and let me know if you find one!


  • How full does the old generation have to be to trigger a major GC cycle?
  • Suggestions on thresholding techniques/image binarization
  • Excel - import data from an online xls file daily
  • How does one pull statistics (either daily or over time) from the YouTube API
  • iOS UIWebView: How can I figure out what the previous URL is?
  • MySQL select genres issue (php)
  • NullPointerException for lwuit.html.CSSEngine.applyStyleToUIElement(Unknown Source)
  • Generating random numbers directly inside a .htaccess file
  • Neo4j: Filter nodes based on aggregate function
  • How can I prevent the need to copy strings passed to a avr-gcc C++ constructor?
  • File extension of zlib zipped html page?
  • Problem with Django using Apache2 (mod_wsgi), Occassionally is “unable to import from module” for no
  • How to pass solution folder as parameter in command line arguments (for debug)?
  • Jenkins Grails plugin does not list lastest versions of Grails
  • Most efficient way to move table rows from one table to another
  • Jquery Mobile pageLoading() Method how does it work?
  • Use tryCatch within R loop
  • How can I tell a form not to dispose a particular control when it closes?
  • Hash Code in SQL Server?
  • Intel-64 and ia32 atomic operations acquire-release semantics and GCC 5+
  • Java color detection
  • Read text file that is not in the main package in a runnable jar
  • RxJava debounce by arbitrary value
  • D3 get axis values on zoom event
  • C: Incompatible pointer type initializing
  • Scrapy recursive link crawler
  • Is there a javascript serializer for JSON.Net?
  • Adding a button at the bottom of a table view
  • NetLogo BehaviorSpace - Measure runs using reporters
  • Does CUDA 5 support STL or THRUST inside the device code?
  • Where to put my custom functions in Wordpress?
  • How to handle AllServersUnavailable Exception
  • How to make Safari send if-modified-since header?
  • Web-crawler for facebook in python
  • How to get next/previous record number?
  • Buffer size for converting unsigned long to string
  • Can Visual Studio XAML designer handle font family names with spaces as a resource?
  • How can I remove ASP.NET Designer.cs files?
  • Are Kotlin's Float, Int etc optimised to built-in types in the JVM? [duplicate]
  • Binding checkboxes to object values in AngularJs