Country officials
curl --request GET \
--url https://astreus.ai/api/v1/countries/{iso}/officials \
--header 'X-API-KEY: <api-key>'import requests
url = "https://astreus.ai/api/v1/countries/{iso}/officials"
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}/officials', 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}/officials",
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}/officials"
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}/officials")
.header("X-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://astreus.ai/api/v1/countries/{iso}/officials")
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{
"eraCode": null,
"bodies": [
{
"body": "US_EXECUTIVE",
"asOf": "2026-11-01",
"holders": 25
},
{
"body": "US_MILITARY",
"asOf": null,
"holders": 26
}
],
"rosters": [
{
"body": "US_EXECUTIVE",
"asOf": "2026-11-01",
"holders": [
{
"officeCode": "US_PRESIDENT",
"title": "President",
"shortLabel": "President",
"department": "White House",
"name": "Donald J. Trump",
"since": "2025-01-20",
"sincePrecision": "day",
"acting": false,
"personKey": "USGVP00001",
"photoUrl": "/api/v1/people/USGVP00001/photo",
"basis": "roster",
"until": null,
"appointedBy": null
},
{
"officeCode": "US_VICE_PRESIDENT",
"title": "Vice President",
"shortLabel": "Vice President",
"department": "White House",
"name": "JD Vance",
"since": "2025-01-20",
"sincePrecision": "day",
"acting": false,
"personKey": "USGVP00002",
"photoUrl": "/api/v1/people/USGVP00002/photo",
"basis": "roster",
"until": null,
"appointedBy": null
}
]
}
],
"eras": {
"US_EXECUTIVE": [
{
"eraCode": "US_ADMIN_TRUMP_47",
"label": "Trump administration",
"leaderName": "Donald J. Trump",
"from": "2025-01-20",
"to": null,
"isCurrent": true
},
{
"eraCode": "US_ADMIN_BIDEN_46",
"label": "Biden administration",
"leaderName": "Joseph R. Biden Jr.",
"from": "2021-01-20",
"to": "2025-01-20",
"isCurrent": false
}
],
"US_FED_BANKS": [
{
"eraCode": "US_FED_CHAIR_WARSH",
"label": "Warsh Fed",
"leaderName": "Kevin M. Warsh",
"from": "2026-05-22",
"to": null,
"isCurrent": true
},
{
"eraCode": "US_FED_CHAIR_POWELL",
"label": "Powell Fed",
"leaderName": "Jerome H. Powell",
"from": "2018-02-05",
"to": "2026-05-22",
"isCurrent": false
}
],
"US_FED_BOARD": [
{
"eraCode": "US_FED_CHAIR_WARSH",
"label": "Warsh Fed",
"leaderName": "Kevin M. Warsh",
"from": "2026-05-22",
"to": null,
"isCurrent": true
},
{
"eraCode": "US_FED_CHAIR_POWELL",
"label": "Powell Fed",
"leaderName": "Jerome H. Powell",
"from": "2018-02-05",
"to": "2026-05-22",
"isCurrent": false
}
],
"US_SCOTUS": [
{
"eraCode": "US_SCOTUS_COURT_ROBERTS",
"label": "Roberts Court",
"leaderName": "John G. Roberts, Jr.",
"from": "2005-09-29",
"to": null,
"isCurrent": true
},
{
"eraCode": "US_SCOTUS_COURT_REHNQUIST",
"label": "Rehnquist Court",
"leaderName": "William H. Rehnquist",
"from": "1986-09-26",
"to": "2005-09-03",
"isCurrent": false
}
]
},
"total": 79,
"offset": 0,
"limit": 2,
"hasMore": true,
"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>"
]
}Macro
Country officials
Public officeholders from the people registry: executive cabinet, central-bank board, regional bank presidents. Defaults to the sitting era. An unknown `body` or `era` is a 400 naming the country's. With `limit` / `offset` the holders are paged in roster order: { eraCode, bodies (every body with its holder count), rosters (this page's holders), eras, total, offset, limit, hasMore, nextOffset }.
GET
/
api
/
v1
/
countries
/
{iso}
/
officials
Country officials
curl --request GET \
--url https://astreus.ai/api/v1/countries/{iso}/officials \
--header 'X-API-KEY: <api-key>'import requests
url = "https://astreus.ai/api/v1/countries/{iso}/officials"
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}/officials', 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}/officials",
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}/officials"
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}/officials")
.header("X-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://astreus.ai/api/v1/countries/{iso}/officials")
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{
"eraCode": null,
"bodies": [
{
"body": "US_EXECUTIVE",
"asOf": "2026-11-01",
"holders": 25
},
{
"body": "US_MILITARY",
"asOf": null,
"holders": 26
}
],
"rosters": [
{
"body": "US_EXECUTIVE",
"asOf": "2026-11-01",
"holders": [
{
"officeCode": "US_PRESIDENT",
"title": "President",
"shortLabel": "President",
"department": "White House",
"name": "Donald J. Trump",
"since": "2025-01-20",
"sincePrecision": "day",
"acting": false,
"personKey": "USGVP00001",
"photoUrl": "/api/v1/people/USGVP00001/photo",
"basis": "roster",
"until": null,
"appointedBy": null
},
{
"officeCode": "US_VICE_PRESIDENT",
"title": "Vice President",
"shortLabel": "Vice President",
"department": "White House",
"name": "JD Vance",
"since": "2025-01-20",
"sincePrecision": "day",
"acting": false,
"personKey": "USGVP00002",
"photoUrl": "/api/v1/people/USGVP00002/photo",
"basis": "roster",
"until": null,
"appointedBy": null
}
]
}
],
"eras": {
"US_EXECUTIVE": [
{
"eraCode": "US_ADMIN_TRUMP_47",
"label": "Trump administration",
"leaderName": "Donald J. Trump",
"from": "2025-01-20",
"to": null,
"isCurrent": true
},
{
"eraCode": "US_ADMIN_BIDEN_46",
"label": "Biden administration",
"leaderName": "Joseph R. Biden Jr.",
"from": "2021-01-20",
"to": "2025-01-20",
"isCurrent": false
}
],
"US_FED_BANKS": [
{
"eraCode": "US_FED_CHAIR_WARSH",
"label": "Warsh Fed",
"leaderName": "Kevin M. Warsh",
"from": "2026-05-22",
"to": null,
"isCurrent": true
},
{
"eraCode": "US_FED_CHAIR_POWELL",
"label": "Powell Fed",
"leaderName": "Jerome H. Powell",
"from": "2018-02-05",
"to": "2026-05-22",
"isCurrent": false
}
],
"US_FED_BOARD": [
{
"eraCode": "US_FED_CHAIR_WARSH",
"label": "Warsh Fed",
"leaderName": "Kevin M. Warsh",
"from": "2026-05-22",
"to": null,
"isCurrent": true
},
{
"eraCode": "US_FED_CHAIR_POWELL",
"label": "Powell Fed",
"leaderName": "Jerome H. Powell",
"from": "2018-02-05",
"to": "2026-05-22",
"isCurrent": false
}
],
"US_SCOTUS": [
{
"eraCode": "US_SCOTUS_COURT_ROBERTS",
"label": "Roberts Court",
"leaderName": "John G. Roberts, Jr.",
"from": "2005-09-29",
"to": null,
"isCurrent": true
},
{
"eraCode": "US_SCOTUS_COURT_REHNQUIST",
"label": "Rehnquist Court",
"leaderName": "William H. Rehnquist",
"from": "1986-09-26",
"to": "2005-09-03",
"isCurrent": false
}
]
},
"total": 79,
"offset": 0,
"limit": 2,
"hasMore": true,
"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
apiKeycognitoIdToken
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).
Query Parameters
Step to a past administration or chair era; the roster is read at that era's last day.
Office body codes, comma-separated, up to 20 (e.g. AE_CBUAE_BOARD): only those rosters and eras.
Holders per page, 1–200, default 50.
Required range:
1 <= x <= 200Holders to skip, default 0.
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.