Find an API

Search public APIs with auth details & Postman guides

← All APIs

ExchangeRate-API

v6.exchangerate-api.com · Finance

Finance API Key Free Tier Currency Finance Exchange Rates

Real-time and historical currency exchange rates for 160+ currencies. Free tier: 1,500 requests/month, no credit card required.

Authentication

API Key Free API key at exchangerate-api.com. No credit card needed. Pass in the URL path.

Sample Requests

GET Get exchange rates

Get all exchange rates relative to USD.

https://v6.exchangerate-api.com/v6/YOUR_API_KEY/latest/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));
GET Convert currency

Convert 100 USD to GBP.

https://v6.exchangerate-api.com/v6/YOUR_API_KEY/pair/USD/GBP/100

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 Postman ↗
  1. Get a free API key at exchangerate-api.com (no credit card)
  2. Key goes in the URL: /v6/YOUR_KEY/latest/USD
  3. Try GET https://v6.exchangerate-api.com/v6/YOUR_KEY/latest/EUR
  4. Convert: GET /v6/YOUR_KEY/pair/USD/JPY/250 to convert 250 USD to JPY

Open documentation ↗