Naar de inhoud
GET /v1/bill

A bill's details

Probeer het live

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

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

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

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

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

{
    "data": {
        "bill": {
            "law": null,
            "url": "/bills/40-2/C-1/",
            "name": "An Act respecting the Administration of Oaths of Office",
            "number": "C-1",
            "session": "40-2",
            "sponsor": "stephen-harper",
            "text_url": "https://www.parl.ca/DocumentViewer/en/3630273",
            "introduced": "2009-01-26",
            "vote_count": 0,
            "short_title": null,
            "home_chamber": "House",
            "legisinfo_id": 3628604,
            "private_member_bill": false
        }
    },
    "meta": {
        "timestamp": "2026-06-01T08:13:41.410Z",
        "request_id": "5f141c46-8ab2-4319-9411-e98c68a119c8"
    },
    "status": "ok",
    "message": "Bill retrieved",
    "success": true
}