Yahoo finance no longer work? - yahoo-finance

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

Related

Yahoo Finance API changes (2017)

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

twitter api 1.1 url count alternative

I've been using the old url api(v1) to get the count of a given url, lately I needed to get also the re-tweets and started searching about that.
this is the exact url I'm using right now:
http://urls.api.twitter.com/1/urls/count.json?url=http://google.com
As I viewed with some reading the v1 api is deprecated but at least it's still working.
I found some questions on the dev page of twitter:
https://dev.twitter.com/discussions/12643
those are a little old questions and have no specific solving to the problem. I mean, the most near solution was using the search api(search/tweets) which could be good but not a exactly replacement for the urls/count method.
Please note that Twitter's search service and, by extension, the
Search API is not meant to be an exhaustive source of Tweets. Not all
Tweets will be indexed or made available via the search interface.
also it has a limit for 100 results at maximum per 'page', even it throws the link to get the next set of objects, thats good but when the search reaches 1 million of results I'll need to get page over page to now how much tweets I got and having to do to much request to the api...
I sought some question over the dev page on twitter suggested using the stream api, I've tried using (statuses/filter) but that don't work very well given a URL as track param(which they said that is the keyword to track).
So, anyone who's been using the old urls/count has found a reliable alternative with the new apiv1.1, especiffically to get the tweets and re-tweets for a given url ?
The official suggestion by Twitter staff is that either the search/tweets endpoint (having just the last 7 days data) or the Streaming API be used (handling yourself the counters, making everything just too complicated for a d*mn counter).
As an extra warning, the old endpoint (http://urls.api.twitter.com/1/urls/count.json?url=YOUR_URL) will stop working on November 20th, and according to this blog post from Twitter there are no plans to replace it with anything in the short term and they are even removing the count from their own buttons.

Get RSS feed of a Twitter hashtag

A client of mine wants to get an RSS feed for a twitter hashtag and include it in a list of other feeds from a variety of other sites.
I've Googled it all morning and I get a mix of answers. Some say it's possible, others say not anymore.
Could anyone shed some light on this?
Unfortunately, as of the API v1.1 upgrade on June 11th 2013, twitter now only gives responses in JSON. You can view the official announcement here.
That being said, I think you may need to think broader with your google searching ;)
Within 30 seconds, I found this, and it looks like exactly what you're looking for:
RSS readers cannot subscribe to JSON feeds. twitter-json-to-rss is a set of PHP scripts that you install on your public facing server that allows you to get around this problem.
Heres the library. Note this is entirely untested by myself, so you'll have to check it out.
Basically, you need to send an authenticated request to the twitter 1.1 API, get your data, then convert the returned json to RSS for your client.
If you're using PHP, this is the fastest post to help you get up to speed with requests to the 1.1 API in PHP.
It's not possible anymore. Twitter removed RSS feeds from their data formats and will require you to use their API to achieve that.

Getting twitter replies

Is it possible to get replies (tweets) for a given tweet in twitter? I am searching for a API in twitter but couldn't find the same. Can some one help me on this?
Thanks
https://api.twitter.com/1/related_results/show/172019363942117377.json?include_entities=1
That is an experimental API.
By experimental API, this means that until we officially document it on dev.twitter.com, it's not necessarily production-ready and could be unstable both in the parameters it takes and the format of its responses. It also may just disappear one day.
As for related_results itself, it won't necessarily return every reply for a tweet nor are its responses necessarily limited to just replies. That said, for your own personal use or experimentation you may find some utility in the method. If you choose to use it in any software you're developing, I would proactively wrap its use with significant exception handling.

Getting stats for Twitter app

I'm using Twitter's OAuth for my app (DroidIn)
To my dismay I can't find any way to track who and how often is using the app. Searching Twitter for "sent from DroidIn" does not yield any results. I suppose I can call some sort of counter app from my code but that doesn't seem to be fair to my users. Any ideas or suggestions?
It seems that yet again I have to answer my own question. After some investigation and feedback from question posted on Google Twitter developer group it seems that for now there are no stats easily accessible or available. Said that I found 2 interesting things:
You can search Twitter using source:yourapp switch. For example you can try this query
android source:API
There is very exciting streaming API from Twitter. I have a short write-up in my dev blog.
But if you want some actual stats there's no other choice today but implement it as part of your app. There's one more possibility if you have some sort of web-based interface you may want to use Google Analytics to trigger some Google javascript while submitting the update. I'm trying that right now and may end up with article in the blog

Resources