/v1/meta
Usage notes
Provalo dal vivo
10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.
Funziona. Prendi una chiave API e usala nel tuo progetto.
Ottieni una chiave APIFrammenti di codice
curl "https://api.oanor.com/canparl-api/v1/meta" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/canparl-api/v1/meta", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/canparl-api/v1/meta");
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/meta",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"note": "The Parliament of Canada. /v1/politicians (paginate limit & offset; former=true for past MPs) = list Members of Parliament with party, riding and province; /v1/politician?id=justin-trudeau = an MP's profile (contact, party, riding, membership history, links); /v1/bills?session=45-1 = browse bills (number like C-5, name, date introduced); /v1/bill?session=40-2&number=C-1 = a bill's details (sponsor, LEGISinfo id, private-member flag, whether it became law); /v1/votes?session=45-1 = recorded votes with result and yea/nay totals; /v1/debates = the Hansard debate days. Sessions look like 45-1. Data from openparliament.ca (the House of Commons of Canada). For the US Congress see the Congress API, the UK the UK Parliament API, Germany the Bundestag API.",
"source": "openparliament.ca API (Parliament of Canada, House of Commons)",
"endpoints": [
"/v1/politicians",
"/v1/politician",
"/v1/bills",
"/v1/bill",
"/v1/votes",
"/v1/debates",
"/v1/meta"
]
},
"meta": {
"timestamp": "2026-06-01T08:13:42.811Z",
"request_id": "3e239911-c07e-45e2-92f4-dea79225dff0"
},
"status": "ok",
"message": "Meta retrieved",
"success": true
}