Rate history
curl --request POST \
--url https://api.aisa.one/apis/v1/xe-com/exchange-rates/rate-history \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"from": "EUR",
"to": "JPY"
}
'import requests
url = "https://api.aisa.one/apis/v1/xe-com/exchange-rates/rate-history"
payload = {
"from": "EUR",
"to": "JPY"
}
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: 'EUR', to: 'JPY'})
};
fetch('https://api.aisa.one/apis/v1/xe-com/exchange-rates/rate-history', 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/rate-history",
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' => 'EUR',
'to' => 'JPY'
]),
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/rate-history"
payload := strings.NewReader("{\n \"from\": \"EUR\",\n \"to\": \"JPY\"\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/rate-history")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"from\": \"EUR\",\n \"to\": \"JPY\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/xe-com/exchange-rates/rate-history")
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\": \"EUR\",\n \"to\": \"JPY\"\n}"
response = http.request(request)
puts response.read_body{
"count": 31,
"from": "EUR",
"interval": "day",
"observed_at_ms": 1791138149116,
"points": [
{
"rate": 181.5467827188504,
"time": "2026-09-04T23:00:00Z"
},
{
"rate": 181.46023265875257,
"time": "2026-09-05T23:00:00Z"
},
{
"rate": 181.4243612439205,
"time": "2026-09-06T23:00:00Z"
},
{
"rate": 179.24112988736468,
"time": "2026-09-07T23:00:00Z"
},
{
"rate": 178.74330616683793,
"time": "2026-09-08T23:00:00Z"
},
{
"rate": 178.45636513380703,
"time": "2026-09-09T23:00:00Z"
},
{
"rate": 179.25722327721917,
"time": "2026-09-10T23:00:00Z"
},
{
"rate": 178.17237539053545,
"time": "2026-09-11T23:00:00Z"
},
{
"rate": 178.12774782134622,
"time": "2026-09-12T23:00:00Z"
},
{
"rate": 178.15564295434916,
"time": "2026-09-13T23:00:00Z"
},
{
"rate": 178.2045772231668,
"time": "2026-09-14T23:00:00Z"
},
{
"rate": 178.98892401788382,
"time": "2026-09-15T23:00:00Z"
},
{
"rate": 179.17021299771832,
"time": "2026-09-16T23:00:00Z"
},
{
"rate": 179.01858865637524,
"time": "2026-09-17T23:00:00Z"
},
{
"rate": 180.21141634168953,
"time": "2026-09-18T23:00:00Z"
},
{
"rate": 180.17425481492657,
"time": "2026-09-19T23:00:00Z"
},
{
"rate": 180.3205419528557,
"time": "2026-09-20T23:00:00Z"
},
{
"rate": 180.36279501736547,
"time": "2026-09-21T23:00:00Z"
},
{
"rate": 180.2523180953012,
"time": "2026-09-22T23:00:00Z"
},
{
"rate": 180.2081763423373,
"time": "2026-09-23T23:00:00Z"
},
{
"rate": 180.64162129597315,
"time": "2026-09-24T23:00:00Z"
},
{
"rate": 179.19751198676266,
"time": "2026-09-25T23:00:00Z"
},
{
"rate": 179.18248845970078,
"time": "2026-09-26T23:00:00Z"
},
{
"rate": 179.23111261823215,
"time": "2026-09-27T23:45:00Z"
},
{
"rate": 178.89841529284155,
"time": "2026-09-28T23:45:00Z"
},
{
"rate": 178.50093605209736,
"time": "2026-09-29T23:45:00Z"
},
{
"rate": 178.42650810236285,
"time": "2026-09-30T23:45:00Z"
},
{
"rate": 177.54230465955996,
"time": "2026-10-01T23:45:00Z"
},
{
"rate": 177.65872165548544,
"time": "2026-10-02T23:50:00Z"
},
{
"rate": 177.64271760506725,
"time": "2026-10-03T23:50:00Z"
},
{
"rate": 177.70288930566767,
"time": "2026-10-04T18:21:00Z"
}
],
"range": "1M",
"series_timestamp": "2026-10-04T18:22:00Z",
"source_url": "https://www.xe.com/en-us/currencycharts/?from=EUR&to=JPY",
"to": "JPY"
}XE currency data
Rate history
Charting or trend analysis of one pair. For a single past date across all currencies use historical_table.
POST
https://api.aisa.one
/
apis
/
v1
/
xe-com
/
exchange-rates
/
rate-history
Rate history
curl --request POST \
--url https://api.aisa.one/apis/v1/xe-com/exchange-rates/rate-history \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"from": "EUR",
"to": "JPY"
}
'import requests
url = "https://api.aisa.one/apis/v1/xe-com/exchange-rates/rate-history"
payload = {
"from": "EUR",
"to": "JPY"
}
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: 'EUR', to: 'JPY'})
};
fetch('https://api.aisa.one/apis/v1/xe-com/exchange-rates/rate-history', 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/rate-history",
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' => 'EUR',
'to' => 'JPY'
]),
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/rate-history"
payload := strings.NewReader("{\n \"from\": \"EUR\",\n \"to\": \"JPY\"\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/rate-history")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"from\": \"EUR\",\n \"to\": \"JPY\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/xe-com/exchange-rates/rate-history")
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\": \"EUR\",\n \"to\": \"JPY\"\n}"
response = http.request(request)
puts response.read_body{
"count": 31,
"from": "EUR",
"interval": "day",
"observed_at_ms": 1791138149116,
"points": [
{
"rate": 181.5467827188504,
"time": "2026-09-04T23:00:00Z"
},
{
"rate": 181.46023265875257,
"time": "2026-09-05T23:00:00Z"
},
{
"rate": 181.4243612439205,
"time": "2026-09-06T23:00:00Z"
},
{
"rate": 179.24112988736468,
"time": "2026-09-07T23:00:00Z"
},
{
"rate": 178.74330616683793,
"time": "2026-09-08T23:00:00Z"
},
{
"rate": 178.45636513380703,
"time": "2026-09-09T23:00:00Z"
},
{
"rate": 179.25722327721917,
"time": "2026-09-10T23:00:00Z"
},
{
"rate": 178.17237539053545,
"time": "2026-09-11T23:00:00Z"
},
{
"rate": 178.12774782134622,
"time": "2026-09-12T23:00:00Z"
},
{
"rate": 178.15564295434916,
"time": "2026-09-13T23:00:00Z"
},
{
"rate": 178.2045772231668,
"time": "2026-09-14T23:00:00Z"
},
{
"rate": 178.98892401788382,
"time": "2026-09-15T23:00:00Z"
},
{
"rate": 179.17021299771832,
"time": "2026-09-16T23:00:00Z"
},
{
"rate": 179.01858865637524,
"time": "2026-09-17T23:00:00Z"
},
{
"rate": 180.21141634168953,
"time": "2026-09-18T23:00:00Z"
},
{
"rate": 180.17425481492657,
"time": "2026-09-19T23:00:00Z"
},
{
"rate": 180.3205419528557,
"time": "2026-09-20T23:00:00Z"
},
{
"rate": 180.36279501736547,
"time": "2026-09-21T23:00:00Z"
},
{
"rate": 180.2523180953012,
"time": "2026-09-22T23:00:00Z"
},
{
"rate": 180.2081763423373,
"time": "2026-09-23T23:00:00Z"
},
{
"rate": 180.64162129597315,
"time": "2026-09-24T23:00:00Z"
},
{
"rate": 179.19751198676266,
"time": "2026-09-25T23:00:00Z"
},
{
"rate": 179.18248845970078,
"time": "2026-09-26T23:00:00Z"
},
{
"rate": 179.23111261823215,
"time": "2026-09-27T23:45:00Z"
},
{
"rate": 178.89841529284155,
"time": "2026-09-28T23:45:00Z"
},
{
"rate": 178.50093605209736,
"time": "2026-09-29T23:45:00Z"
},
{
"rate": 178.42650810236285,
"time": "2026-09-30T23:45:00Z"
},
{
"rate": 177.54230465955996,
"time": "2026-10-01T23:45:00Z"
},
{
"rate": 177.65872165548544,
"time": "2026-10-02T23:50:00Z"
},
{
"rate": 177.64271760506725,
"time": "2026-10-03T23:50:00Z"
},
{
"rate": 177.70288930566767,
"time": "2026-10-04T18:21:00Z"
}
],
"range": "1M",
"series_timestamp": "2026-10-04T18:22:00Z",
"source_url": "https://www.xe.com/en-us/currencycharts/?from=EUR&to=JPY",
"to": "JPY"
}Request contract
- Method and path: POST /apis/v1/xe-com/exchange-rates/rate-history
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/xe-com/exchange-rates/rate-history
{
"operationId": "xe-com.exchange-rates.rate-history",
"method": "POST",
"path": "/apis/v1/xe-com/exchange-rates/rate-history",
"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": {
"from": "EUR",
"range": "1M",
"to": "JPY"
}
}
},
"schema": {
"additionalProperties": true,
"properties": {
"from": {
"description": "from",
"type": "string"
},
"interval": {
"description": "One closing value per UTC day (default) or per hour (ranges up to 1M).\n\nProvider reference: allowed values [\"day\", \"hour\"].",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body",
"oneOf": [
"day",
"hour"
]
}
},
"range": {
"description": "How far back from XE's latest point. Default 1M.\n\nProvider reference: allowed values [\"1D\", \"1W\", \"1M\", \"3M\", \"6M\", \"1Y\", \"2Y\", \"5Y\", \"10Y\"].",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body",
"oneOf": [
"1D",
"1W",
"1M",
"3M",
"6M",
"1Y",
"2Y",
"5Y",
"10Y"
]
}
},
"to": {
"description": "to",
"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
A time series of XE's mid-market rate for one pair over the last 1 day to 10 years, decoded from XE's charting API and collapsed to one closing value per UTC day (interval day, default) or per hour (hour, ranges up to 1M). Points are {time, rate} with rate in units of to per 1 from. Ranges: 1D, 1W, 1M, 3M, 6M, 1Y, 2Y, 5Y, 10Y.
The response contains the tool result directly.
The provider identifies points as the primary payload key.
| Documented field | Provider type | Description |
|---|---|---|
rate | number | |
time | string | Time of the last observation in the bucket, ISO 8601 UTC. |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.