Search code examples
yahoo-finance

Yahoo finance no longer work?


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


Solution

  • 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.)