{"currency":"USD","date":"2026-07-09","buy":5.1323,"sell":5.1329,"source":"Banco Central do Brasil (PTAX fechamento)"}
curl --location --request GET 'https://zylalabs.com/api/13140/official+exchange+rates+api/26654/latest+rate?currency=USD' --header 'Authorization: Bearer YOUR_API_KEY'
注册后,每个开发者都会被分配一个个人 API 访问密钥,这是一个唯一的字母和数字组合,用于访问我们的 API 端点。要使用 Official Exchange Rates API 进行身份验证,只需在 Authorization 标头中包含您的 bearer token。
| 标头 | 描述 |
|---|---|
授权
|
必需
应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。
|
无长期承诺。随时升级、降级或取消。 免费试用包括最多 50 个请求。
(年度计费可节省 2 个月 🎉)
Get official closing exchange rates published by the central bank for major world currencies. Retrieve the most recent rate or the rate for any historical date. A reliable source for finance, accounting, invoicing and reporting, returned as clean structured data.
The Latest Rate endpoint returns the official closing exchange rate for a specified currency, including the buy and sell rates, along with the reference date and the source of the data.
The key fields in the response data include "currency" (the currency code), "date" (the reference date), "buy" (buy rate), "sell" (sell rate), and "source" (the data source).
The response data is structured in JSON format, with key-value pairs representing the currency, date, buy and sell rates, and source, making it easy to parse and utilize in applications.
The Latest Rate endpoint provides information on the latest official exchange rates for major currencies, including both buy and sell rates, which are essential for financial transactions and reporting.
The Latest Rate endpoint accepts a three-letter currency code (e.g., "USD", "EUR") as a parameter to specify which currency's exchange rate you want to retrieve.
Data accuracy is maintained by sourcing rates directly from the central bank, ensuring that the information is reliable and up-to-date, with regular updates reflecting official rates.
Typical use cases include financial reporting, accounting, invoicing, and currency conversion, where accurate and timely exchange rates are crucial for business operations.
Users can utilize the returned data by integrating it into financial applications, performing currency conversions, or analyzing trends in exchange rates over time based on the provided buy and sell rates.