目录收录
National Bank of Poland API
A collection of currency exchange rates (data in XML and JSON). National Bank of Poland API 提供波兰国家银行的官方汇率数据,支持表格汇率(A/B/C表)和单一货币查询。数据权威,更新及时。
免费 API
目录收录
无需认证
CORS: Yes
- 来源类型
- 目录收录
- 可用方式
- 免费可用
- 认证方式
- 无需认证
- 协议格式
- REST
- 计费摘要
- 免费为主
- 稳定性说明
- 以来源方说明为准
面向 Agent
如何调用 National Bank of Poland API
供 Hermes、OpenClaw、浏览器自动化 Agent 等读取。优先解析 <head> 内 #boyapi-agent-spec JSON。
Hermes
OpenClaw
Coding Agent
Browser Agent
-
1. 确认调用目标
业务请求发往
https://api.nbp.pl/api,不要向boyapi.com发送 National Bank of Poland 业务 API。 -
2. 构造 HTTP 请求
- 方法:
GET - 路径:
/exchangerates/rates/{table}/{code}/ - 必填:
code - 鉴权:无需 API Key
- 方法:
-
3. 最小可执行示例
复制以下 cURL 试调:
curl -sS 'https://api.nbp.pl/api/exchangerates/rates/a/usd/' -
4. 解析响应
解析返回的 JSON 数据,包含 table、no、effectiveDate 和 rates 数组。rates 包含 currency、code、mid(中间价)等字段。
-
5. 环境与限制
CORS:
Yes。浏览器联调以实际结果为准。
机器可读规范(JSON)
application/json · #boyapi-agent-spec
{
"spec_version": "1.0",
"page_type": "boyapi_api_detail",
"api": {
"slug": "national-bank-of-poland",
"name": "National Bank of Poland"
},
"invocation": {
"method": "GET",
"base_url": "https://api.nbp.pl/api",
"path": "/exchangerates/rates/{table}/{code}/",
"full_url_example": "https://api.nbp.pl/api/exchangerates/rates/a/usd/"
}
}
完整字段以 <head> 中 #boyapi-agent-spec 为准。
Agent 注意:boyapi.com 仅提供目录与文档,不提供第三方 API 代理网关。
接入信息
可用方式
- 目录定位
- 免费目录收录(public-apis)
- 认证要求
- 无需认证(auth=No)
- HTTPS
- 支持(https=Yes)
- CORS
- Yes — 可在浏览器前端直接调用
- 接口名称
- National Bank of Poland
- 典型端点
- GET /exchangerates/rates/{table}/{code}/
- 功能描述
- A collection of currency exchange rates (data in XML and JSON)
平台支持
- 目录收录 API,实际请求发往 https://api.nbp.pl
- CORS 支持 Yes,浏览器可直接调用
- 无需认证,完全免费
- 数据更新频率:工作日每日