Currency Exchange Rate API
Professional REST API for real-time and historical currency exchange rates. Access forex data for 80+ currencies with 99.95% uptime guarantee.
Real-Time Data
Exchange rates updated every 60 seconds from multiple data sources
Free Tier Available
Start with 1,000 free API requests per month, no credit card required
Enterprise Ready
SLA guarantee, dedicated support, and unlimited requests for businesses
API Endpoints
/latest
Get real-time exchange rates for all or specific currencies
Parameters:
Name | Type | Required | Description |
---|---|---|---|
apikey | string | Yes | Your API key |
base | string | No | Base currency (default: USD) |
symbols | string | No | Comma-separated currency codes |
/convert
Convert amount from one currency to another
Parameters:
Name | Type | Required | Description |
---|---|---|---|
apikey | string | Yes | Your API key |
from | string | Yes | Source currency code |
to | string | Yes | Target currency code |
amount | number | Yes | Amount to convert |
/historical
Get historical exchange rates for a specific date
Parameters:
Name | Type | Required | Description |
---|---|---|---|
apikey | string | Yes | Your API key |
date | string | Yes | Date in YYYY-MM-DD format |
base | string | No | Base currency (default: USD) |
symbols | string | No | Comma-separated currency codes |
/timeseries
Get time series data for a date range
Parameters:
Name | Type | Required | Description |
---|---|---|---|
apikey | string | Yes | Your API key |
start_date | string | Yes | Start date (YYYY-MM-DD) |
end_date | string | Yes | End date (YYYY-MM-DD) |
base | string | No | Base currency (default: USD) |
symbols | string | No | Comma-separated currency codes |
/fluctuation
Get currency fluctuation data over a period
Parameters:
Name | Type | Required | Description |
---|---|---|---|
apikey | string | Yes | Your API key |
start_date | string | Yes | Start date (YYYY-MM-DD) |
end_date | string | Yes | End date (YYYY-MM-DD) |
base | string | Yes | Base currency |
Integration Examples
// JavaScript/Node.js Example
const axios = require('axios');
const API_KEY = 'your_api_key_here';
const BASE_URL = 'https://api.globalcurrencyrates.com/v1';
// Get latest exchange rates
async function getLatestRates(baseCurrency = 'USD') {
try {
const response = await axios.get(`${BASE_URL}/latest`, {
params: {
apikey: API_KEY,
base: baseCurrency
}
});
return response.data;
} catch (error) {
console.error('Error fetching rates:', error);
}
}
// Convert currency
async function convertCurrency(from, to, amount) {
try {
const response = await axios.get(`${BASE_URL}/convert`, {
params: {
apikey: API_KEY,
from: from,
to: to,
amount: amount
}
});
return response.data;
} catch (error) {
console.error('Error converting currency:', error);
}
}
Response Format
Successful Response
{
"success": true,
"timestamp": 1705334400,
"base": "USD",
"date": "2024-01-15",
"rates": {
"EUR": 0.9234,
"GBP": 0.7891,
"JPY": 148.25,
"AUD": 1.5234,
"CAD": 1.3456,
"CHF": 0.8765,
// ... more currencies
}
}
Error Response
{
"success": false,
"error": {
"code": 401,
"type": "invalid_api_key",
"info": "Your API key is invalid or has been deactivated."
}
}
Why Choose Our Currency API?
Lightning Fast
Average response time under 100ms with global CDN distribution
99.95% Uptime
Enterprise-grade reliability with redundant infrastructure
80+ Currencies
Comprehensive coverage of global currencies and crypto
Real-Time Updates
Exchange rates updated every 60 seconds from multiple sources
Historical Data
20+ years of historical exchange rate data available
Free Tier
Start free with 1,000 API requests per month
Ready to Get Started?
Join thousands of developers using our currency API. Get your free API key in seconds and start building.