Currency-api API
Overview
Currency-api is a free, open-source currency exchange rates API hosted on GitHub with no rate limits, no authentication, and support for 150+ currencies. Data is provided as static JSON files updated daily, making it extremely reliable and fast for read-only use cases. It is an excellent choice for hobby projects, student projects, or any application that does not need sub-daily rate updates.
Beginner Tip
No API key or sign-up is needed. Fetch rates by calling the jsDelivr CDN URL, for example: https://cdn.jsdelivr.net/npm/@fawazahmed0/currency-api@latest/v1/currencies/usd.json. Replace usd with any three-letter currency code in lowercase.
Available Data
Example Response
{
"base": "USD",
"date": "2025-01-15",
"rates": {
"EUR": 0.92,
"GBP": 0.79,
"JPY": 149.5,
"CAD": 1.35
}
} Field Reference
date The date the exchange rates were collected. usd Key-value pairs where each key is a target currency code (lowercase) and the value is the exchange rate relative to USD. usd.eur Example: the number of EUR equal to 1 USD at the time of the last update. Implementation Example
const url = "https://github.com/fawazahmed0/currency-api";
const response = await fetch(url);
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data); What Can You Build?
Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.
Common Errors & Troubleshooting
Matrix Score Breakdown
Fully tested on Apr 5, 2026
Technical Specifications
Related Tags
Alternatives to Currency-api
Technical alternatives for different use cases.
Open-source currency API with daily updates
Real-time rate updates for trading platforms
Open-source projects needing free currency data
Similar APIs
View All →Bank of Russia
The Bank of Russia XML API provides official daily exchange rates for foreign currencies against the Russian Ruble, published by the Central Bank of the Russian Federation.
Czech National Bank
The Czech National Bank (CNB) publishes official daily exchange rates for 30+ currencies against the Czech Koruna (CZK) as a plain XML file.
Economia.Awesome
⭐ Beginner's PickEconomia.Awesome is a free Brazilian API that provides real-time and historical currency exchange rates for dozens of currency pairs, including BRL (Brazilian Real) against USD, EUR, BTC, and more.
Exchangerate.host
⭐ Beginner's PickExchangerate.host provides free foreign exchange and cryptocurrency rates via a simple REST API, covering 170+ currencies and major crypto assets.
Frankfurter
⭐ Beginner's PickFrankfurter is an open-source currency data API backed by the European Central Bank (ECB) exchange rate dataset, providing rates for 33 major currencies updated every weekday.