Fixer
汇率和货币转换
- 认证方式
- API Key
- HTTPS
- No
- CORS
- Unknown
- 分类
- 汇率
简介
Fixer(APILayer 产品)是最老牌的汇率 API 之一——170+ 币种汇率、每日更新,付费档有历史数据和换算。认证是免费 API 密钥。
注(2026-08 实测):无效密钥返回 HTTP 200 且 body 里
"success": false(APILayer 风格——请检查 JSON 的success字段,而不是 HTTP 状态码)。
快速开始
最新汇率(替换 YOUR_KEY):
curl "https://data.fixer.io/api/latest?access_key=YOUR_KEY&symbols=USD,CNY"
{
"success": true,
"timestamp": 1724300000,
"base": "EUR",
"rates": { "USD": 1.08, "CNY": 7.8 }
}
历史数据:
curl "https://data.fixer.io/api/2024-01-01?access_key=YOUR_KEY"
认证方式
- 在 fixer.io 注册 → 免费 API 密钥(邮件发送)。
- 通过
access_key查询参数携带。 - 无效密钥返回 200 +
"success": false(已实测)——始终检查success字段。
速率限制与注意事项
- 免费层:100 次请求/月(仅 EUR 基准)——额度小;付费档可扩展。
- 免费层基准货币是 EUR;
symbols=精简响应。 - 历史数据和其他基准货币需要付费。
- 响应含
timestamp和rates映射。
常见问题
Fixer 免费吗? 免费层:100 次/月;更多需要付费。
为什么无效密钥返回 200?
APILayer API 在 body 里返回 "success": false 而不是 4xx——请检查 JSON。
免费基准货币是什么? EUR——其他基准需要付费。
汇率 分类更多
| 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 | ↗ |