Naar de inhoud
GET /v1/bills

Browse bills

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

Voorbeeldrespons

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

{
    "data": {
        "bills": [
            {
                "url": "/bills/40-2/C-1/",
                "name": "An Act respecting the Administration of Oaths of Office",
                "number": "C-1",
                "session": "40-2",
                "introduced": "2009-01-26"
            },
            {
                "url": "/bills/41-1/C-1/",
                "name": "An Act respecting the administration of oaths of office",
                "number": "C-1",
                "session": "41-1",
                "introduced": "2011-06-03"
            },
            {
                "url": "/bills/39-1/C-1/",
                "name": "An Act respecting the Administration of Oaths of Office",
                "number": "C-1",
                "session": "39-1",
                "introduced": "2006-04-04"
            },
            {
                "url": "/bills/43-1/C-1/",
                "name": "An Act respecting the administration of oaths of office",
                "number": "C-1",
                "session": "43-1",
                "introduced": "2019-12-05"
            },
            {
                "url": "/bills/40-3/C-1/",
                "name": "An Act respecting the Administration of Oaths of Office",
                "number": "C-1",
                "session": "40-3",
                "introduced": "2010-03-03"
            },
            {
                "url": "/bills/41-2/C-1/",
                "name": "An Act respecting the Administration of Oaths of Office",
                "number": "C-1",
                "session": "41-2",
                "introduced": "2013-10-16"
            },
            {
                "url": "/bills/43-2/C-1/",
                "name": "An Act respecting the administration of oaths of office",
                "number": "C-1",
                "session": "43-2",
                "introduced": "2020-09-23"
            },
            {
                "url": "/bills/37-3/C-1/",
                "name": "An Act respecting the Administration of Oaths of Office",
                "number": "C-1",
                "session": "37-3",
                "introduced": "2004-02-02"
            },
            {
                "url": "/bills/40-1/C-1/",
                "name": "An Act respecting the Administration of Oaths of Office",
                "number": "C-1",
                "session": "40-1",
                "introduced": "2008-11-19"
            },
            {
                "url": "/bills/42-1/C-1/",
                "name": "An Act respecting the administration of oaths of office",
                "number": "C-1",
                "session": "42-1",
                "introduced": "2015-12-04"
            },
            {
                "url": "/bills/38-1/C-1/",
                "name": "An Act respecting the Administration of Oaths of Office",
                "number": "C-1",
                "session": "38-1",
                "introduced": "2004-10-05"
            },
            {
                "url": "/
…