/v1/ideal
Solve PV = nRT
Try it live
10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.
It works. Grab an API key and use it in your project.
Get an API keyCode 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_..."}
)
Example response
A real response from this endpoint, captured by the latest 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
}