curl --request POST \
--url https://api.aisa.one/apis/v1/census-gov/census/popest-get \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"file": "counties",
"state": "30"
}
'import requests
url = "https://api.aisa.one/apis/v1/census-gov/census/popest-get"
payload = {
"file": "counties",
"state": "30"
}
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({file: 'counties', state: '30'})
};
fetch('https://api.aisa.one/apis/v1/census-gov/census/popest-get', 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/census-gov/census/popest-get",
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([
'file' => 'counties',
'state' => '30'
]),
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/census-gov/census/popest-get"
payload := strings.NewReader("{\n \"file\": \"counties\",\n \"state\": \"30\"\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/census-gov/census/popest-get")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"file\": \"counties\",\n \"state\": \"30\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/census-gov/census/popest-get")
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 \"file\": \"counties\",\n \"state\": \"30\"\n}"
response = http.request(request)
puts response.read_body{
"content_hash": "4f5a499d851e2cb48fd7a5405e5a9235453a8a66933657aacd10df0e264f35d5",
"count": 6,
"file": "counties",
"file_name": "co-est2025-alldata.csv",
"file_url": "https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/counties/totals/co-est2025-alldata.csv",
"geography": {
"concit": null,
"county": "031",
"cousub": null,
"geo_id": "30031",
"name": "Gallatin County",
"place": null,
"state": "30",
"sumlev": "050"
},
"hash_source": "sha256:raw_file_bytes",
"last_modified": "2026-03-26T12:15:28Z",
"observed_at_ms": 1792345644519,
"publication_id": "v2025:co-est2025-alldata.csv:2026-03-26T12:15:28Z",
"records": [
{
"births": 290,
"county": "031",
"ctyname": "Gallatin County",
"deaths": 133,
"division": "8",
"domesticmig": 489,
"estimates_base_2020": 118957,
"file": "counties",
"geo_id": "30031",
"gqestimates": 4148,
"gqestimates_base_2020": 4158,
"internationalmig": 7,
"naturalchg": 157,
"netmig": 496,
"npopchg": 636,
"popestimate": 119593,
"publication_id": "v2025:co-est2025-alldata.csv:2026-03-26T12:15:28Z",
"rbirth": null,
"rdeath": null,
"rdomesticmig": null,
"region": "4",
"residual": -17,
"retrieved_at": "2026-10-18T17:47:24Z",
"rinternationalmig": null,
"rnaturalchg": null,
"rnetmig": null,
"source_record_id": "v2025:counties:050:30031:2020",
"source_url": "https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/counties/totals/co-est2025-alldata.csv",
"state": "30",
"stname": "Montana",
"sumlev": "050",
"vintage": 2025,
"year": 2020
},
{
"births": 1196,
"county": "031",
"ctyname": "Gallatin County",
"deaths": 649,
"division": "8",
"domesticmig": 2944,
"estimates_base_2020": 118957,
"file": "counties",
"geo_id": "30031",
"gqestimates": 4138,
"gqestimates_base_2020": 4158,
"internationalmig": 131,
"naturalchg": 547,
"netmig": 3075,
"npopchg": 3510,
"popestimate": 123103,
"publication_id": "v2025:co-est2025-alldata.csv:2026-03-26T12:15:28Z",
"rbirth": 9.855951478,
"rdeath": 5.348254607,
"rdomesticmig": 24.26080364,
"region": "4",
"residual": -112,
"retrieved_at": "2026-10-18T17:47:24Z",
"rinternationalmig": 1.079539836,
"rnaturalchg": 4.507696872,
"rnetmig": 25.34034348,
"source_record_id": "v2025:counties:050:30031:2021",
"source_url": "https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/counties/totals/co-est2025-alldata.csv",
"state": "30",
"stname": "Montana",
"sumlev": "050",
"vintage": 2025,
"year": 2021
},
{
"births": 1224,
"county": "031",
"ctyname": "Gallatin County",
"deaths": 709,
"division": "8",
"domesticmig": 883,
"estimates_base_2020": 118957,
"file": "counties",
"geo_id": "30031",
"gqestimates": 4162,
"gqestimates_base_2020": 4158,
"internationalmig": 189,
"naturalchg": 515,
"netmig": 1072,
"npopchg": 1610,
"popestimate": 124713,
"publication_id": "v2025:co-est2025-alldata.csv:2026-03-26T12:15:28Z",
"rbirth": 9.878296801,
"rdeath": 5.721987281,
"rdomesticmig": 7.126254963,
"region": "4",
"residual": 23,
"retrieved_at": "2026-10-18T17:47:24Z",
"rinternationalmig": 1.525325241,
"rnaturalchg": 4.15630952,
"rnetmig": 8.651580205,
"source_record_id": "v2025:counties:050:30031:2022",
"source_url": "https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/counties/totals/co-est2025-alldata.csv",
"state": "30",
"stname": "Montana",
"sumlev": "050",
"vintage": 2025,
"year": 2022
},
{
"births": 1122,
"county": "031",
"ctyname": "Gallatin County",
"deaths": 710,
"division": "8",
"domesticmig": 639,
"estimates_base_2020": 118957,
"file": "counties",
"geo_id": "30031",
"gqestimates": 4164,
"gqestimates_base_2020": 4158,
"internationalmig": 175,
"naturalchg": 412,
"netmig": 814,
"npopchg": 1239,
"popestimate": 125952,
"publication_id": "v2025:co-est2025-alldata.csv:2026-03-26T12:15:28Z",
"rbirth": 8.952187182,
"rdeath": 5.664931283,
"rdomesticmig": 5.098438155,
"region": "4",
"residual": 13,
"retrieved_at": "2026-10-18T17:47:24Z",
"rinternationalmig": 1.39628588,
"rnaturalchg": 3.287255899,
"rnetmig": 6.494724034,
"source_record_id": "v2025:counties:050:30031:2023",
"source_url": "https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/counties/totals/co-est2025-alldata.csv",
"state": "30",
"stname": "Montana",
"sumlev": "050",
"vintage": 2025,
"year": 2023
},
{
"births": 1217,
"county": "031",
"ctyname": "Gallatin County",
"deaths": 707,
"division": "8",
"domesticmig": 424,
"estimates_base_2020": 118957,
"file": "counties",
"geo_id": "30031",
"gqestimates": 4163,
"gqestimates_base_2020": 4158,
"internationalmig": 605,
"naturalchg": 510,
"netmig": 1029,
"npopchg": 1546,
"popestimate": 127498,
"publication_id": "v2025:co-est2025-alldata.csv:2026-03-26T12:15:28Z",
"rbirth": 9.603472085,
"rdeath": 5.579009667,
"rdomesticmig": 3.345827579,
"region": "4",
"residual": 7,
"retrieved_at": "2026-10-18T17:47:24Z",
"rinternationalmig": 4.774117183,
"rnaturalchg": 4.024462419,
"rnetmig": 8.119944762,
"source_record_id": "v2025:counties:050:30031:2024",
"source_url": "https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/counties/totals/co-est2025-alldata.csv",
"state": "30",
"stname": "Montana",
"sumlev": "050",
"vintage": 2025,
"year": 2024
},
{
"births": 1137,
"county": "031",
"ctyname": "Gallatin County",
"deaths": 700,
"division": "8",
"domesticmig": 545,
"estimates_base_2020": 118957,
"file": "counties",
"geo_id": "30031",
"gqestimates": 4162,
"gqestimates_base_2020": 4158,
"internationalmig": 254,
"naturalchg": 437,
"netmig": 799,
"npopchg": 1242,
"popestimate": 128740,
"publication_id": "v2025:co-est2025-alldata.csv:2026-03-26T12:15:28Z",
"rbirth": 8.874561931,
"rdeath": 5.463670494,
"rdomesticmig": 4.253857742,
"region": "4",
"residual": 6,
"retrieved_at": "2026-10-18T17:47:24Z",
"rinternationalmig": 1.982531865,
"rnaturalchg": 3.410891437,
"rnetmig": 6.236389607,
"source_record_id": "v2025:counties:050:30031:2025",
"source_url": "https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/counties/totals/co-est2025-alldata.csv",
"state": "30",
"stname": "Montana",
"sumlev": "050",
"vintage": 2025,
"year": 2025
}
],
"retrieved_at": "2026-10-18T17:47:24Z",
"size_bytes": 2071735,
"source_url": "https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/counties/totals/co-est2025-alldata.csv",
"vintage": 2025,
"vintage_directory": "2020-2025",
"years": [
2020,
2021,
2022,
2023,
2024,
2025
]
}Popest get
Fetch one county (Gallatin County 30 031) or one place (Billings city, place 06550) with every estimate year.
curl --request POST \
--url https://api.aisa.one/apis/v1/census-gov/census/popest-get \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"file": "counties",
"state": "30"
}
'import requests
url = "https://api.aisa.one/apis/v1/census-gov/census/popest-get"
payload = {
"file": "counties",
"state": "30"
}
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({file: 'counties', state: '30'})
};
fetch('https://api.aisa.one/apis/v1/census-gov/census/popest-get', 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/census-gov/census/popest-get",
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([
'file' => 'counties',
'state' => '30'
]),
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/census-gov/census/popest-get"
payload := strings.NewReader("{\n \"file\": \"counties\",\n \"state\": \"30\"\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/census-gov/census/popest-get")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"file\": \"counties\",\n \"state\": \"30\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/census-gov/census/popest-get")
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 \"file\": \"counties\",\n \"state\": \"30\"\n}"
response = http.request(request)
puts response.read_body{
"content_hash": "4f5a499d851e2cb48fd7a5405e5a9235453a8a66933657aacd10df0e264f35d5",
"count": 6,
"file": "counties",
"file_name": "co-est2025-alldata.csv",
"file_url": "https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/counties/totals/co-est2025-alldata.csv",
"geography": {
"concit": null,
"county": "031",
"cousub": null,
"geo_id": "30031",
"name": "Gallatin County",
"place": null,
"state": "30",
"sumlev": "050"
},
"hash_source": "sha256:raw_file_bytes",
"last_modified": "2026-03-26T12:15:28Z",
"observed_at_ms": 1792345644519,
"publication_id": "v2025:co-est2025-alldata.csv:2026-03-26T12:15:28Z",
"records": [
{
"births": 290,
"county": "031",
"ctyname": "Gallatin County",
"deaths": 133,
"division": "8",
"domesticmig": 489,
"estimates_base_2020": 118957,
"file": "counties",
"geo_id": "30031",
"gqestimates": 4148,
"gqestimates_base_2020": 4158,
"internationalmig": 7,
"naturalchg": 157,
"netmig": 496,
"npopchg": 636,
"popestimate": 119593,
"publication_id": "v2025:co-est2025-alldata.csv:2026-03-26T12:15:28Z",
"rbirth": null,
"rdeath": null,
"rdomesticmig": null,
"region": "4",
"residual": -17,
"retrieved_at": "2026-10-18T17:47:24Z",
"rinternationalmig": null,
"rnaturalchg": null,
"rnetmig": null,
"source_record_id": "v2025:counties:050:30031:2020",
"source_url": "https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/counties/totals/co-est2025-alldata.csv",
"state": "30",
"stname": "Montana",
"sumlev": "050",
"vintage": 2025,
"year": 2020
},
{
"births": 1196,
"county": "031",
"ctyname": "Gallatin County",
"deaths": 649,
"division": "8",
"domesticmig": 2944,
"estimates_base_2020": 118957,
"file": "counties",
"geo_id": "30031",
"gqestimates": 4138,
"gqestimates_base_2020": 4158,
"internationalmig": 131,
"naturalchg": 547,
"netmig": 3075,
"npopchg": 3510,
"popestimate": 123103,
"publication_id": "v2025:co-est2025-alldata.csv:2026-03-26T12:15:28Z",
"rbirth": 9.855951478,
"rdeath": 5.348254607,
"rdomesticmig": 24.26080364,
"region": "4",
"residual": -112,
"retrieved_at": "2026-10-18T17:47:24Z",
"rinternationalmig": 1.079539836,
"rnaturalchg": 4.507696872,
"rnetmig": 25.34034348,
"source_record_id": "v2025:counties:050:30031:2021",
"source_url": "https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/counties/totals/co-est2025-alldata.csv",
"state": "30",
"stname": "Montana",
"sumlev": "050",
"vintage": 2025,
"year": 2021
},
{
"births": 1224,
"county": "031",
"ctyname": "Gallatin County",
"deaths": 709,
"division": "8",
"domesticmig": 883,
"estimates_base_2020": 118957,
"file": "counties",
"geo_id": "30031",
"gqestimates": 4162,
"gqestimates_base_2020": 4158,
"internationalmig": 189,
"naturalchg": 515,
"netmig": 1072,
"npopchg": 1610,
"popestimate": 124713,
"publication_id": "v2025:co-est2025-alldata.csv:2026-03-26T12:15:28Z",
"rbirth": 9.878296801,
"rdeath": 5.721987281,
"rdomesticmig": 7.126254963,
"region": "4",
"residual": 23,
"retrieved_at": "2026-10-18T17:47:24Z",
"rinternationalmig": 1.525325241,
"rnaturalchg": 4.15630952,
"rnetmig": 8.651580205,
"source_record_id": "v2025:counties:050:30031:2022",
"source_url": "https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/counties/totals/co-est2025-alldata.csv",
"state": "30",
"stname": "Montana",
"sumlev": "050",
"vintage": 2025,
"year": 2022
},
{
"births": 1122,
"county": "031",
"ctyname": "Gallatin County",
"deaths": 710,
"division": "8",
"domesticmig": 639,
"estimates_base_2020": 118957,
"file": "counties",
"geo_id": "30031",
"gqestimates": 4164,
"gqestimates_base_2020": 4158,
"internationalmig": 175,
"naturalchg": 412,
"netmig": 814,
"npopchg": 1239,
"popestimate": 125952,
"publication_id": "v2025:co-est2025-alldata.csv:2026-03-26T12:15:28Z",
"rbirth": 8.952187182,
"rdeath": 5.664931283,
"rdomesticmig": 5.098438155,
"region": "4",
"residual": 13,
"retrieved_at": "2026-10-18T17:47:24Z",
"rinternationalmig": 1.39628588,
"rnaturalchg": 3.287255899,
"rnetmig": 6.494724034,
"source_record_id": "v2025:counties:050:30031:2023",
"source_url": "https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/counties/totals/co-est2025-alldata.csv",
"state": "30",
"stname": "Montana",
"sumlev": "050",
"vintage": 2025,
"year": 2023
},
{
"births": 1217,
"county": "031",
"ctyname": "Gallatin County",
"deaths": 707,
"division": "8",
"domesticmig": 424,
"estimates_base_2020": 118957,
"file": "counties",
"geo_id": "30031",
"gqestimates": 4163,
"gqestimates_base_2020": 4158,
"internationalmig": 605,
"naturalchg": 510,
"netmig": 1029,
"npopchg": 1546,
"popestimate": 127498,
"publication_id": "v2025:co-est2025-alldata.csv:2026-03-26T12:15:28Z",
"rbirth": 9.603472085,
"rdeath": 5.579009667,
"rdomesticmig": 3.345827579,
"region": "4",
"residual": 7,
"retrieved_at": "2026-10-18T17:47:24Z",
"rinternationalmig": 4.774117183,
"rnaturalchg": 4.024462419,
"rnetmig": 8.119944762,
"source_record_id": "v2025:counties:050:30031:2024",
"source_url": "https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/counties/totals/co-est2025-alldata.csv",
"state": "30",
"stname": "Montana",
"sumlev": "050",
"vintage": 2025,
"year": 2024
},
{
"births": 1137,
"county": "031",
"ctyname": "Gallatin County",
"deaths": 700,
"division": "8",
"domesticmig": 545,
"estimates_base_2020": 118957,
"file": "counties",
"geo_id": "30031",
"gqestimates": 4162,
"gqestimates_base_2020": 4158,
"internationalmig": 254,
"naturalchg": 437,
"netmig": 799,
"npopchg": 1242,
"popestimate": 128740,
"publication_id": "v2025:co-est2025-alldata.csv:2026-03-26T12:15:28Z",
"rbirth": 8.874561931,
"rdeath": 5.463670494,
"rdomesticmig": 4.253857742,
"region": "4",
"residual": 6,
"retrieved_at": "2026-10-18T17:47:24Z",
"rinternationalmig": 1.982531865,
"rnaturalchg": 3.410891437,
"rnetmig": 6.236389607,
"source_record_id": "v2025:counties:050:30031:2025",
"source_url": "https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/counties/totals/co-est2025-alldata.csv",
"state": "30",
"stname": "Montana",
"sumlev": "050",
"vintage": 2025,
"year": 2025
}
],
"retrieved_at": "2026-10-18T17:47:24Z",
"size_bytes": 2071735,
"source_url": "https://www2.census.gov/programs-surveys/popest/datasets/2020-2025/counties/totals/co-est2025-alldata.csv",
"vintage": 2025,
"vintage_directory": "2020-2025",
"years": [
2020,
2021,
2022,
2023,
2024,
2025
]
}Request contract
- Method and path: POST /apis/v1/census-gov/census/popest-get
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/census-gov/census/popest-get
{
"operationId": "census-gov.census.popest-get",
"method": "POST",
"path": "/apis/v1/census-gov/census/popest-get",
"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": {
"county": "031",
"file": "counties",
"state": "30"
}
}
},
"schema": {
"additionalProperties": true,
"properties": {
"concit": {
"description": "5-digit consolidated city FIPS (subcounty). Pattern: ^[0-9]{5}$.",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"county": {
"description": "3-digit county FIPS. Pattern: ^[0-9]{3}$.",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"cousub": {
"description": "5-digit county subdivision FIPS (subcounty; needs county). Pattern: ^[0-9]{5}$.",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"file": {
"description": "counties: counties/totals/co-est<YYYY>-alldata.csv (states and counties). subcounty: cities/totals/sub-est<YYYY>.csv (national, ~7.5 MB) or, with state, sub-est<YYYY>_<state>.csv.\n\nProvider reference: allowed values [\"counties\", \"subcounty\"].",
"type": "string"
},
"place": {
"description": "5-digit place FIPS (subcounty). Pattern: ^[0-9]{5}$.",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"state": {
"description": "2-digit state FIPS (30 = Montana). Pattern: ^[0-9]{2}$.",
"type": "string"
},
"sumlev": {
"description": "Summary level when the codes alone are ambiguous (e.g. 157 vs 162). Pattern: ^[0-9]{3}$.",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"vintage": {
"description": "Vintage year YYYY of the 2020-YYYY directory. Default: the newest directory listed under popest/datasets/.\n\nProvider reference: minimum 2021; maximum 2035.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body",
"max": 2035,
"min": 2021
}
}
},
"required": [
"file",
"state"
],
"type": "object"
}
}
},
"required": true
},
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
Cost and request rules
Usage-based pricing. Default request estimate: $0.0005 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.Authorizations
Body
Response
One PEP geography by its own codes, as its estimate-year records (same shape as popest_list). counties: state + county (county omitted or 000 = the state row). subcounty: the per-state file; select by place (default SUMLEV 162, or 157 together with county), cousub + county (SUMLEV 061), concit, or an explicit sumlev; nothing but state = the state row. More than one matching row is invalid_input asking for sumlev; none is not_found.
The response contains the tool result directly.
| Documented field | Provider type | Description |
|---|---|---|
content_hash | string | SHA-256 of the raw file bytes as served (the publisher posts no hash). |
count | number | Number of year records (one per estimate year). |
file | string | counties: counties/totals/co-est-alldata.csv (states and counties). subcounty: cities/totals/sub-est.csv (national, ~7.5 MB) or, with state, sub-est_.csv. |
file_name | string | |
file_url | string | |
geography | object | |
hash_source | string | |
last_modified | string | Last-Modified header of the file, ISO 8601. |
observed_at_ms | number | |
publication_id | string | |
records | object[] | |
retrieved_at | string | |
size_bytes | number | Content-Length of the file (raw bytes as served). |
source_url | string | |
vintage | number | |
vintage_directory | string | |
years | number[] | Estimate years carried by the file (POPESTIMATE columns). |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.