{"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'
Después de registrarte, a cada desarrollador se le asigna una clave de acceso a la API personal, una combinación única de letras y dígitos proporcionada para acceder a nuestro endpoint de la API. Para autenticarte con el Official Exchange Rates API simplemente incluye tu token de portador en el encabezado de Autorización.
| Encabezado | Descripción |
|---|---|
Autorización
|
Requerido
Debería ser Bearer access_key. Consulta "Tu Clave de Acceso a la API" arriba cuando estés suscrito.
|
Sin compromiso a largo plazo. Mejora, reduce o cancela en cualquier momento. La Prueba Gratuita incluye hasta 50 solicitudes.
(Ahorra 2 meses pagando anualmente 🎉)
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.