Skip to main content
GET
https://api.xchangeapi.com/
{format}
/
currencies
/
{currency-pair}
Single currency rate
curl --request GET \
  --url https://api.xchangeapi.com/{format}/currencies/{currency-pair} \
  --header 'api-key: <api-key>'
{
    "ask": "1.06742",
    "bid": "1.06727",
    "name": "EURUSD",
    "time": "1584640370.007"
}
Get the latest exchange rate for a single, specific currency pair. This endpoint is optimized for retrieving precise, up-to-the-millisecond data for individual market instruments.

Path parameters

format
string
default:"json"
The desired output format. Options: json, xml, csv.
If you choose xml, you must use the POST method. GET requests for XML will fail.

Query parameters

currency-pair
string
The currency pair symbol to retrieve (e.g., EURUSD). See the list of available currencies.

Response

Note on Precision: Some currency pairs are returned with a multiplier (e.g., 100 or 1000) to ensure high precision.
ask
string
The current ask price.
bid
string
The current bid price.
name
string
The currency pair symbol.
time
string
The Unix timestamp (epoch) of the rate.
{
    "ask": "1.06742",
    "bid": "1.06727",
    "name": "EURUSD",
    "time": "1584640370.007"
}