Convert
curl --request POST \
--url https://api.aisa.one/apis/v1/xe-com/exchange-rates/convert \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"from": "USD",
"to": "BRL"
}
'import requests
url = "https://api.aisa.one/apis/v1/xe-com/exchange-rates/convert"
payload = {
"from": "USD",
"to": "BRL"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({from: 'USD', to: 'BRL'})
};
fetch('https://api.aisa.one/apis/v1/xe-com/exchange-rates/convert', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/xe-com/exchange-rates/convert",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'from' => 'USD',
'to' => 'BRL'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/xe-com/exchange-rates/convert"
payload := strings.NewReader("{\n \"from\": \"USD\",\n \"to\": \"BRL\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/xe-com/exchange-rates/convert")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"from\": \"USD\",\n \"to\": \"BRL\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/xe-com/exchange-rates/convert")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"from\": \"USD\",\n \"to\": \"BRL\"\n}"
response = http.request(request)
puts response.read_body{
"amount": 1000,
"converted_amount": 5219.963208,
"from": "USD",
"inverse_rate": 0.19157223147998861,
"observed_at_ms": 1791138120798,
"rate": 5.219963208,
"rate_timestamp": "2026-10-04T14:45:00Z",
"rate_timestamp_ms": 1791125100000,
"source_url": "https://www.xe.com/en-us/currencyconverter/convert/?Amount=1000&From=USD&To=BRL",
"stats": {
"last_30_days": {
"average": 5.1503407151,
"data_points": 31,
"high": 5.2246094836,
"high_at": "2026-10-02T00:00:00Z",
"low": 5.0869593613,
"low_at": "2026-09-09T00:00:00Z",
"standard_deviation": 0.0406625445,
"volatility": 0.4324101861
},
"last_7_days": {
"average": 5.2050907415,
"data_points": 8,
"high": 5.2246094836,
"high_at": "2026-10-02T00:00:00Z",
"low": 5.1805939821,
"low_at": "2026-10-01T00:00:00Z",
"standard_deviation": 0.0182912784,
"volatility": 0.5016835735
},
"last_90_days": {
"average": 5.140225995,
"data_points": 91,
"high": 5.2246094836,
"high_at": "2026-10-02T00:00:00Z",
"low": 5.0671002363,
"low_at": "2026-07-23T00:00:00Z",
"standard_deviation": 0.0434592205,
"volatility": 0.4746809046
}
},
"to": "BRL"
}XE currency data
Convert
A single pair’s current rate or a converted amount. For many quotes against one base use live_rates; for a past date use historical_table.
POST
https://api.aisa.one
/
apis
/
v1
/
xe-com
/
exchange-rates
/
convert
Convert
curl --request POST \
--url https://api.aisa.one/apis/v1/xe-com/exchange-rates/convert \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"from": "USD",
"to": "BRL"
}
'import requests
url = "https://api.aisa.one/apis/v1/xe-com/exchange-rates/convert"
payload = {
"from": "USD",
"to": "BRL"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({from: 'USD', to: 'BRL'})
};
fetch('https://api.aisa.one/apis/v1/xe-com/exchange-rates/convert', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/xe-com/exchange-rates/convert",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'from' => 'USD',
'to' => 'BRL'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/xe-com/exchange-rates/convert"
payload := strings.NewReader("{\n \"from\": \"USD\",\n \"to\": \"BRL\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/xe-com/exchange-rates/convert")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"from\": \"USD\",\n \"to\": \"BRL\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/xe-com/exchange-rates/convert")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"from\": \"USD\",\n \"to\": \"BRL\"\n}"
response = http.request(request)
puts response.read_body{
"amount": 1000,
"converted_amount": 5219.963208,
"from": "USD",
"inverse_rate": 0.19157223147998861,
"observed_at_ms": 1791138120798,
"rate": 5.219963208,
"rate_timestamp": "2026-10-04T14:45:00Z",
"rate_timestamp_ms": 1791125100000,
"source_url": "https://www.xe.com/en-us/currencyconverter/convert/?Amount=1000&From=USD&To=BRL",
"stats": {
"last_30_days": {
"average": 5.1503407151,
"data_points": 31,
"high": 5.2246094836,
"high_at": "2026-10-02T00:00:00Z",
"low": 5.0869593613,
"low_at": "2026-09-09T00:00:00Z",
"standard_deviation": 0.0406625445,
"volatility": 0.4324101861
},
"last_7_days": {
"average": 5.2050907415,
"data_points": 8,
"high": 5.2246094836,
"high_at": "2026-10-02T00:00:00Z",
"low": 5.1805939821,
"low_at": "2026-10-01T00:00:00Z",
"standard_deviation": 0.0182912784,
"volatility": 0.5016835735
},
"last_90_days": {
"average": 5.140225995,
"data_points": 91,
"high": 5.2246094836,
"high_at": "2026-10-02T00:00:00Z",
"low": 5.0671002363,
"low_at": "2026-07-23T00:00:00Z",
"standard_deviation": 0.0434592205,
"volatility": 0.4746809046
}
},
"to": "BRL"
}Request contract
- Method and path: POST /apis/v1/xe-com/exchange-rates/convert
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/xe-com/exchange-rates/convert
{
"operationId": "xe-com.exchange-rates.convert",
"method": "POST",
"path": "/apis/v1/xe-com/exchange-rates/convert",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [],
"security": [
{
"bearerAuth": []
}
],
"requestBody": {
"content": {
"application/json": {
"examples": {
"provider": {
"summary": "Official provider example; checked against AIsa request constraints",
"value": {
"amount": 1000,
"from": "USD",
"to": "BRL"
}
}
},
"schema": {
"additionalProperties": true,
"properties": {
"amount": {
"description": "Amount of `from` to convert. Default 1.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"from": {
"description": "Source currency code (USD, EUR, BTC). Case-insensitive.",
"type": "string"
},
"to": {
"description": "Target currency code.",
"type": "string"
}
},
"required": [
"from",
"to"
],
"type": "object"
}
}
},
"required": true
},
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
Cost and request rules
Usage-based pricing. Default request estimate: $0.0005 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.Authorizations
Body
application/json
Response
Convert an amount between two currencies at XE's live mid-market rate. Returns the rate (units of to per 1 from), its inverse, the converted amount, the rate's timestamp, and XE's 7/30/90-day statistics for the pair (high, low, average, standard deviation, volatility, data points); stats is null when the page carries none for the pair. Codes are ISO 4217 or XE's crypto/metal tickers (BTC, XAU).
The response contains the tool result directly.
| Documented field | Provider type | Description |
|---|---|---|
amount | number | |
converted_amount | number | |
from | string | |
inverse_rate | number | |
observed_at_ms | number | |
rate | number | Units of to per 1 from (mid-market). |
rate_timestamp | string | When XE last updated the table, ISO 8601 UTC. |
rate_timestamp_ms | number | |
source_url | string | |
stats | object | |
to | string |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.