Node.js Exchange Rates API
Node.js Currency API
Get Live Exchange Rates in Node.js. Easy integration, comprehensive documentation, and reliable exchange rate data for your JavaScript applications.
No card required. Free plan is 500 requests/month
const axios = require("axios");
const url = "https://currencyapi.net/api/v1/rates";
const params = {
key: "YOUR_API_KEY",
base: "USD",
output: "JSON"
};
axios.get(url, { params })
.then(response => {
console.log(response.data);
})
.catch(error => {
console.error(error);
});Trusted by Node.js developers worldwide
Join thousands of developers who rely on our Currency API for their Node.js applications, with low latency JSON responses, dependable uptime, and reliable data sources.
Our API powers Node.js applications across industries—from serverless functions to enterprise web applications. Built for modern JavaScript, trusted by developers.
50M+ Requests Every Month
Built to handle high traffic smoothly and reliably.
10,000+ Happy Customers
Chosen by developers, startups, and growing teams.
Supporting Devs Since 2019
A proven platform you can count on long-term.
~50ms Average Latency
Fast responses for real-time Node.js apps and APIs.
Our Pricing Plans
Get started with our Node.js Exchange Rates API for free. Perfect for JavaScript developers building personal projects or testing. Upgrade to paid plans for production Node.js applications with higher limits, faster updates, and commercial usage rights.
Free
Perfect for personal projects
- 500 monthly requests
- Hourly updates
- Fetch currency rates in Node.js
- Rate limits (10 req/min)
- Commercial use
- Technical support
- Change base currency
Commercial
Built for production applications
- Up to 10M+ monthly requests
- Updates as fast as 60 seconds
- Historical rates back to 2000
- Official Node.js SDK included
- Convert endpoint for Node.js
- Commercial use allowed
- Technical email support
- Team management
- Multiple API keys
- IP whitelisting/blacklisting
How Our Node.js Currency API Works
Sign Up
Sign up for a free account to get started with our API. Paid plans start at just $9.99/month.
Get Your API Key
After signing up, you'll receive an API key. Use this key to authenticate requests to our API endpoints.
Integrate the API
Use our Node.js SDK (npm install currencyapi-node) or code samples with axios or fetch to quickly integrate.
Getting Started: Node.js Integration
Implement our Node.js Currency API in your application using either axios/fetch or our official Node.js SDK. Both approaches are fully supported and documented.
const axios = require("axios");
const url = "https://currencyapi.net/api/v1/rates";
const params = {
key: "YOUR_API_KEY",
base: "USD",
output: "JSON"
};
axios.get(url, { params })
.then(response => {
console.log(response.data);
})
.catch(error => {
console.error(error);
});Using Our Node.js SDK
Our Official Node.js SDK (currencyapi-node) provides a clean, promise-based interface with async/await support, error handling, and a fluent API.
Install with npm install currencyapi-node and enjoy a more intuitive development experience. Perfect for Express, Next.js, NestJS, and any Node.js application.
import CurrencyApi from './src/CurrencyApi.js';
const currency = new CurrencyApi('YOUR_API_KEY');
(async () => {
try {
const result = await currency
.rates()
.base('USD')
.output('JSON')
.get();
console.log(result);
} catch (error) {
console.error(error);
}
})();AI Assisted Node.js Integration
Integrate our Exchange Rates API effortlessly with AI assistants. We provide a simple llms.txt file that contains all the information about our API in a format optimized for AI assistants and Large Language Models.
AI assistants like ChatGPT, Claude, Cursor, Windsurf, and others can quickly understand our API capabilities and help you integrate Currency API more efficiently into your Node.js applications.
Simply reference our llms.txt file and let AI assistants guide you through Node.js integration, code examples, and best practices. More information can be found on our LLM Documentation page.
What Node.js Developers Build With Our API
See how Node.js developers use our Currency API endpoints to power their applications. From real-time rates to historical analysis, discover the possibilities.
const axios = require("axios");
const url = "https://currencyapi.net/api/v1/rates";
const params = {
key: "YOUR_API_KEY",
base: "USD",
output: "JSON"
};
axios.get(url, { params })
.then(response => {
console.log(response.data);
})
.catch(error => {
console.error(error);
});Live Exchange Rates
Fetch real-time exchange rates for 152+ currencies in a single API call. Perfect for building currency converters, e-commerce pricing engines, and financial dashboards.
Node.js developers use this endpoint to power real-time currency displays, update product prices dynamically, and build trading applications that need current market rates.
Currency Conversion
Convert a currency from one to another with a single API request. Ideal for checkout flows, invoice generation, and payment processing systems.
Node.js developers integrate this endpoint into Express and Next.js applications to handle multi-currency transactions, calculate shipping costs in different currencies, and build international payment gateways.
const axios = require("axios");
const url = "https://currencyapi.net/api/v1/convert";
const params = {
key: "YOUR_API_KEY",
from: "GBP",
to: "USD",
amount: 100,
output: "JSON"
};
axios.get(url, { params })
.then(response => {
console.log(response.data);
})
.catch(error => {
console.error(error);
});const axios = require("axios");
const url = "https://currencyapi.net/api/v1/history";
const params = {
key: "YOUR_API_KEY",
date: "2020-01-01",
base: "USD",
output: "JSON"
};
axios.get(url, { params })
.then(response => {
console.log(response.data);
})
.catch(error => {
console.error(error);
});Historical Exchange Rates
Access Historical Exchange Rates for a specific date going back to the year 2000. Essential for financial reporting, backtesting trading strategies, and analyzing currency trends over time.
Node.js developers use historical data to build various graphs, analytics dashboards, generate financial reports, perform currency trend analysis, and create data visualizations for business intelligence tools.
Timeframe Analysis
The Timeframe Endpoint allows you to retrieve rates for multiple historical dates in one request. Perfect for analyzing currency movements over weeks, months, or years.
Node.js developers leverage timeframe data to build portfolio tracking tools, create currency performance reports, analyze seasonal trends, and power financial forecasting models in data science applications.
const axios = require("axios");
const url = "https://currencyapi.net/api/v1/timeframe";
const params = {
key: "YOUR_API_KEY",
start_date: "2017-12-25",
end_date: "2018-01-10",
base: "USD",
output: "JSON"
};
axios.get(url, { params })
.then(response => {
console.log(response.data);
})
.catch(error => {
console.error(error);
});Powerful Dashboard for Node.js Developers
Manage your Node.js API usage, monitor performance, and access powerful analytics through our intuitive dashboard. Everything you need to optimize your Node.js currency data integration.

Dashboard Features
FAQs
Questions about using our API with Node.js? Below are some of our most asked questions or feel free to get in touch.
How do I install the Node.js SDK?
Install our Node.js SDK using npm: npm install currencyapi-node. The SDK is available on NPM and supports Node.js 12 and higher.
Once installed, import it with: import CurrencyApi from "currencyapi-node" or const CurrencyApi = require("currencyapi-node"). Then create an instance with your API key to start making requests.
Do I need to use the SDK, or can I use axios/fetch directly?
You can use either approach! The SDK provides a cleaner, more intuitive interface with built-in error handling and promise-based methods.
If you prefer, you can use axios, fetch, or any HTTP client library directly with our REST API. Both approaches are fully supported and documented.
Does the Node.js SDK support async/await?
Yes, the Node.js SDK is fully promise-based and supports async/await syntax.
If you want to find out more, checkout out the code in the Node.js SDK GitHub repository.
Can I use this with Express, Next.js, or NestJS?
Absolutely! Our Node.js Currency API works seamlessly with Express, Next.js, NestJS, Fastify, and any Node.js web framework.
You can integrate it into routes, create middleware, or use it in background jobs. Check our Node.js SDK Documentation for framework-specific examples.
What Node.js versions are supported?
Our Node.js SDK supports Node.js 12 and higher. For direct API calls using axios or fetch, any Node.js version that supports these libraries will work.
We recommend Node.js 16+ for the best experience and latest JavaScript features like optional chaining and nullish coalescing.
How do I handle errors in Node.js?
Use JavaScript's try/catch blocks or promise catch handlers. The SDK throws errors for API errors, network issues, and invalid requests.
Wrap your API calls: try { const result = await currency.rates().get(); } catch (error) { console.error(error); }. See our Error Handling Documentation for detailed examples.