/v1/air-density
Moist-air density
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/hotairballoon-api/v1/air-density" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/hotairballoon-api/v1/air-density", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/hotairballoon-api/v1/air-density");
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/hotairballoon-api/v1/air-density",
headers={"x-oanor-key": "oanor_test_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"data": {
"note": "Air density ρ = (P − 0.378·Pv) ÷ (R·T), where Pv is the water-vapour pressure (relative humidity × the saturation pressure). Counter-intuitively, humid air is LESS dense than dry air at the same temperature and pressure, because a water molecule is lighter than the N₂/O₂ it replaces — so it slightly reduces a balloon's lift and an aircraft's performance. It falls with temperature and rises with pressure.",
"inputs": {
"temp_c": 15,
"pressure_pa": 101325,
"relative_humidity_pct": 50
},
"air_density_kg_m3": 1.2211,
"dry_air_density_kg_m3": 1.225
},
"meta": {
"timestamp": "2026-06-07T08:18:01.266Z",
"request_id": "254bad0f-b3a7-43a1-a24e-e2d5bbb83ec3"
},
"status": "ok",
"message": "Air density",
"success": true
}