Production-ready APIs for currency conversion, IBAN validation, and business day calculations. Built on Cloudflare Workers for sub-100ms global response times.
Real-time exchange rates for 170+ currencies. Convert amounts, retrieve historical rates, time series data, and fluctuation analysis.
| Name | Type | Description |
|---|---|---|
| from required | string | Source currency code (e.g., USD) |
| to required | string | Target currency code (e.g., EUR) |
| amount required | number | Amount to convert |
# Convert 100 USD to EUR
curl "https://aihowtoinvest.com/currency-api/v1/convert?from=USD&to=EUR&amount=100" \
-H "X-API-Key: YOUR_API_KEY"
// JavaScript
const res = await fetch(
'https://aihowtoinvest.com/currency-api/v1/convert?from=USD&to=EUR&amount=100',
{ headers: { 'X-API-Key': 'YOUR_API_KEY' } }
);
const data = await res.json();
console.log(data.data.result); // 92.15
# Python
import requests
r = requests.get(
'https://aihowtoinvest.com/currency-api/v1/convert',
params={'from': 'USD', 'to': 'EUR', 'amount': 100},
headers={'X-API-Key': 'YOUR_API_KEY'}
)
print(r.json()['data']['result'])
{
"success": true,
"data": {
"from": "USD",
"to": "EUR",
"amount": 100,
"rate": 0.9215,
"result": 92.15,
"timestamp": "2026-04-02T12:00:00Z"
}
}
| Name | Type | Description |
|---|---|---|
| base optional | string | Base currency code (default: USD) |
| symbols optional | string | Comma-separated target currencies (e.g., EUR,GBP,JPY) |
curl "https://aihowtoinvest.com/currency-api/v1/rates?base=USD&symbols=EUR,GBP,JPY" \
-H "X-API-Key: YOUR_API_KEY"
const res = await fetch(
'https://aihowtoinvest.com/currency-api/v1/rates?base=USD&symbols=EUR,GBP,JPY',
{ headers: { 'X-API-Key': 'YOUR_API_KEY' } }
);
const data = await res.json();
{
"success": true,
"data": {
"base": "USD",
"rates": {
"EUR": 0.9215,
"GBP": 0.7892,
"JPY": 149.85
},
"timestamp": "2026-04-02T12:00:00Z"
}
}
No authentication required. Returns all 170+ supported currency codes with names.
curl "https://aihowtoinvest.com/currency-api/v1/currencies"
| Name | Type | Description |
|---|---|---|
| date required | string | Date in YYYY-MM-DD format |
| base optional | string | Base currency (default: USD) |
| symbols optional | string | Comma-separated currencies |
curl "https://aihowtoinvest.com/currency-api/v1/historical?date=2026-01-15&base=USD&symbols=EUR,GBP" \
-H "X-API-Key: YOUR_API_KEY"
| Name | Type | Description |
|---|---|---|
| start_date required | string | Start date (YYYY-MM-DD) |
| end_date required | string | End date (YYYY-MM-DD) |
| base optional | string | Base currency (default: USD) |
| symbols optional | string | Comma-separated currencies |
curl "https://aihowtoinvest.com/currency-api/v1/timeseries?start_date=2026-03-01&end_date=2026-03-31&base=USD&symbols=EUR" \
-H "X-API-Key: YOUR_API_KEY"
| Name | Type | Description |
|---|---|---|
| start_date required | string | Start date (YYYY-MM-DD) |
| end_date required | string | End date (YYYY-MM-DD) |
| base optional | string | Base currency (default: USD) |
| symbols optional | string | Comma-separated currencies |
curl "https://aihowtoinvest.com/currency-api/v1/fluctuation?start_date=2026-03-01&end_date=2026-03-31&base=USD&symbols=EUR,GBP" \
-H "X-API-Key: YOUR_API_KEY"
Validate international bank account numbers, extract bank details, generate test IBANs, and look up BIC/SWIFT codes. Supports 80+ countries.
| Name | Type | Description |
|---|---|---|
| iban required | string | The IBAN to validate (spaces allowed) |
Authentication: X-API-Key header or ?apikey= query parameter
curl "https://aihowtoinvest.com/iban-validator/validate?iban=DE89370400440532013000" \
-H "X-API-Key: YOUR_API_KEY"
const res = await fetch(
'https://aihowtoinvest.com/iban-validator/validate?iban=DE89370400440532013000',
{ headers: { 'X-API-Key': 'YOUR_API_KEY' } }
);
const data = await res.json();
console.log(data.valid, data.country, data.bankCode);
import requests
r = requests.get(
'https://aihowtoinvest.com/iban-validator/validate',
params={'iban': 'DE89370400440532013000'},
headers={'X-API-Key': 'YOUR_API_KEY'}
)
print(r.json())
{
"valid": true,
"iban": "DE89370400440532013000",
"country": "Germany",
"countryCode": "DE",
"checkDigits": "89",
"bankCode": "37040044",
"accountNumber": "0532013000",
"length": 22,
"sepa": true
}
| Name | Type | Description |
|---|---|---|
| country required | string | ISO 3166-1 alpha-2 country code (e.g., DE, GB, FR) |
| bankCode optional | string | Specific bank code to use |
curl "https://aihowtoinvest.com/iban-validator/generate?country=DE" \
-H "X-API-Key: YOUR_API_KEY"
No authentication required. Returns all supported countries with IBAN format details.
curl "https://aihowtoinvest.com/iban-validator/countries"
| Name | Type | Description |
|---|---|---|
| iban required | string | The IBAN to look up |
curl "https://aihowtoinvest.com/iban-validator/bic?iban=DE89370400440532013000" \
-H "X-API-Key: YOUR_API_KEY"
Send a JSON body with an array of IBANs. Maximum 100 per request.
curl -X POST "https://aihowtoinvest.com/iban-validator/batch" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"ibans": ["DE89370400440532013000", "GB29NWBK60161331926819"]}'
Calculate business days between dates, check holidays, and add/subtract working days. Supports 20+ countries with public holiday calendars.
| Name | Type | Description |
|---|---|---|
| date required | string | Date in YYYY-MM-DD format |
| country optional | string | Country code (default: US) |
curl "https://aihowtoinvest.com/business-day-api/is-business-day?date=2026-12-25&country=US" \
-H "X-API-Key: YOUR_API_KEY"
const res = await fetch(
'https://aihowtoinvest.com/business-day-api/is-business-day?date=2026-12-25&country=US',
{ headers: { 'X-API-Key': 'YOUR_API_KEY' } }
);
const data = await res.json();
{
"date": "2026-12-25",
"country": "US",
"isBusinessDay": false,
"isWeekend": false,
"isHoliday": true,
"holidayName": "Christmas Day",
"dayOfWeek": "Friday"
}
| Name | Type | Description |
|---|---|---|
| date required | string | Start date (YYYY-MM-DD) |
| days required | integer | Number of business days to add (negative to subtract) |
| country optional | string | Country code (default: US) |
curl "https://aihowtoinvest.com/business-day-api/add?date=2026-04-01&days=10&country=US" \
-H "X-API-Key: YOUR_API_KEY"
| Name | Type | Description |
|---|---|---|
| start required | string | Start date (YYYY-MM-DD) |
| end required | string | End date (YYYY-MM-DD) |
| country optional | string | Country code (default: US) |
curl "https://aihowtoinvest.com/business-day-api/between?start=2026-01-01&end=2026-12-31&country=US" \
-H "X-API-Key: YOUR_API_KEY"
| Name | Type | Description |
|---|---|---|
| date required | string | Reference date (YYYY-MM-DD) |
| country optional | string | Country code (default: US) |
curl "https://aihowtoinvest.com/business-day-api/next-business-day?date=2026-12-24&country=US" \
-H "X-API-Key: YOUR_API_KEY"
| Name | Type | Description |
|---|---|---|
| year required | integer | Year (1970-2100) |
| country required | string | Country code (e.g., US, GB, DE) |
curl "https://aihowtoinvest.com/business-day-api/holidays?year=2026&country=US" \
-H "X-API-Key: YOUR_API_KEY"
No authentication required. Returns all supported countries with holiday counts.
curl "https://aihowtoinvest.com/business-day-api/countries"
All API endpoints require authentication via an API key. You can pass it in two ways:
X-API-Key: YOUR_API_KEY
?apikey=YOUR_API_KEY
Rate limits are enforced per API key. When you exceed your limit, the API returns a 429 Too Many Requests response with X-RateLimit-Remaining and X-RateLimit-Reset headers.
All errors return a consistent JSON format:
{
"error": "Description of what went wrong"
}
| Status | Description |
|---|---|
400 | Bad Request -- invalid parameters |
401 | Unauthorized -- missing or invalid API key |
429 | Too Many Requests -- rate limit exceeded |
500 | Internal Server Error |
Start free, scale as you grow. All plans include access to every API.
Start building with our financial APIs in minutes. Free tier requires no credit card.
A financial API (Application Programming Interface) is a REST-based web service that lets developers programmatically access financial data and calculations. Instead of building complex currency databases, IBAN validation logic, or holiday calendars from scratch, developers send HTTP requests to an API endpoint and receive structured JSON responses in milliseconds. Financial APIs power everything from fintech apps and banking platforms to e-commerce checkout flows and accounting software.
Currency conversion APIs are essential infrastructure for any application that handles international money. Common use cases include:
IBAN (International Bank Account Number) validation is a critical step in payment processing workflows. Validating IBANs before initiating wire transfers helps prevent failed transactions, reduces costly return fees, and protects against fraud. An IBAN validation API checks the format, length, country code, and check digits algorithmically, then extracts the bank code and account number for downstream processing. Batch validation endpoints allow payment platforms to verify hundreds of IBANs in a single request, essential for payroll processing and bulk disbursements.
Accurately calculating business days is essential for payroll systems, trade settlement (T+1/T+2 rules), SLA tracking, and delivery date estimation. A business day API accounts for weekends and country-specific public holidays so your application does not need to maintain its own holiday calendar. Use cases include calculating payment due dates, estimating settlement windows for securities trades, and scheduling recurring invoices on working days only.
Yes. The free plan includes 100 requests per day across all three APIs (Currency Converter, IBAN Validator, and Business Day Calculator) with no credit card required. This is sufficient for personal projects, prototyping, and low-traffic applications.
Exchange rates are updated multiple times per day from institutional-grade data sources. The timestamp field in each response indicates when the rate was last refreshed, so your application always knows how current the data is.
The IBAN Validator supports 80+ countries that use the IBAN standard, including all SEPA member states, the UK, Turkey, Saudi Arabia, and many more. The /countries endpoint returns the full list with format specifications for each country.
Yes. All endpoints support CORS, so you can call them directly from browser-based JavaScript applications. For production use, we recommend proxying requests through your backend to protect your API key.
All APIs are built on Cloudflare Workers and deployed to 300+ edge locations worldwide. Average response times are under 100ms globally, with most requests completing in 20-50ms from nearby regions.
The average American could save $5,000/year by optimizing their tax strategy. Try our tax calculator →
Paying an extra $100/month on your mortgage saves $30,000+ in interest over the life of the loan. Calculate your savings →
Starting to invest at 25 vs 35 can mean $500,000+ more at retirement thanks to compound interest. See the difference →
Refinancing student loans at a 2% lower rate saves $10,000–$20,000 over the loan term. Check your rate →
AI How To Invest provides 145+ free financial calculators and tools to help you make smarter money decisions. From mortgage and retirement planning to debt payoff strategies and investment analysis, our tools are designed to be fast, accurate, and easy to use.
Trusted by thousands of users for financial planning, tax optimization, and investment research.
© 2026 AIHowToInvest.com — 130+ Free Financial Tools