ExchangeRate-API
v6.exchangerate-api.com · Finance
Real-time and historical currency exchange rates for 160+ currencies. Free tier: 1,500 requests/month, no credit card required.
Authentication
Sample Requests
Get all exchange rates relative to USD.
Hover any highlighted part to learn what it does
curl -X GET "https://v6.exchangerate-api.com/v6/YOUR_API_KEY/latest/USD"
import requests
response = requests.get(
"https://v6.exchangerate-api.com/v6/YOUR_API_KEY/latest/USD",
)
print(response.json())const url = 'https://v6.exchangerate-api.com/v6/YOUR_API_KEY/latest/USD'; const response = await fetch(url); const data = await response.json(); console.log(data);
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
targetURL := "https://v6.exchangerate-api.com/v6/YOUR_API_KEY/latest/USD"
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://v6.exchangerate-api.com/v6/YOUR_API_KEY/latest/USD")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://v6.exchangerate-api.com/v6/YOUR_API_KEY/latest/USD";
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Convert 100 USD to GBP.
Hover any highlighted part to learn what it does
curl -X GET "https://v6.exchangerate-api.com/v6/YOUR_API_KEY/pair/USD/GBP/100"
import requests
response = requests.get(
"https://v6.exchangerate-api.com/v6/YOUR_API_KEY/pair/USD/GBP/100",
)
print(response.json())const url = 'https://v6.exchangerate-api.com/v6/YOUR_API_KEY/pair/USD/GBP/100'; const response = await fetch(url); const data = await response.json(); console.log(data);
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
targetURL := "https://v6.exchangerate-api.com/v6/YOUR_API_KEY/pair/USD/GBP/100"
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://v6.exchangerate-api.com/v6/YOUR_API_KEY/pair/USD/GBP/100")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://v6.exchangerate-api.com/v6/YOUR_API_KEY/pair/USD/GBP/100";
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Postman Setup Guide
- Get a free API key at exchangerate-api.com (no credit card)
- Key goes in the URL: /v6/YOUR_KEY/latest/USD
- Try GET https://v6.exchangerate-api.com/v6/YOUR_KEY/latest/EUR
- Convert: GET /v6/YOUR_KEY/pair/USD/JPY/250 to convert 250 USD to JPY
What can you build with ExchangeRate-API?
ExchangeRate-API is a Finance API. Developers commonly use finance APIs for:
- processing payments and handling transactions
- building subscription and billing systems
- automating invoicing and financial reporting
- fraud detection and risk scoring
- connecting to banking and accounting software
API Key authentication. You'll receive a key after signing up. Send it with every request — in a header or query parameter. Keep it out of client-side code and never commit it to version control. ExchangeRate-API is free to use up to a usage limit, making it a low-risk choice to experiment with.
New to APIs? Read our beginner's guide