Yahoo Finance API: All Currency Quotes in JSON Format

If you're looking for a way to get all currency quotes in JSON format, the Yahoo Finance API is a great option. With this API, you can get real-time currency exchange rates for all major currencies.

├Źndice
  1. How to Use the Yahoo Finance API
  2. Example Response
  3. Conclusion

How to Use the Yahoo Finance API

To use the Yahoo Finance API, you'll need to make a GET request to the following URL:

https://finance.yahoo.com/webservice/v1/symbols/allcurrencies/quote?format=json

This will return a JSON object with all the currency quotes.

Example Response

{
    "list": {
        "meta": {
            "type": "resource-list",
            "start": 0,
            "count": 168
        },
        "resources": [
            {
                "resource": {
                    "classname": "Quote",
                    "fields": {
                        "name": "USD/JPY",
                        "price": "111.876999",
                        "symbol": "USDJPY=X",
                        "ts": "1626356400",
                        "type": "currency",
                        "utctime": "2021-07-15T21:40:00+0000",
                        "volume": "0"
                    }
                }
            },
            {
                "resource": {
                    "classname": "Quote",
                    "fields": {
                        "name": "EUR/USD",
                        "price": "1.181302",
                        "symbol": "EURUSD=X",
                        "ts": "1626356400",
                        "type": "currency",
                        "utctime": "2021-07-15T21:40:00+0000",
                        "volume": "0"
                    }
                }
            },
            ...
        ]
    }
}

Conclusion

The Yahoo Finance API provides an easy and efficient way to get all currency quotes in JSON format. By making a simple GET request, you can access real-time exchange rates for all major currencies.

Click to rate this post!
[Total: 0 Average: 0]

Leave a Reply

Your email address will not be published. Required fields are marked *

Go up

Below we inform you of the use we make of the data we collect while browsing our pages. You can change your preferences at any time by accessing the link to the Privacy Area that you will find at the bottom of our main page. More Information