Aller au contenu
GET /v1/stats

Live governance overview: totals, open count, breakdown by topic & status

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/icpgov-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/icpgov-api/v1/stats" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/icpgov-api/v1/stats", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/icpgov-api/v1/stats");
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/icpgov-api/v1/stats",
    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": "Live NNS governance overview: the all-time total proposal count, plus how the most recent proposals break down by topic and status (and how many are currently open for voting).",
        "source": "Internet Computer dashboard",
        "by_topic": {
            "Neuron Management": 9,
            "Subnet Management": 3,
            "Ic Os Version Election": 4,
            "Ic Os Version Deployment": 76,
            "Protocol Canister Management": 3,
            "Application Canister Management": 5
        },
        "by_status": {
            "OPEN": 12,
            "EXECUTED": 88
        },
        "sample_window": 100,
        "open_in_window": 12,
        "total_proposals": 122261
    },
    "meta": {
        "timestamp": "2026-06-14T08:03:45.235Z",
        "request_id": "5530572f-9c04-486a-af5a-0f07ce429e75"
    },
    "status": "ok",
    "message": "Stats retrieved successfully",
    "success": true
}