/v1/meta
Spec
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/gasmixture-api/v1/meta" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/gasmixture-api/v1/meta", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/gasmixture-api/v1/meta");
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/gasmixture-api/v1/meta",
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": {
"notes": "Pressures in any consistent unit; amounts in moles; molar masses in g/mol. Lists are comma-separated. Ideal-gas mixtures.",
"service": "gasmixture-api",
"formulae": {
"dalton": "P_total = ΣPᵢ, Pᵢ = xᵢ·P_total",
"graham": "rate₁/rate₂ = √(M₂/M₁)",
"mole_fraction": "xᵢ = nᵢ / Σn"
},
"endpoints": {
"GET /v1/meta": "This document.",
"GET /v1/effusion": "Graham's law effusion/diffusion rate ratio from two molar masses.",
"GET /v1/mole-fraction": "Mole fractions, partial pressures and mass fractions from component amounts.",
"GET /v1/partial-pressure": "Dalton's law — total from partials, partial from a mole fraction, or fraction from moles."
},
"description": "Gas-mixture calculator: Dalton's law of partial pressures, mole and mass fractions of a mixture, and Graham's law of effusion and diffusion."
},
"meta": {
"timestamp": "2026-06-04T18:38:01.818Z",
"request_id": "a6dfc070-6d57-46d7-9b78-038951d66bab"
},
"status": "ok",
"message": "Meta",
"success": true
}