Get live currency quotes

  • Access real-time quotes for more than 140 currencies.
  • Ensure up-to-the-minute accuracy in currency conversions and analysis.
  • Data can be downloaded in JSON, XML and CSV formats.
  • The API cost for querying this endpoint is equal to the number of counter currencies requested.
GET https://api.forexapi.eu/v2/live?base=USD&counter=EUR,GBP&format=json
Arguments
Name Description Example
base Base currency EUR
counter Comma-separated list of counter currencies USD USD,PLN,CHF
format Output format (default "json") json xml csv
Example output
{
  "base": "USD", 
  "quotes": { 
    "EUR": { 
      "bid": "0.9144", 
      "ask": "0.9148", 
      "mid": "0.9146", 
      "timestamp": 1704690145 
    }, 
    "GBP": { 
      "bid": "0.7872", 
      "ask": "0.7874", 
      "mid": "0.7873", 
      "timestamp": 1704690145 
    } 
  }, 
  "cost": 2 
} 
Result field name Type Description
base string Base currency (repeated)
quotes object Object containing quotes
quotes.*.bid decimal Bid price
quotes.*.ask decimal Ask price
quotes.*.mid decimal Mid price
quotes.*.timestamp integer UNIX timestamp of the quote
cost integer The cost of the API call against your plan's allowance
<?xml version="1.0"?>
<response>
    <base>USD</base>
    <cost>2</cost>
    <quotes>
        <quote counter="GBP">
            <counter>GBP</counter>
            <bid>0.7863</bid>
            <ask>0.7863</ask>
            <mid>0.7863</mid>
            <timestamp>2024-01-24T23:51:22Z</timestamp>
        </quote>
        <quote counter="EUR">
            <counter>EUR</counter>
            <bid>0.9186</bid>
            <ask>0.9190</ask>
            <mid>0.9188</mid>
            <timestamp>2024-01-24T23:51:22Z</timestamp>
        </quote>
    </quotes>
</response>

Timestamp in XML is in ISO 8601 format (YYYY-MM-DDTHH:MM:SSZ). The date is in UTC.

base,counter,bid,ask,mid,timestamp
USD,GBP,0.7861,0.7862,0.7861,"2024-01-24 23:57:21"
USD,EUR,0.9189,0.9190,0.9189,"2024-01-24 23:57:21"

Timestamp in CSV is in ISO 8601 format (YYYY-MM-DD HH:MM:SS). The date is in UTC.