Skip to content
GET /v1/mole-mass

Mole-mass-particle conversion

Try it live

10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.

Custom headers (optional)
api.oanor.com/stoichiometry-api

It works. Grab an API key and use it in your project.

Get an API key

Code snippets

curl "https://api.oanor.com/stoichiometry-api/v1/mole-mass" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/stoichiometry-api/v1/mole-mass", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/stoichiometry-api/v1/mole-mass");
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/stoichiometry-api/v1/mole-mass",
    headers={"x-oanor-key": "oanor_test_..."}
)

Example response

A real response from this endpoint, captured by the latest health check.

{
    "data": {
        "note": "moles = mass / molar_mass; particles = moles · Nₐ (6.02214076e23). Give moles OR mass and the molar mass to get the rest.",
        "moles": 2,
        "inputs": {
            "mass": null,
            "moles": 2,
            "molar_mass": 18.015
        },
        "mass_g": 36.03,
        "particles": 1.204428152e+24,
        "avogadro_constant": 6.02214076e+23
    },
    "meta": {
        "timestamp": "2026-06-05T11:30:39.164Z",
        "request_id": "e9cb875d-49c4-40bc-abfa-18da518412f0"
    },
    "status": "ok",
    "message": "Mole-mass conversion",
    "success": true
}