/v1/mole-mass
Mole-mass-particle conversion
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
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_..."}
)
Exemple de réponse
Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.
{
"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
}