Aller au contenu
GET /v1/yield

Theoretical & percent yield

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/stoichiometry-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

curl "https://api.oanor.com/stoichiometry-api/v1/yield" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/stoichiometry-api/v1/yield", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/stoichiometry-api/v1/yield");
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/yield",
    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": "Theoretical yield: n_product = n_limiting · (coeff_product / coeff_limiting); mass = n · M. Percent yield = actual / theoretical · 100.",
        "inputs": {
            "limiting_moles": 1,
            "product_molar_mass": 18.015,
            "product_coefficient": 2,
            "limiting_coefficient": 1
        },
        "percent_yield": 83.2639,
        "actual_yield_g": 30,
        "theoretical_moles": 2,
        "theoretical_mass_g": 36.03
    },
    "meta": {
        "timestamp": "2026-06-05T11:30:39.244Z",
        "request_id": "c32c23fe-a96f-449d-9415-928c7acc412a"
    },
    "status": "ok",
    "message": "Yield",
    "success": true
}