Naar de inhoud
GET /v1/stats

Live overview: proposal counts by vote status

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/politeia-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

curl "https://api.oanor.com/politeia-api/v1/stats" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/politeia-api/v1/stats", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/politeia-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/politeia-api/v1/stats",
    headers={"x-oanor-key": "oanor_test_..."}
)

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "data": {
        "note": "Live Decred Politeia governance overview: how many vetted treasury proposals currently sit in each vote status (approved, rejected, started, authorized, unauthorized, ineligible).",
        "source": "Decred Politeia",
        "by_status": {
            "started": 0,
            "approved": 20,
            "rejected": 20,
            "authorized": 0,
            "ineligible": 20,
            "unauthorized": 0
        },
        "total_vetted_proposals": 60
    },
    "meta": {
        "timestamp": "2026-06-14T17:04:44.691Z",
        "request_id": "b84af6cb-a3a6-4e6f-82a5-7500bc532855"
    },
    "status": "ok",
    "message": "Stats retrieved successfully",
    "success": true
}