Convert

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

Request Parameters

Name
Type
Description

access_key

string

Your access key

date

string

Date format: YYYY-MM-DD (optional)

from

string

Source currency code

to

string

Target currency codes

amount

float

Amount

Sample Requests

curl --location 'https://api.curexapi.com/convert?access_key=YOUR_ACCESS_KEY&date=2023-01-01&from=USD&to=EUR%2CGBP&amount=100'

Sample Response

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

Last updated