/v1/referendum
One referendum in full: aye/nay/support tally, status, track, requested
Try it live
10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.
It works. Grab an API key and use it in your project.
Get an API keyCode snippets
curl "https://api.oanor.com/polkadotgov-api/v1/referendum" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/polkadotgov-api/v1/referendum", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/polkadotgov-api/v1/referendum");
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/polkadotgov-api/v1/referendum",
headers={"x-oanor-key": "oanor_test_..."}
)
Example response
A real response from this endpoint, captured by the latest health check.
{
"data": {
"id": 1000,
"note": "A single OpenGov referendum in full: its aye/nay/support tally (conviction-weighted, converted to the network token), status, governance track, requested treasury amount and proposer. Omit id for the latest referendum.",
"tally": {
"ayes_token": 41402170.4086,
"nays_token": 5000.1,
"support_token": 10276376.0004
},
"title": "A Wish for Continuity: Celebrating Polkadot's Core Values",
"token": "DOT",
"track": "WishForChange",
"source": "Polkassembly",
"status": "TimedOut",
"network": "polkadot",
"proposer": "15oQVDJKd4zLzUvkTnan34v1VPRguduo1uEfs9GnvKjD6Yng",
"created_at": "2024-07-16T13:15:42.000000Z",
"description": null,
"requested_token": null,
"beneficiary_count": 0
},
"meta": {
"timestamp": "2026-06-14T08:03:46.239Z",
"request_id": "c68712c6-8d08-4ba6-8c70-07a8982233c1"
},
"status": "ok",
"message": "Referendum retrieved successfully",
"success": true
}