Chemistry
Mass/mole/volume percent API
Computes mass, mole, or volume percent of a component in a mixture from matching-unit amounts, returning the percent, fraction and remainder. Answers 'What mass percent is 25 g of a 200 g mixture?', 'mole percent of one component'.
Price$0.02per request
MethodPOST
Route/v1/chemistry/percent
StatusLive
MIME typeapplication/json
Rate limit120/minute
Cache0s public
chemistrypercentmass-percentmole-percentvolume-percentcompositionmixturefraction
API URL
Integration docshttps://x402.hexl.dev/v1/chemistry/percentExample request
{
"componentAmount": 25,
"totalAmount": 200
}Example response
{
"kind": "mass",
"percent": 12.5,
"fraction": 0.125,
"remainderPercent": 87.5
}Input schema
{
"type": "object",
"required": [
"componentAmount",
"totalAmount"
],
"properties": {
"componentAmount": {
"type": "number",
"examples": [
25
]
},
"totalAmount": {
"type": "number",
"examples": [
200
]
},
"kind": {
"type": "string",
"examples": [
"mass",
"mole",
"volume"
]
}
}
}Output schema
{
"type": "object",
"additionalProperties": true
}