Skip to content
GET /v1/molarity

Molarity / moles / mass

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/dilution-api

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

Get an API key

Code snippets

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

Example response

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

{
    "data": {
        "note": "moles = molarity × volume(L); mass = moles × molar mass. Provide any sufficient subset.",
        "moles": 1,
        "mass_mg": 58440,
        "molarity": 0.5,
        "volume_ml": 2000,
        "mass_grams": 58.44,
        "molar_mass": 58.44,
        "volume_litres": 2
    },
    "meta": {
        "timestamp": "2026-06-04T01:59:10.910Z",
        "request_id": "b8b677af-2b7b-46e5-a42f-d0cc4398e886"
    },
    "status": "ok",
    "message": "Molarity / moles / mass relations",
    "success": true
}