/v1/inflation
Latest CPI and PPI prints
Pruébalo en vivo
10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.
Funciona. Consigue una clave API y úsala en tu proyecto.
Obtener una clave APIFragmentos de código
curl "https://api.oanor.com/sarb-api/v1/inflation" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/sarb-api/v1/inflation", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/sarb-api/v1/inflation");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/sarb-api/v1/inflation",
headers={"x-oanor-key": "oanor_test_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"data": {
"bank": "South African Reserve Bank",
"count": 2,
"source": "SARB",
"country": "ZA",
"inflation": [
{
"code": "CPI1000F",
"date": "2026-04-30",
"name": "CPI",
"trend": "up",
"value": 4,
"section": "Inflation rates"
},
{
"code": "PPI1000F",
"date": "2026-04-30",
"name": "PPI",
"trend": "up",
"value": 4.7712,
"section": "Inflation rates"
}
]
},
"meta": {
"timestamp": "2026-06-11T16:46:58.814Z",
"request_id": "7419866f-eaef-4a3a-8594-a7788391a316"
},
"status": "ok",
"message": "Inflation retrieved successfully",
"success": true
}