/v1/country
Totals for a country
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/disease-api/v1/country" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/disease-api/v1/country", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/disease-api/v1/country");
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/disease-api/v1/country",
headers={"x-oanor-key": "oanor_test_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"data": {
"country": {
"flag": "https://disease.sh/assets/img/flags/de.png",
"iso2": "DE",
"iso3": "DEU",
"cases": 38828995,
"tests": 122332384,
"active": 405368,
"deaths": 183027,
"country": "Germany",
"updated": 1780881454455,
"critical": 0,
"continent": "Europe",
"recovered": 38240600,
"population": 83883596,
"today_cases": 0,
"today_deaths": 0,
"today_recovered": 0,
"cases_per_million": 462891,
"tests_per_million": 1458359,
"deaths_per_million": 2182
}
},
"meta": {
"timestamp": "2026-06-08T01:19:56.788Z",
"request_id": "09b6a1e8-49d0-465c-9ece-8572d3354529"
},
"status": "ok",
"message": "Country retrieved successfully",
"success": true
}