Naar de inhoud
GET /v1/proposal

A single proposal in full

Probeer het live

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

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

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

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

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

{
    "data": {
        "id": "0x19e9fbada7ef4223f7bbd699fae3a1d0ca0293db6004929da5e524b255e138f3",
        "end": "2026-06-16T13:19:39.000Z",
        "body": null,
        "space": {
            "id": "dorg.eth",
            "name": "dOrg"
        },
        "start": "2026-06-11T13:19:39.000Z",
        "state": "active",
        "title": "Treasury Consolidation & On-Chain Migration Proposal",
        "votes": 4,
        "author": "0x10f9bE5244F9D12F22A35e927D18660e1b36546f",
        "quorum": 0,
        "scores": [
            1038995,
            0,
            0
        ],
        "source": "Snapshot",
        "choices": [
            "For",
            "Against",
            "Abstain"
        ],
        "created": "2026-06-11T13:19:39.000Z",
        "scores_total": 1038995
    },
    "meta": {
        "timestamp": "2026-06-11T16:46:53.514Z",
        "request_id": "5cdd7c9c-e621-400d-b39f-a7f5d052662d"
    },
    "status": "ok",
    "message": "Proposal retrieved successfully",
    "success": true
}