Catalog/chem-combined-gas

Chemistry

Combined gas law solver API

Solves the combined gas law (P1·V1)/T1 = (P2·V2)/T2 for the one omitted state variable using absolute temperatures. Answers 'What volume after doubling pressure and temperature?', 'final pressure of a gas heated at fixed volume?'.

Price$0.04per request
MethodPOST
Route/v1/chemistry/combined-gas
StatusLive
MIME typeapplication/json
Rate limit120/minute
Cache0s public
chemistrycombined-gasgas-lawboylecharlesgay-lussacpressurethermodynamics
API URLhttps://x402.hexl.dev/v1/chemistry/combined-gas
Integration docs
Example request
{
  "p1": 1,
  "v1": 2,
  "t1": 300,
  "p2": 2,
  "t2": 600
}
Example response
{
  "solvedVariable": "v2",
  "solvedValue": 2,
  "p1": 1,
  "v1": 2,
  "t1": 300,
  "p2": 2,
  "v2": null,
  "t2": 600,
  "formula": "(P1·V1)/T1 = (P2·V2)/T2"
}
Input schema
{
  "type": "object",
  "properties": {
    "p1": {
      "type": "number",
      "examples": [
        1
      ]
    },
    "v1": {
      "type": "number",
      "examples": [
        2
      ]
    },
    "t1": {
      "type": "number",
      "examples": [
        300
      ]
    },
    "p2": {
      "type": "number",
      "examples": [
        2
      ]
    },
    "v2": {
      "type": "number"
    },
    "t2": {
      "type": "number",
      "examples": [
        600
      ]
    }
  }
}
Output schema
{
  "type": "object",
  "additionalProperties": true
}