freeapis

ExchangeRate-API

免费货币转换

认证方式
API Key
HTTPS
Yes
CORS
Yes
分类
汇率
数据来源
public-apis + marcelscruz

简介

ExchangeRate-API 通过简单的 REST 接口提供 160+ 种货币的汇率,每日更新。它是价格展示、电商结算和多币种面板的可靠选择,免费层对业余项目足够宽裕。

快速开始

获取某基础货币的最新汇率(替换 YOUR_API_KEY):

curl "https://v6.exchangerate-api.com/v6/YOUR_API_KEY/latest/USD"

支持的货币列表:

curl "https://v6.exchangerate-api.com/v6/YOUR_API_KEY/codes"

历史汇率(付费档):

curl "https://v6.exchangerate-api.com/v6/YOUR_API_KEY/history/USD/2024/1/15"

货币对换算(付费档):

curl "https://v6.exchangerate-api.com/v6/YOUR_API_KEY/pair/EUR/GBP/10"

认证方式

  • 在 exchangerate-api.com 免费注册——密钥会发送到你的邮箱。
  • 放在 URL 路径中:/v6/{API_KEY}/...。
  • 免费层按天限流;响应中包含剩余配额。

速率限制与注意事项

  • 免费层:约 1,500 次请求/月——轻量应用够用;更大量需要付费档。
  • 汇率每天更新一次(UTC)——不需要频繁轮询。
  • 数据来自多家银行/权威机构聚合(官网列出数据源)。
  • 支持 160+ 种货币;付费档含加密货币对。

常见问题

ExchangeRate-API 免费吗? 有免费层(约 1,500 次请求/月);更高配额和历史/货币对接口需要付费。

如何获取 API 密钥? 在官网注册——密钥通过邮件发送。

汇率多久更新一次? 每日(UTC)。

汇率 分类更多

APIAuthHTTPSCORS
1Forge

Forex currency market data

API KeyYesUnknown↗
AllRatesToday

Real-time exchange rates for 160+ currencies with historical data

API KeyYesUnknown↗
Amdoren

Free currency API with over 150 currencies

API KeyYesUnknown↗
ApogeoAPI

Live exchange rates for 161 currencies bundled with country reference data and IP geolocation

API KeyYesUnknown↗
Bank of Russia

Exchange rates and currency conversion

No authYesUnknown↗