Exchangeratesapi.io
汇率与货币换算
- 认证方式
- API Key
- HTTPS
- Yes
- CORS
- Yes
- 分类
- 汇率
简介
Exchangeratesapi.io 提供汇率(ECB 数据源)、转换和时间序列。认证是 API 密钥(无效密钥返回 401,已实测)。
快速开始
最新汇率(替换 YOUR_KEY):
curl "https://api.exchangeratesapi.io/v1/latest?access_key=YOUR_KEY"
{
"success": true,
"timestamp": 1787448092,
"base": "EUR",
"date": "2026-08-22",
"rates": { "USD": 1.084, "GBP": 0.854, "JPY": 162.5 }
}
转换:
curl "https://api.exchangeratesapi.io/v1/convert?access_key=YOUR_KEY&from=USD&to=EUR&amount=100"
认证方式
- 在 exchangeratesapi.io 注册 → 免费 API 密钥。
- 通过
access_key查询参数携带(无效 → 401,已实测)。
速率限制与注意事项
- 免费层:100 次/月(以文档为准);付费档可扩展。
- 免费层:基准货币仅 EUR;付费解锁自定义基准。
- 端点:
/v1/latest、/v1/convert、/v1/timeseries、/v1/{日期}。
常见问题
Exchangeratesapi.io 免费吗? 免费层:100 次/月;更多需要付费。
基准货币是什么? 免费层是 EUR。
认证风格是什么?
access_key 查询参数(已实测)。
汇率 分类更多
| API | Auth | HTTPS | CORS | |
|---|---|---|---|---|
| 1Forge Forex currency market data | API Key | Yes | Unknown | ↗ |
| Amdoren Free currency API with over 150 currencies | API Key | Yes | Unknown | ↗ |
| Bank of Russia Exchange rates and currency conversion | No auth | Yes | Unknown | ↗ |
| Currency-api Free Currency Exchange Rates API with 150+ Currencies & No Rate Limits | No auth | Yes | Yes | ↗ |
| CurrencyFreaks Provides current and historical currency exchange rates with free plan 1K requests/month | API Key | Yes | Yes | ↗ |