Frankfurter
汇率、货币换算和时间序列
- 认证方式
- No auth
- HTTPS
- Yes
- CORS
- Yes
- 分类
- 汇率
- 文档 / URL
- https://www.frankfurter.app/docs
简介
Frankfurter 是免费开源的货币 API,跟踪**欧洲央行(ECB)**每日发布的参考汇率——30+ 种货币,无需 API 密钥、无需注册、合理使用下无限流。非常适合价格展示、发票工具和多币种小组件。
⚠️ 域名迁移(2026-08 实测):API 现在位于
api.frankfurter.dev/v1——旧域名api.frankfurter.app会 301 重定向到新域名。请更新你的端点。
快速开始
最新 USD→EUR 汇率(新域名实测可用):
curl "https://api.frankfurter.dev/v1/latest?from=USD&to=EUR"
{"amount": 1.0, "base": "USD", "date": "2026-08-21", "rates": {"EUR": 0.85477}}
某基础货币的全部汇率:
curl "https://api.frankfurter.dev/v1/latest?from=USD"
指定日期的历史汇率:
curl "https://api.frankfurter.dev/v1/2024-01-15?from=USD&to=EUR"
两个日期之间的汇率区间:
curl "https://api.frankfurter.dev/v1/2024-01-01..2024-01-31?from=USD&to=EUR"
支持的货币列表:
curl "https://api.frankfurter.dev/v1/currencies"
认证方式
无需认证——免密钥、免注册。
速率限制与注意事项
- 合理使用下免费;没有文档化的硬性限制(请尊重服务——它由志愿者开放运营)。
- 数据是 ECB 的每日参考汇率(在 ECB 工作日发布)。
- 响应中的
amount支持一次调用完成换算:?amount=100&from=USD&to=EUR。 - 旧域名(
api.frankfurter.app)仍会响应但已重定向——切换到.dev避免多余跳转。
常见问题
Frankfurter 免费吗? 是的——免费、免密钥、免注册。
数据来自哪里? 欧洲央行的每日参考汇率。
域名发生了什么变化?
API 从 api.frankfurter.app 迁移到 api.frankfurter.dev/v1——旧域名会 301 重定向。
汇率 分类更多
| 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 | ↗ |