Get Current Rates
Endpoints
Get Current Rates
Retrieve today’s exchange rates from all available banks
GET
Get Current Rates
Documentation Index
Fetch the complete documentation index at: https://mintlify.com/MiguelNavas19/miapibcv/llms.txt
Use this file to discover all available pages before exploring further.
Endpoint
Parameters
This endpoint does not accept any parameters.Response
Status message indicating the result of the query. Returns
"Consulta exitosa" on success.Exchange rate data from Banco Central de Venezuela.
Exchange rate data from Banplus Banco Universal.
Exchange rate data from Banco Nacional de Crédito.
Exchange rate data from Banco de Venezuela.
Caching
This endpoint caches results for 1 hour (3600 seconds) based on the current date. The cache key format is:
tasas_bancos_YYYY-MM-DDExample Request
Example Response
Error Cases
The API returns the error from ScraperController.php:30:Response Status Codes
| Status Code | Description |
|---|---|
| 200 | Success - Returns exchange rates for all available banks |
| 404 | Not Found - No rates available for today |
Implementation Details
The endpoint is implemented inapp/Http/Controllers/Api/ScraperController.php:15-40 and:
- Generates a unique cache key based on today’s date
- Queries the database for records where
date = today - Groups results by
source(bank identifier) - Returns all bank rates in a single response
- Caches the result for 1 hour
Next Steps
Get Historical Rates
Query rates for specific dates
Error Handling
Learn how to handle API errors