curl --request GET \
--url https://astreus.ai/api/v1/countries/{iso}/government/{view} \
--header 'X-API-KEY: <api-key>'import requests
url = "https://astreus.ai/api/v1/countries/{iso}/government/{view}"
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/{view}', 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/{view}",
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/{view}"
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/{view}")
.header("X-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://astreus.ai/api/v1/countries/{iso}/government/{view}")
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-19T03:14:54.511Z",
"stale": true,
"staleLanes": [
"federal_register/fr_documents",
"govinfo/govinfo_packages"
],
"failedLanes": [],
"runs": [
{
"sourceCode": "federal_register",
"lane": "fr_documents",
"mode": "backfill",
"status": "succeeded",
"rowsWritten": 525,
"finishedAt": "2026-09-19T03:14:07.944Z"
},
{
"sourceCode": "govinfo",
"lane": "govinfo_packages",
"mode": "backfill",
"status": "succeeded",
"rowsWritten": 0,
"finishedAt": "2026-09-19T03:14:54.511Z"
}
]
},
"loads": {
"presidential": {
"isSample": false,
"inProgress": false,
"unrecorded": false,
"lastLoadedAt": "2026-09-19T03:14:07.944Z",
"stale": true,
"staleLanes": [
"federal_register/fr_documents"
],
"failedLanes": [],
"runs": [
{
"sourceCode": "federal_register",
"lane": "fr_documents",
"mode": "backfill",
"status": "succeeded",
"rowsWritten": 525,
"finishedAt": "2026-09-19T03:14:07.944Z"
}
]
},
"packages": {
"isSample": false,
"inProgress": false,
"unrecorded": false,
"lastLoadedAt": "2026-09-19T03:14:54.511Z",
"stale": true,
"staleLanes": [
"govinfo/govinfo_packages"
],
"failedLanes": [],
"runs": [
{
"sourceCode": "govinfo",
"lane": "govinfo_packages",
"mode": "backfill",
"status": "succeeded",
"rowsWritten": 0,
"finishedAt": "2026-09-19T03:14:54.511Z"
}
]
}
},
"presidential": [
{
"documentNumber": "2026-19251",
"docType": "Presidential Document",
"presidentialDocType": "determination",
"executiveOrderNumber": null,
"title": "Presidential Determination on Major Drug Transit or Major Illicit Drug Producing Countries for Fiscal Year 2027",
"abstract": null,
"publicationDate": "2026-09-18",
"signingDate": "2026-09-11",
"effectiveOn": null,
"commentsCloseOn": null,
"citation": "91 FR 59687",
"isSignificant": null,
"president": "Donald Trump",
"agencies": [
{
"id": 538,
"name": "Executive Office of the President",
"slug": "executive-office-of-the-president"
}
],
"docketIds": [],
"topics": [],
"htmlUrl": "https://www.federalregister.gov/documents/2026/09/18/2026-19251/presidential-determination-on-major-drug-transit-or-major-illicit-drug-producing-countries-for",
"pdfUrl": "https://www.govinfo.gov/content/pkg/FR-2026-09-18/pdf/2026-19251.pdf"
},
{
"documentNumber": "2026-19053",
"docType": "Presidential Document",
"presidentialDocType": "notice",
"executiveOrderNumber": null,
"title": "Continuation of the National Emergency With Respect to Persons Who Commit, Threaten To Commit, or Support Terrorism",
"abstract": null,
"publicationDate": "2026-09-16",
"signingDate": "2026-09-11",
"effectiveOn": null,
"commentsCloseOn": null,
"citation": "91 FR 58805",
"isSignificant": null,
"president": "Donald Trump",
"agencies": [
{
"id": 538,
"name": "Executive Office of the President",
"slug": "executive-office-of-the-president"
}
],
"docketIds": [],
"topics": [],
"htmlUrl": "https://www.federalregister.gov/documents/2026/09/16/2026-19053/continuation-of-the-national-emergency-with-respect-to-persons-who-commit-threaten-to-commit-or",
"pdfUrl": "https://www.govinfo.gov/content/pkg/FR-2026-09-16/pdf/2026-19053.pdf"
}
],
"pages": {
"presidential": {
"total": 50,
"offset": 0,
"limit": 2,
"nextOffset": 2
}
}
}{
"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>"
]
}Government data
US government data from the platform’s gov_* lanes: congress (members, committee rosters, meetings with witnesses, hearings, House roll-call votes), legislation (bills with sponsors, cosponsors, actions, subjects), executive (presidential documents, GovInfo packages), regulation (Federal Register rules and Regulations.gov dockets), spending (USAspending awards, recipients, agency totals) or feed (the newest 40 dated events; events are dated no later than today except scheduled committee meetings, up to 120 days ahead, which carry scheduled: true). Without section the reply is bounded: every section’s first 20 rows, a pages block per section () and a note; full=true serves every row (congress is about 1.3 MB). Paged rows are compact: a committee carries seatCount and its subcommittees’ codes and names, a roll-call vote no member positions (GET …/government/votes//// has them), a recipient group recipientEntities (a count). load says how complete and how fresh the rows are: isSample (a pilot load), inProgress, lastLoadedAt, stale (some lane has not loaded within its publisher’s cadence, 3 days for daily publishers), staleLanes and failedLanes (as source/lane). Non-US countries return available=false.
curl --request GET \
--url https://astreus.ai/api/v1/countries/{iso}/government/{view} \
--header 'X-API-KEY: <api-key>'import requests
url = "https://astreus.ai/api/v1/countries/{iso}/government/{view}"
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/{view}', 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/{view}",
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/{view}"
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/{view}")
.header("X-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://astreus.ai/api/v1/countries/{iso}/government/{view}")
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-19T03:14:54.511Z",
"stale": true,
"staleLanes": [
"federal_register/fr_documents",
"govinfo/govinfo_packages"
],
"failedLanes": [],
"runs": [
{
"sourceCode": "federal_register",
"lane": "fr_documents",
"mode": "backfill",
"status": "succeeded",
"rowsWritten": 525,
"finishedAt": "2026-09-19T03:14:07.944Z"
},
{
"sourceCode": "govinfo",
"lane": "govinfo_packages",
"mode": "backfill",
"status": "succeeded",
"rowsWritten": 0,
"finishedAt": "2026-09-19T03:14:54.511Z"
}
]
},
"loads": {
"presidential": {
"isSample": false,
"inProgress": false,
"unrecorded": false,
"lastLoadedAt": "2026-09-19T03:14:07.944Z",
"stale": true,
"staleLanes": [
"federal_register/fr_documents"
],
"failedLanes": [],
"runs": [
{
"sourceCode": "federal_register",
"lane": "fr_documents",
"mode": "backfill",
"status": "succeeded",
"rowsWritten": 525,
"finishedAt": "2026-09-19T03:14:07.944Z"
}
]
},
"packages": {
"isSample": false,
"inProgress": false,
"unrecorded": false,
"lastLoadedAt": "2026-09-19T03:14:54.511Z",
"stale": true,
"staleLanes": [
"govinfo/govinfo_packages"
],
"failedLanes": [],
"runs": [
{
"sourceCode": "govinfo",
"lane": "govinfo_packages",
"mode": "backfill",
"status": "succeeded",
"rowsWritten": 0,
"finishedAt": "2026-09-19T03:14:54.511Z"
}
]
}
},
"presidential": [
{
"documentNumber": "2026-19251",
"docType": "Presidential Document",
"presidentialDocType": "determination",
"executiveOrderNumber": null,
"title": "Presidential Determination on Major Drug Transit or Major Illicit Drug Producing Countries for Fiscal Year 2027",
"abstract": null,
"publicationDate": "2026-09-18",
"signingDate": "2026-09-11",
"effectiveOn": null,
"commentsCloseOn": null,
"citation": "91 FR 59687",
"isSignificant": null,
"president": "Donald Trump",
"agencies": [
{
"id": 538,
"name": "Executive Office of the President",
"slug": "executive-office-of-the-president"
}
],
"docketIds": [],
"topics": [],
"htmlUrl": "https://www.federalregister.gov/documents/2026/09/18/2026-19251/presidential-determination-on-major-drug-transit-or-major-illicit-drug-producing-countries-for",
"pdfUrl": "https://www.govinfo.gov/content/pkg/FR-2026-09-18/pdf/2026-19251.pdf"
},
{
"documentNumber": "2026-19053",
"docType": "Presidential Document",
"presidentialDocType": "notice",
"executiveOrderNumber": null,
"title": "Continuation of the National Emergency With Respect to Persons Who Commit, Threaten To Commit, or Support Terrorism",
"abstract": null,
"publicationDate": "2026-09-16",
"signingDate": "2026-09-11",
"effectiveOn": null,
"commentsCloseOn": null,
"citation": "91 FR 58805",
"isSignificant": null,
"president": "Donald Trump",
"agencies": [
{
"id": 538,
"name": "Executive Office of the President",
"slug": "executive-office-of-the-president"
}
],
"docketIds": [],
"topics": [],
"htmlUrl": "https://www.federalregister.gov/documents/2026/09/16/2026-19053/continuation-of-the-national-emergency-with-respect-to-persons-who-commit-threaten-to-commit-or",
"pdfUrl": "https://www.govinfo.gov/content/pkg/FR-2026-09-16/pdf/2026-19053.pdf"
}
],
"pages": {
"presidential": {
"total": 50,
"offset": 0,
"limit": 2,
"nextOffset": 2
}
}
}{
"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
Astreus API key (pk_live_...), created on the Developers page in the terminal. Also accepted as Authorization: Bearer pk_live_....
Path Parameters
ISO 3166-1 alpha-2 country code (e.g. US).
congress, legislation, executive, regulation, spending, feed Query Parameters
congress only: house, senate, joint or all (default all). Passing it with any other view is a 400.
house, senate, joint, all Row arrays of the view to page, comma-separated (congress: members, committees, meetings, hearings, votes; legislation: bills; executive: presidential, packages; regulation: rules, dockets; spending: awards, recipients, byAgency; feed: events); the others are left out. Paging without section is a 400.
Rows per section, 1–200, default 50.
1 <= x <= 200Rows to skip per section.
x >= 0Words that filter each section's rows.
true = every row of every section, uncompacted (the terminal's panels). Does not combine with section, limit, offset or q.
Response
OK