Vai al contenuto
GET /v1/stats

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

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/icpgov-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

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_..."}
)

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

{
    "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
}