List all BCRA variables (start here)
Retrieves all available BCRA variable IDs with descriptions. Start with this endpoint to discover variable IDs for other endpoints. Common IDs: 1=international reserves, 4=retail exchange rate, 5=wholesale rate, 30=CER, 31=UVA. Full reference: https://api.bcra.gob.ar/estadisticas/v4.0/Monetarias
GET
/v1/market-data/bcra/variablesRequest
Headers
| Field | Type | Required | Description |
|---|---|---|---|
Authorization | string | Yes | Access token in Bearer ACCESS_TOKEN format |
Not applicable: Path Parameters, Query Parameters, Body.
Response
2XX Success
Status: 200 — List of BCRA variables
Returns an array of objects with these fields:
| Field | Type | Description |
|---|---|---|
id | integer | BCRA variable ID, used as {id} in /bcra/variable/{id} |
descripcion | string | Human-readable description of the variable |
Error Codes
| Status | Description |
|---|---|
401 | Missing or invalid authentication |
403 | Caller lacks the required role |
500 | Unexpected server error |
Code Example
- cURL
- JavaScript
- Python
- Node.js
curl -X GET "https://b2b.allaria.dev/v1/market-data/bcra/variables" \
-H "Authorization: Bearer ACCESS_TOKEN"
const response = await fetch('https://b2b.allaria.dev/v1/market-data/bcra/variables', {
method: 'GET',
headers: { 'Authorization': 'Bearer ACCESS_TOKEN' },
});
const data = await response.json();
console.log(data);
import requests
response = requests.get(
'https://b2b.allaria.dev/v1/market-data/bcra/variables',
headers={ 'Authorization': 'Bearer ACCESS_TOKEN' },
)
print(response.json())
const axios = require('axios');
const response = await axios.get('https://b2b.allaria.dev/v1/market-data/bcra/variables', {
headers: { 'Authorization': 'Bearer ACCESS_TOKEN' },
});
console.log(response.data);
2XX Success
[
{
"id": 4,
"descripcion": "Tipo de Cambio Minorista ($ por USD)"
}
]