Requesting data from Yahoo Finance seems to have changed or is now blocked. The request below for commodity data no longer works as of May 2017. Does anyone know if there is a new way to make this request?
http://chartapi.finance.yahoo.com/instrument/1.0/GCQ17.CMX/chartdata;type=quote;range=10d/csv/
First, the old Yahoo finance iChart download is gone for good. In one of the forum posts, a Yahoo employee has confirmed that the free EOD data has been terminated, and will not be reintroduced. Check out this thread and look for reply from Nixon. Yahoo is recently acquired by Verizon, and it must be the new direction.
However, if you check the Yahoo financial page, the CSV download link works, though differently now. It is through a new API that uses an authentication token "crumb" that is linked to a cookie when you access the page.
So there is a work-around to get the same CSV download as before through this new API. I have put together some quick Python3 code. Please check out GitHub for source code yahoo_quote_download.
As Ashley Davis mentioned in the comments section of the question above, the new way to go is through Alpha Vantage, at least when one is looking for free historical data. Their web service is very well documented and straight forward.
For those of you who are looking to import the data into Excel, I have written an api that I make available for free. Here is the Excel spreadsheet
Addendum as of Aug 2018: Current version of Deriscope supports retrieval of both historical data and live feeds from YF.
For Australian investors, here is an alternative to yahoo finance api:
www.biglion.com.au
Related
I am new to yahoo finance api. I am also a beginner investor. I always use yahoo finance api to keep track of my investment portfolio. But it does not work recently due to yahoo stopping this service. Will you kindly share any alternatives for me? Thank you.
There are several alternatives, but I suppose you are looking for free services? One alternative is Quandl. There is a Database called "Wiki" that is free.
When I re-looked at this question now, I realised I have a solution for it.
I picked up python and found out about this yahoo finance library.
https://pypi.org/project/yahoofinancials/
You could use:
https://www.alphavantage.co/ which is free and offers plenty of possibilities
https://iexcloud.io/ which is also free
https://www.quandl.com/tools/api which is also free but offers more options (for some of them you need a subscription)
https://rapidapi.com/marketplace which offers free APIs (to get financial news, trading data, financial data,...)
Some webscraping tools and get data directly from yahoo finance
AssetMacro.com API provides free access to historical data for 120,000+ Financial Securities (Stocks, Bonds, Commodities, Currencies, Credit Default Swaps, Indices) and Macroeconomic Variables for 120 countries.
It looks like the party is over with regard to historical data from the Yahoo Finance API. I've followed previous answers and nothing is working. The previous code was of the format:
http://ichart.yahoo.com/table.csv?s=AAPL
and even https.
https://ichart.yahoo.com/table.csv?s=AAPL
None of these resolve in browser or can be requested. For historical data is there any API in existence for Yahoo Finance? It's possible to get current data points with the following calls:
http://finance.yahoo.com/d/quotes.csv?s=AAPL&f=e
However no history. Any suggestions or functioning work around?
Try the spreadsheets here:
Bulk Yahoo historical stock quote downloader
Historical stock prices from Yahoo
Yahoo finance now uses a cookie-crumb pair. The VBA in the spreadsheets
gets the cookie-crumb pair from Yahoo for a junk call
uses the cookie-crumb pair to download historical data
uses the cookie-crumb pair to download historical data.
The first spreadsheet lets you download bulk data. The second spreadsheet contains a wrapper function that converts old Yahoo Finance API calls to a format that still works
The VBA is more involved (not a clean API call anymore), and Yahoo may shut off this route without notice. But, for now, you can still get historical data.
I used to get exhange rate from yahoo finance api by javascript with following url:
http://finance.yahoo.com/webservice/v1/symbols/jpy=x,eur=x/quote?format=json
but now it no longer work! I have search on the net but no luck.
Any help would be great, Thank!
Update: it is working if open with chrome mobile
Yes, it seems like Yahoo! has discontinued the (private, mostly-undocumented) Yahoo Finance API that many have been using for their currency data. All responses seem to be returning "Not a valid parameter". I suppose there's a chance they may switch it back on, but they don't officially support that API anywhere as far as I can tell.
I created Open Exchange Rates about five years ago, and our exchange rate API now supports a community of tens of thousands of developers - and their tens of millions of users - with accurate, up-to-date information.
Please feel welcome to check out our Forever Free service at https://openexchangerates.org.
Our API is in a simple, original JSON format, which has actually caught on as a standard method for displaying rates because it's so simple to work with (unlike the Yahoo API, which required you to parse the obscure nested objects to pull out the basic info you needed...)
If you need assistance porting from the deprecated Yahoo! API, we'll be happy to assist via email.
(I am the founder of Open Exchange Rates.)
indrakula is right, and their response helped me, but...
I also needed to retrieve exchange rate tickers (i.e. USDGBP=X). This was not trivial, and I had to do some searching. The URL format in this case is http://www.google.com/finance/info?q=CURRENCY%3aUSDGBP. This URL returns a JSON body and not something else as the alternative URLs mentioned in one of the comments for that reply. Also note the link with the parameter descriptions seems to be out-of-date, but I found most of them are self-explanatory. So don't rely on that link.
Note: I wanted to post this as a comment to indrakula's answer, but one needs 50 reputation to comment! I'm new! I tried to submit this as an edit to their answer but it was (rightly) refused.
use google http://www.google.com/finance/info?q=GOOGL
paramater description here http://www.networkerror.org/component/content/44.html?task=view
I want to get comments from Google Docs using the Google Drive API.
Does anyone know if the Google Drive API (or other Google Apps Application APIs) supports retrieve commenting?
Thanks.
Comments are included for documents via download as text (using the DocumentsList API), although it may be difficult to distinguish comments from the regular text.
Comments for spreadsheets are included when the item is downloaded as html (again, using the DocumentsList API), but not included when downloaded in other formats.
Comments for presentations, drawings, and non-Google types are not readily available.
Comments are not available via the API yet, but this is a common feature request that we are already evaluating. Stay tuned for updates soon.
Does anyone know where to find the RSS feeds in the new twitter? I cannot find the rss icon and the source of the page just points to "Your Twitter Favorites" even though I am on the page of the user I want to get an RSS feed from...
Simple I know, but its bugging me to no end!
2014 edit:
It looks like Twitter has retired RSS feeds, and now only exports data as JSON:
What output formats will API v1.1 support?
API v1.1 will support JSON only. We’ve been hinting at this for some
time now, first dropping XML support on the Streaming API and more
recently on the trends API. XML, Atom, and RSS are infrequently used
today, and we’ve chosen to throw our support behind the JSON format
shared across the platform. Consequently, we’ve decided to discontinue
support for these other formats. For historical context, when we
originally built the API all major languages did not have performant,
well vetted libraries supporting JSON - today they do.
Orignal 2010 answer:
Here are the various feed URLs (using the account "Twitter" for these examples):
http://twitter.com/statuses/public_timeline.rss
http://twitter.com/statuses/user_timeline/Twitter.rss
http://twitter.com/favorites/Twitter.rss
http://search.twitter.com/search.rss?q=Twitter
The new Twitter layout isn't very RSS-friendly, unfortunately.
You won't be able to find it because Twitter stopped support for RSS :(
Something I needed, so built a Twitter to RSS converter, it works on hashtags, searches and lists. I've now opened it up totally free for anyone else who needs a solution.
Get it here - Twitter RSS Feed Generator
Recommende you to use the free website ahejlsberg, put the id into the textbox next to #, then click the "Fetch RSS" button.
You can get the RSS feed url: https://twitrss.me/twitter_user_to_rss/?user=ahejlsberg.
I found that this works for particular users (I had been trying to figure out their ids which was the way rss used to work but this works fine):
[Updated]
http://api.twitter.com/1/statuses/user_timeline.rss?screen_name=johnpiper
[Updated Sept 2014]
no longer works again...
[Alternative Solution: May 2015]
I have since discovered http://www.queryfeed.net
http://www.queryfeed.net/twitter?q=from%3Ajohnpiper
See the home page for further documentation about how to structure other queries. The service does not seem to return all tweets.