/v1/bill
A bill's details
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/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_..."}
)
Beispiel-Response
Echte Antwort dieses Endpoints, erfasst beim letzten 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
}