GET
$0.06 default
/convertDescription
Convert an amount from one currency to another at the live rate; returns the computed result plus the quote used.
Pricing
$0.06 default
Parameters
{
"amount": {
"description": "Amount to convert.",
"example": "100",
"required": true,
"type": "number"
},
"from": {
"description": "Source currency code.",
"example": "USD",
"required": true,
"type": "string"
},
"to": {
"description": "Target currency code.",
"example": "EUR",
"required": true,
"type": "string"
}
}Response schema
{
"properties": {
"info": {
"properties": {
"quote": {
"description": "Exchange rate applied.",
"type": "number"
},
"timestamp": {
"type": "integer"
}
},
"type": "object"
},
"query": {
"properties": {
"amount": {
"type": "number"
},
"from": {
"type": "string"
},
"to": {
"type": "string"
}
},
"type": "object"
},
"result": {
"description": "Converted amount.",
"type": "number"
},
"success": {
"type": "boolean"
}
},
"type": "object"
}Example response
{
"info": {
"quote": 0.87479,
"timestamp": 1783016465
},
"query": {
"amount": 100,
"from": "USD",
"to": "EUR"
},
"result": 87.479,
"success": true
}