/v1/stats
Live overview: proposal counts by vote status
Live testen
10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.
Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.
API-Key holenCode-Snippets
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_..."}
)
Beispiel-Response
Echte Antwort dieses Endpoints, erfasst beim letzten 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
}