Legislative bills
curl --request GET \
--url https://astreus.ai/api/v1/countries/{iso}/government/bills \
--header 'X-API-KEY: <api-key>'import requests
url = "https://astreus.ai/api/v1/countries/{iso}/government/bills"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://astreus.ai/api/v1/countries/{iso}/government/bills', 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://astreus.ai/api/v1/countries/{iso}/government/bills",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-KEY: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://astreus.ai/api/v1/countries/{iso}/government/bills"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-KEY", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://astreus.ai/api/v1/countries/{iso}/government/bills")
.header("X-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://astreus.ai/api/v1/countries/{iso}/government/bills")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-KEY"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"iso2": "US",
"available": true,
"load": {
"isSample": false,
"inProgress": false,
"unrecorded": false,
"lastLoadedAt": "2026-09-19T01:51:46.741Z",
"stale": true,
"staleLanes": [
"govinfo/bills"
],
"failedLanes": [],
"runs": [
{
"sourceCode": "govinfo",
"lane": "bills",
"mode": "backfill",
"status": "succeeded",
"rowsWritten": 2803741,
"finishedAt": "2026-09-19T01:51:46.741Z"
}
]
},
"congress": 119,
"congresses": [
119,
118
],
"stage": null,
"voted": false,
"query": null,
"total": 18956,
"stageCounts": {
"introduced": 17380,
"passed_one": 1424,
"cleared": 38,
"law": 112,
"vetoed": 2
},
"votedCounts": {
"introduced": 94,
"passed_one": 344,
"cleared": 8,
"law": 61,
"vetoed": 2
},
"offset": 0,
"limit": 2,
"bills": [
{
"congress": 119,
"billType": "hr",
"billNumber": 10477,
"label": "H.R. 10477",
"title": "To amend the Sarbanes-Oxley Act of 2002 to exclude the audits of privately held, non-carrying brokers and dealers that are in good standing from certain requirements under title I of that Act, and for…",
"introducedDate": "2026-09-17",
"originChamber": "house",
"policyArea": null,
"sponsor": {
"bioguideId": "H001072",
"name": "J. French Hill",
"party": "R",
"stateCode": "AR",
"personKey": "USGVP00026"
},
"cosponsorCount": 0,
"latestActionDate": "2026-09-17",
"latestActionText": "Referred to the House Committee on Financial Services.",
"lawNumber": null,
"summary": null,
"url": "https://www.congress.gov/bill/119th-congress/house-bill/10477",
"subjects": [],
"stage": "introduced",
"measureClass": "bill",
"passedHouse": false,
"passedSenate": false,
"committees": [
{
"systemCode": "hsba00",
"name": "Committee on Financial Services",
"activity": "Referred To"
}
],
"actions": [
{
"seq": 3,
"date": "2026-09-17",
"chamber": "house",
"type": "IntroReferral",
"text": "Referred to the House Committee on Financial Services."
},
{
"seq": 2,
"date": "2026-09-17",
"chamber": null,
"type": "IntroReferral",
"text": "Introduced in House"
}
],
"cosponsors": [],
"votes": []
},
{
"congress": 119,
"billType": "hr",
"billNumber": 10478,
"label": "H.R. 10478",
"title": "To direct the Secretary of Veterans Affairs to establish a pilot program to arrange for qualified pension assistance organizations to provide claims development support to veterans and beneficiaries, …",
"introducedDate": "2026-09-17",
"originChamber": "house",
"policyArea": null,
"sponsor": {
"bioguideId": "R000612",
"name": "John W. Rose",
"party": "R",
"stateCode": "TN",
"personKey": "USGVP00443"
},
"cosponsorCount": 3,
"latestActionDate": "2026-09-17",
"latestActionText": "Referred to the House Committee on Veterans' Affairs.",
"lawNumber": null,
"summary": null,
"url": "https://www.congress.gov/bill/119th-congress/house-bill/10478",
"subjects": [],
"stage": "introduced",
"measureClass": "bill",
"passedHouse": false,
"passedSenate": false,
"committees": [
{
"systemCode": "hsvr00",
"name": "Committee on Veterans' Affairs",
"activity": "Referred To"
}
],
"actions": [
{
"seq": 3,
"date": "2026-09-17",
"chamber": "house",
"type": "IntroReferral",
"text": "Referred to the House Committee on Veterans' Affairs."
},
{
"seq": 2,
"date": "2026-09-17",
"chamber": null,
"type": "IntroReferral",
"text": "Introduced in House"
}
],
"cosponsors": [
{
"bioguideId": "B001309",
"name": "Tim Burchett",
"party": "R",
"stateCode": "TN",
"personKey": "USGVP00070",
"sponsorshipDate": "2026-09-17",
"isOriginal": true,
"withdrawnDate": null
},
{
"bioguideId": "M001216",
"name": "Cory Mills",
"party": "R",
"stateCode": "FL",
"personKey": "USGVP00363",
"sponsorshipDate": "2026-09-17",
"isOriginal": true,
"withdrawnDate": null
}
],
"votes": []
}
]
}{
"error": "<string>",
"code": "unknown_parameter",
"param": "<string>",
"allowed": [
"<string>"
]
}{
"error": "<string>",
"code": "unknown_parameter",
"param": "<string>",
"allowed": [
"<string>"
]
}{
"error": "<string>",
"code": "unknown_parameter",
"param": "<string>",
"allowed": [
"<string>"
]
}{
"error": "<string>",
"code": "unknown_parameter",
"param": "<string>",
"allowed": [
"<string>"
]
}Macro
Legislative bills
Legislative measures and their derived action stages, with whole-population stage counts and bounded result pages.
GET
/
api
/
v1
/
countries
/
{iso}
/
government
/
bills
Legislative bills
curl --request GET \
--url https://astreus.ai/api/v1/countries/{iso}/government/bills \
--header 'X-API-KEY: <api-key>'import requests
url = "https://astreus.ai/api/v1/countries/{iso}/government/bills"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://astreus.ai/api/v1/countries/{iso}/government/bills', 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://astreus.ai/api/v1/countries/{iso}/government/bills",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-KEY: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://astreus.ai/api/v1/countries/{iso}/government/bills"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-KEY", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://astreus.ai/api/v1/countries/{iso}/government/bills")
.header("X-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://astreus.ai/api/v1/countries/{iso}/government/bills")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-KEY"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"iso2": "US",
"available": true,
"load": {
"isSample": false,
"inProgress": false,
"unrecorded": false,
"lastLoadedAt": "2026-09-19T01:51:46.741Z",
"stale": true,
"staleLanes": [
"govinfo/bills"
],
"failedLanes": [],
"runs": [
{
"sourceCode": "govinfo",
"lane": "bills",
"mode": "backfill",
"status": "succeeded",
"rowsWritten": 2803741,
"finishedAt": "2026-09-19T01:51:46.741Z"
}
]
},
"congress": 119,
"congresses": [
119,
118
],
"stage": null,
"voted": false,
"query": null,
"total": 18956,
"stageCounts": {
"introduced": 17380,
"passed_one": 1424,
"cleared": 38,
"law": 112,
"vetoed": 2
},
"votedCounts": {
"introduced": 94,
"passed_one": 344,
"cleared": 8,
"law": 61,
"vetoed": 2
},
"offset": 0,
"limit": 2,
"bills": [
{
"congress": 119,
"billType": "hr",
"billNumber": 10477,
"label": "H.R. 10477",
"title": "To amend the Sarbanes-Oxley Act of 2002 to exclude the audits of privately held, non-carrying brokers and dealers that are in good standing from certain requirements under title I of that Act, and for…",
"introducedDate": "2026-09-17",
"originChamber": "house",
"policyArea": null,
"sponsor": {
"bioguideId": "H001072",
"name": "J. French Hill",
"party": "R",
"stateCode": "AR",
"personKey": "USGVP00026"
},
"cosponsorCount": 0,
"latestActionDate": "2026-09-17",
"latestActionText": "Referred to the House Committee on Financial Services.",
"lawNumber": null,
"summary": null,
"url": "https://www.congress.gov/bill/119th-congress/house-bill/10477",
"subjects": [],
"stage": "introduced",
"measureClass": "bill",
"passedHouse": false,
"passedSenate": false,
"committees": [
{
"systemCode": "hsba00",
"name": "Committee on Financial Services",
"activity": "Referred To"
}
],
"actions": [
{
"seq": 3,
"date": "2026-09-17",
"chamber": "house",
"type": "IntroReferral",
"text": "Referred to the House Committee on Financial Services."
},
{
"seq": 2,
"date": "2026-09-17",
"chamber": null,
"type": "IntroReferral",
"text": "Introduced in House"
}
],
"cosponsors": [],
"votes": []
},
{
"congress": 119,
"billType": "hr",
"billNumber": 10478,
"label": "H.R. 10478",
"title": "To direct the Secretary of Veterans Affairs to establish a pilot program to arrange for qualified pension assistance organizations to provide claims development support to veterans and beneficiaries, …",
"introducedDate": "2026-09-17",
"originChamber": "house",
"policyArea": null,
"sponsor": {
"bioguideId": "R000612",
"name": "John W. Rose",
"party": "R",
"stateCode": "TN",
"personKey": "USGVP00443"
},
"cosponsorCount": 3,
"latestActionDate": "2026-09-17",
"latestActionText": "Referred to the House Committee on Veterans' Affairs.",
"lawNumber": null,
"summary": null,
"url": "https://www.congress.gov/bill/119th-congress/house-bill/10478",
"subjects": [],
"stage": "introduced",
"measureClass": "bill",
"passedHouse": false,
"passedSenate": false,
"committees": [
{
"systemCode": "hsvr00",
"name": "Committee on Veterans' Affairs",
"activity": "Referred To"
}
],
"actions": [
{
"seq": 3,
"date": "2026-09-17",
"chamber": "house",
"type": "IntroReferral",
"text": "Referred to the House Committee on Veterans' Affairs."
},
{
"seq": 2,
"date": "2026-09-17",
"chamber": null,
"type": "IntroReferral",
"text": "Introduced in House"
}
],
"cosponsors": [
{
"bioguideId": "B001309",
"name": "Tim Burchett",
"party": "R",
"stateCode": "TN",
"personKey": "USGVP00070",
"sponsorshipDate": "2026-09-17",
"isOriginal": true,
"withdrawnDate": null
},
{
"bioguideId": "M001216",
"name": "Cory Mills",
"party": "R",
"stateCode": "FL",
"personKey": "USGVP00363",
"sponsorshipDate": "2026-09-17",
"isOriginal": true,
"withdrawnDate": null
}
],
"votes": []
}
]
}{
"error": "<string>",
"code": "unknown_parameter",
"param": "<string>",
"allowed": [
"<string>"
]
}{
"error": "<string>",
"code": "unknown_parameter",
"param": "<string>",
"allowed": [
"<string>"
]
}{
"error": "<string>",
"code": "unknown_parameter",
"param": "<string>",
"allowed": [
"<string>"
]
}{
"error": "<string>",
"code": "unknown_parameter",
"param": "<string>",
"allowed": [
"<string>"
]
}Authorizations
apiKeycognitoIdToken
Astreus API key (pk_live_...), created on the Developers page in the terminal. Also accepted as Authorization: Bearer pk_live_....
Path Parameters
ISO alpha-2 country code.
Query Parameters
Congress number (1–200) or all; default the newest held. A congress not held falls back to the newest.
Action stage.
Available options:
introduced, passed_one, cleared, law, vetoed 1 to require a recorded vote.
Available options:
1, 0 Title contains; max 120 characters.
Rows per page, 1–200; default 50.
Required range:
1 <= x <= 200Rows to skip.
Required range:
x >= 0Response
OK
Inferred from captured responses: every field shown was returned by a real call; a field may be absent or null on other calls.