Naar de inhoud
GET /v1/meta

Spec

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/gaslaw-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

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_..."}
)

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "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
}