Real-time Rates

Both free and paid users may access real-time exchange rates using the currencylayer API's live endpoint.

Optionally, it is possible to define an additional source currency and specific output currencies using the currencies parameter. Both of these options will be discussed in detail throughout this documentation.

GET https://api.curexapi.com/live

Request Parameters

NameTypeDescription

access_key

string

Your access key

source

string

Source currency code (optional) (default:USD)

currencies

string

Target currency codes (optional)

Sample Requests

curl --location 'https://api.curexapi.com/live?access_key=YOUR_ACCESS_KEY&source=USD&currencies=EUR%2CGBP'

Sample Response

{
    "success": true,
    "timestamp": 1672531200,
    "source": "USD",
    "date": "2023-01-01",
    "rates": {
        "EUR": 0.932,
        "GBP": 0.827
    }
}

Last updated