curl --request POST \
--url https://api.aisa.one/apis/v1/assembly-ab-ca/legislative-records/get-bill \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"billinfoid": 12111
}
'import requests
url = "https://api.aisa.one/apis/v1/assembly-ab-ca/legislative-records/get-bill"
payload = { "billinfoid": 12111 }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({billinfoid: 12111})
};
fetch('https://api.aisa.one/apis/v1/assembly-ab-ca/legislative-records/get-bill', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/assembly-ab-ca/legislative-records/get-bill",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'billinfoid' => 12111
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/assembly-ab-ca/legislative-records/get-bill"
payload := strings.NewReader("{\n \"billinfoid\": 12111\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/assembly-ab-ca/legislative-records/get-bill")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"billinfoid\": 12111\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/assembly-ab-ca/legislative-records/get-bill")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"billinfoid\": 12111\n}"
response = http.request(request)
puts response.read_body{
"amendments": false,
"bill_number": "205",
"bill_type": "Private Members' Public Bills",
"billinfoid": 12111,
"documents": [
{
"label": "Bill 205",
"url": "https://docs.assembly.ab.ca/LADDAR_files/docs/bills/bill/legislature_31/session_2/20251023_bill-205.pdf"
}
],
"legislature": 31,
"money_bill": false,
"observed_at_ms": 1791923078743,
"session": 2,
"source_url": "https://www.assembly.ab.ca/assembly-business/bills/bill?billinfoid=12111&from=bills",
"sponsor": {
"mid": "0972",
"name": "Johnson",
"url": "https://www.assembly.ab.ca/members/members-of-the-legislative-assembly/member-information?mid=0972&from=bill&billinfoid=12111"
},
"stages": [
{
"date": "2026-03-19",
"date_label": "March 19, 2026 morning",
"hansard_page": "1129",
"hansard_pdf_page": 7,
"hansard_pdf_url": "https://docs.assembly.ab.ca/LADDAR_files/docs/hansards/han/legislature_31/session_2/20260319_1000_01_han.pdf#page=7",
"sitting": "morning",
"stage": "First Reading",
"status": "passed"
},
{
"date": "2026-03-23",
"date_label": "March 23, 2026 afternoon",
"hansard_page": "1169",
"hansard_pdf_page": 19,
"hansard_pdf_url": "https://docs.assembly.ab.ca/LADDAR_files/docs/hansards/han/legislature_31/session_2/20260323_1330_01_han.pdf#page=19",
"sitting": "afternoon",
"stage": "Second Reading",
"status": "referred to Standing Committee on Families and Communities"
}
],
"title": "Non-Disclosure Agreements Act"
}Get bill
Bill status and legislative history for one bill. Get the billinfoid from list_bills. Unknown ids answer not_found (the site renders an empty placeholder).
curl --request POST \
--url https://api.aisa.one/apis/v1/assembly-ab-ca/legislative-records/get-bill \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"billinfoid": 12111
}
'import requests
url = "https://api.aisa.one/apis/v1/assembly-ab-ca/legislative-records/get-bill"
payload = { "billinfoid": 12111 }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({billinfoid: 12111})
};
fetch('https://api.aisa.one/apis/v1/assembly-ab-ca/legislative-records/get-bill', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/assembly-ab-ca/legislative-records/get-bill",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'billinfoid' => 12111
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/assembly-ab-ca/legislative-records/get-bill"
payload := strings.NewReader("{\n \"billinfoid\": 12111\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/assembly-ab-ca/legislative-records/get-bill")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"billinfoid\": 12111\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/assembly-ab-ca/legislative-records/get-bill")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"billinfoid\": 12111\n}"
response = http.request(request)
puts response.read_body{
"amendments": false,
"bill_number": "205",
"bill_type": "Private Members' Public Bills",
"billinfoid": 12111,
"documents": [
{
"label": "Bill 205",
"url": "https://docs.assembly.ab.ca/LADDAR_files/docs/bills/bill/legislature_31/session_2/20251023_bill-205.pdf"
}
],
"legislature": 31,
"money_bill": false,
"observed_at_ms": 1791923078743,
"session": 2,
"source_url": "https://www.assembly.ab.ca/assembly-business/bills/bill?billinfoid=12111&from=bills",
"sponsor": {
"mid": "0972",
"name": "Johnson",
"url": "https://www.assembly.ab.ca/members/members-of-the-legislative-assembly/member-information?mid=0972&from=bill&billinfoid=12111"
},
"stages": [
{
"date": "2026-03-19",
"date_label": "March 19, 2026 morning",
"hansard_page": "1129",
"hansard_pdf_page": 7,
"hansard_pdf_url": "https://docs.assembly.ab.ca/LADDAR_files/docs/hansards/han/legislature_31/session_2/20260319_1000_01_han.pdf#page=7",
"sitting": "morning",
"stage": "First Reading",
"status": "passed"
},
{
"date": "2026-03-23",
"date_label": "March 23, 2026 afternoon",
"hansard_page": "1169",
"hansard_pdf_page": 19,
"hansard_pdf_url": "https://docs.assembly.ab.ca/LADDAR_files/docs/hansards/han/legislature_31/session_2/20260323_1330_01_han.pdf#page=19",
"sitting": "afternoon",
"stage": "Second Reading",
"status": "referred to Standing Committee on Families and Communities"
}
],
"title": "Non-Disclosure Agreements Act"
}请求规范
- 方法与路径: POST /apis/v1/assembly-ab-ca/legislative-records/get-bill
- 可用状态: enabled
- 请求 URL 模板:
https://api.aisa.one/apis/v1/assembly-ab-ca/legislative-records/get-bill
{
"operationId": "assembly-ab-ca.legislative-records.get-bill",
"method": "POST",
"path": "/apis/v1/assembly-ab-ca/legislative-records/get-bill",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [],
"security": [
{
"bearerAuth": []
}
],
"requestBody": {
"content": {
"application/json": {
"examples": {
"provider": {
"summary": "Official provider example; checked against AIsa request constraints",
"value": {
"billinfoid": 12111
}
}
},
"schema": {
"additionalProperties": true,
"allOf": [
{
"anyOf": [
{
"properties": {
"billinfoid": {}
},
"required": [
"billinfoid"
]
},
{
"properties": {
"url": {}
},
"required": [
"url"
]
}
]
}
],
"properties": {
"billinfoid": {
"description": "Bill record id from list_bills.\n\nProvider reference: minimum 1.",
"type": "number"
},
"url": {
"description": "A bill page URL (…/assembly-business/bills/bill?billinfoid=N) instead of billinfoid.",
"type": "string"
}
},
"type": "object"
}
}
},
"required": true
},
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
费用与请求规则
按实际用量收费。 默认请求预估费用:$0.0005 USD。 最终费用以实际用量为准。 账户适用价格可能不同;支持报价的接口可按实际请求获取报价。授权
请求体
响应
One bill by billinfoid: number, title, legislature and session, sponsor (with member id), type, Amendments and Money Bill flags, the bill text PDF on docs.assembly.ab.ca, and every recorded stage (First Reading, Second Reading, Committee of the Whole, Third Reading, Royal Assent, ...) with its date, sitting, outcome text, printed Hansard page and the Hansard PDF link with its page index.
The response contains the tool result directly.
| Documented field | Provider type | Description |
|---|---|---|
amendments | boolean | The page's Amendments field (Yes/No). |
bill_number | string | |
bill_type | string | |
billinfoid | number | |
documents | object[] | |
legislature | number | |
money_bill | boolean | The page's Money Bill field (Yes/No). |
observed_at_ms | number | |
session | number | |
source_url | string | |
sponsor | object | |
stages | object[] | |
title | string |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.