Vai al contenuto
GET /v1/ideal

Solve PV = nRT

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/gaslaw-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

curl "https://api.oanor.com/gaslaw-api/v1/ideal" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/gaslaw-api/v1/ideal", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/gaslaw-api/v1/ideal");
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/ideal",
    headers={"x-oanor-key": "oanor_test_..."}
)

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

{
    "data": {
        "note": "PV = nRT, R = 8.314462618 J/(mol·K). Provide three quantities; the fourth is returned in several units.",
        "input": {
            "moles": 1,
            "volume_m3": null,
            "pressure_pa": 101325,
            "temperature_k": 273.15
        },
        "volume": {
            "m3": 0.02241397,
            "ml": 22413.97,
            "ft3": 0.79154186,
            "litres": 22.41397
        },
        "variable": "volume",
        "solved_for": "volume"
    },
    "meta": {
        "timestamp": "2026-06-04T01:59:13.356Z",
        "request_id": "636326db-4d06-4a2a-b2cf-c4dcd8099562"
    },
    "status": "ok",
    "message": "Ideal gas law",
    "success": true
}