Chemistry
Dalton partial pressures API
Applies Dalton's law to split a total pressure into component partial pressures from mole fractions or moles (auto-normalised), with optional labels. Answers 'What is the partial pressure of O2 in air?', 'partial pressures of a 1:3 gas mix at 1 atm'.
Price$0.04per request
MethodPOST
Route/v1/chemistry/partial-pressure
StatusLive
MIME typeapplication/json
Rate limit120/minute
Cache0s public
chemistrypartial-pressuredaltongas-mixturemole-fractiongas-lawpressurethermodynamics
API URL
Integration docshttps://x402.hexl.dev/v1/chemistry/partial-pressureExample request
{
"totalPressure": 1,
"moles": [
1,
3
],
"labels": [
"N2",
"O2"
]
}Example response
{
"totalPressure": 1,
"components": [
{
"label": "N2",
"moleFraction": 0.25,
"partialPressure": 0.25
},
{
"label": "O2",
"moleFraction": 0.75,
"partialPressure": 0.75
}
],
"formula": "P_i = x_i · P_total"
}Input schema
{
"type": "object",
"required": [
"totalPressure"
],
"properties": {
"totalPressure": {
"type": "number",
"examples": [
1
]
},
"moleFractions": {
"type": "array",
"items": {
"type": "number"
}
},
"moles": {
"type": "array",
"items": {
"type": "number"
},
"examples": [
[
1,
3
]
]
},
"labels": {
"type": "array",
"items": {
"type": "string"
}
}
}
}Output schema
{
"type": "object",
"additionalProperties": true
}