/v1/co2
Dissolved CO2 from pH and KH
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/aquascape-api/v1/co2" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/aquascape-api/v1/co2", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/aquascape-api/v1/co2");
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/aquascape-api/v1/co2",
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": "Dissolved CO2 ≈ 3 × KH (dKH) × 10^(7 − pH). The 15–30 ppm window suits a high-tech planted tank; above ~30 ppm fish start to suffer, so add CO2 gradually and watch livestock at lights-on. The pH/KH method assumes carbonate buffering only — tannins, phosphate buffers or non-carbonate KH throw it off; a drop checker is the real-time cross-check.",
"level": "high — risk to fish, watch for gasping",
"inputs": {
"ph": 6.6,
"kh_dkh": 4
},
"co2_ppm": 30.1
},
"meta": {
"timestamp": "2026-06-06T15:30:47.466Z",
"request_id": "f81c9d37-cf52-428b-8b5b-5cacdbae98d3"
},
"status": "ok",
"message": "CO2 from pH/KH",
"success": true
}