API Reference
Historical Rates for Date
Get all exchange rates for a specific historical date. Historical access: Free=none, Starter=30 days, Professional/Business=full history (2018+).
GET
/
{date}
Historical Rates for Date
curl --request GET \
--url https://api.exchangeratesapi.com.au/{date} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.exchangeratesapi.com.au/{date}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.exchangeratesapi.com.au/{date}', 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.exchangeratesapi.com.au/{date}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.exchangeratesapi.com.au/{date}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.exchangeratesapi.com.au/{date}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.exchangeratesapi.com.au/{date}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"timestamp": 1725062400,
"base": "AUD",
"date": "2025-08-31",
"rates": {
"USD": 0.678234,
"EUR": 0.612345,
"GBP": 0.534567
}
}{
"success": false,
"error": {
"code": 400,
"type": "bad_request",
"info": "Invalid currency format. Use 3-letter currency code (e.g., USD)"
}
}{
"success": false,
"error": {
"code": 401,
"type": "unauthorized",
"info": "Invalid or missing API key"
}
}{
"success": false,
"error": {
"code": 404,
"type": "not_found",
"info": "No data available for the specified date"
}
}Authorizations
API key authentication using Bearer token
Path Parameters
Date in YYYY-MM-DD format
Pattern:
^\d{4}-\d{2}-\d{2}$Response
Exchange rates for the specified date
Example:
true
Unix timestamp of the rate date
Example:
"AUD"
Date of the rates (YYYY-MM-DD)
Pattern:
^\d{4}-\d{2}-\d{2}$Object containing currency codes as keys and exchange rates as values
Show child attributes
Show child attributes
⌘I
Historical Rates for Date
curl --request GET \
--url https://api.exchangeratesapi.com.au/{date} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.exchangeratesapi.com.au/{date}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.exchangeratesapi.com.au/{date}', 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.exchangeratesapi.com.au/{date}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.exchangeratesapi.com.au/{date}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.exchangeratesapi.com.au/{date}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.exchangeratesapi.com.au/{date}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"timestamp": 1725062400,
"base": "AUD",
"date": "2025-08-31",
"rates": {
"USD": 0.678234,
"EUR": 0.612345,
"GBP": 0.534567
}
}{
"success": false,
"error": {
"code": 400,
"type": "bad_request",
"info": "Invalid currency format. Use 3-letter currency code (e.g., USD)"
}
}{
"success": false,
"error": {
"code": 401,
"type": "unauthorized",
"info": "Invalid or missing API key"
}
}{
"success": false,
"error": {
"code": 404,
"type": "not_found",
"info": "No data available for the specified date"
}
}
