/v1/meta
Spec
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/gaslaw-api/v1/meta" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/gaslaw-api/v1/meta", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/gaslaw-api/v1/meta");
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/gaslaw-api/v1/meta",
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": "Computed in SI internally (Pa, m³, K, mol). R = 8.314462618 J/(mol·K).",
"units": {
"volume": [
"m3",
"l",
"liter",
"litre",
"ml",
"cm3",
"ft3",
"gal"
],
"pressure": [
"pa",
"kpa",
"mpa",
"bar",
"mbar",
"atm",
"psi",
"mmhg",
"torr",
"inhg"
],
"temperature": [
"K",
"C",
"F"
]
},
"service": "gaslaw",
"endpoints": {
"/v1/ideal": "Solve PV = nRT for the missing one of pressure, volume, moles or temperature.",
"/v1/density": "Ideal-gas density from pressure, temperature and molar mass.",
"/v1/combined": "Combined gas law P₁V₁/T₁ = P₂V₂/T₂: solve a second-state variable."
},
"description": "Ideal-gas-law maths: PV = nRT (solve any variable), the combined gas law, and gas density.",
"constant_R_j_per_mol_k": 8.314462618
},
"meta": {
"timestamp": "2026-06-04T01:59:13.456Z",
"request_id": "8969aa7d-c145-4ea3-b72b-e647d2c70f7a"
},
"status": "ok",
"message": "Meta",
"success": true
}