/v1/ideal
Solve PV = nRT
Live testen
10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.
Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.
API-Key holenCode-Snippets
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_..."}
)
Beispiel-Response
Echte Antwort dieses Endpoints, erfasst beim letzten 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
}