Saipe get
curl --request POST \
--url https://api.aisa.one/apis/v1/census-gov/census/saipe-get \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"state": "30"
}'import requests
url = "https://api.aisa.one/apis/v1/census-gov/census/saipe-get"
payload = { "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({state: '30'})
};
fetch('https://api.aisa.one/apis/v1/census-gov/census/saipe-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/saipe-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([
'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/saipe-get"
payload := strings.NewReader("{\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/saipe-get")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"state\": \"30\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/census-gov/census/saipe-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 \"state\": \"30\"\n}"
response = http.request(request)
puts response.read_body{
"content_hash": "4860700c04e5b081bccdf8447b3239da65fbf3574404d3421f701ccd5021aff6",
"file_name": "est24-mt.txt",
"file_url": "https://www2.census.gov/programs-surveys/saipe/datasets/2024/2024-state-and-county/est24-mt.txt",
"hash_source": "sha256:file_bytes",
"last_modified": "2026-01-27T15:47:47Z",
"observed_at_ms": 1792345612128,
"publication_id": "saipe2024:est24-mt.txt:2026-01-27T15:47:47Z",
"record": {
"county_fips": "031",
"file_tag": "est24-mt.txt 07JAN2026",
"geo_id": "30031",
"level": "county",
"median_household_income": {
"ci_lower": 93786,
"ci_upper": 108120,
"estimate": 100953
},
"name": "Gallatin County",
"postal": "MT",
"poverty_age_0_17": {
"ci_lower": 767,
"ci_upper": 1725,
"estimate": 1246,
"percent": 5.5,
"percent_ci_lower": 3.4,
"percent_ci_upper": 7.6
},
"poverty_age_0_4": null,
"poverty_all_ages": {
"ci_lower": 6981,
"ci_upper": 10459,
"estimate": 8720,
"percent": 7.1,
"percent_ci_lower": 5.7,
"percent_ci_upper": 8.5
},
"poverty_related_children_5_17": {
"ci_lower": 486,
"ci_upper": 1218,
"estimate": 852,
"percent": 5,
"percent_ci_lower": 2.9,
"percent_ci_upper": 7.1
},
"publication_id": "saipe2024:est24-mt.txt:2026-01-27T15:47:47Z",
"retrieved_at": "2026-10-18T17:46:52Z",
"source_record_id": "saipe2024:30031",
"source_url": "https://www2.census.gov/programs-surveys/saipe/datasets/2024/2024-state-and-county/est24-mt.txt",
"state_fips": "30",
"year": 2024
},
"retrieved_at": "2026-10-18T17:46:52Z",
"size_bytes": 15105,
"source_url": "https://www2.census.gov/programs-surveys/saipe/datasets/2024/2024-state-and-county/est24-mt.txt",
"year": 2024
}
US Census Bureau
Saipe get
Fetch one county’s poverty and median household income estimates (Gallatin County: state 30, county 031).
POST
https://api.aisa.one
/
apis
/
v1
/
census-gov
/
census
/
saipe-get
Saipe get
curl --request POST \
--url https://api.aisa.one/apis/v1/census-gov/census/saipe-get \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"state": "30"
}'import requests
url = "https://api.aisa.one/apis/v1/census-gov/census/saipe-get"
payload = { "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({state: '30'})
};
fetch('https://api.aisa.one/apis/v1/census-gov/census/saipe-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/saipe-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([
'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/saipe-get"
payload := strings.NewReader("{\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/saipe-get")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"state\": \"30\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/census-gov/census/saipe-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 \"state\": \"30\"\n}"
response = http.request(request)
puts response.read_body{
"content_hash": "4860700c04e5b081bccdf8447b3239da65fbf3574404d3421f701ccd5021aff6",
"file_name": "est24-mt.txt",
"file_url": "https://www2.census.gov/programs-surveys/saipe/datasets/2024/2024-state-and-county/est24-mt.txt",
"hash_source": "sha256:file_bytes",
"last_modified": "2026-01-27T15:47:47Z",
"observed_at_ms": 1792345612128,
"publication_id": "saipe2024:est24-mt.txt:2026-01-27T15:47:47Z",
"record": {
"county_fips": "031",
"file_tag": "est24-mt.txt 07JAN2026",
"geo_id": "30031",
"level": "county",
"median_household_income": {
"ci_lower": 93786,
"ci_upper": 108120,
"estimate": 100953
},
"name": "Gallatin County",
"postal": "MT",
"poverty_age_0_17": {
"ci_lower": 767,
"ci_upper": 1725,
"estimate": 1246,
"percent": 5.5,
"percent_ci_lower": 3.4,
"percent_ci_upper": 7.6
},
"poverty_age_0_4": null,
"poverty_all_ages": {
"ci_lower": 6981,
"ci_upper": 10459,
"estimate": 8720,
"percent": 7.1,
"percent_ci_lower": 5.7,
"percent_ci_upper": 8.5
},
"poverty_related_children_5_17": {
"ci_lower": 486,
"ci_upper": 1218,
"estimate": 852,
"percent": 5,
"percent_ci_lower": 2.9,
"percent_ci_upper": 7.1
},
"publication_id": "saipe2024:est24-mt.txt:2026-01-27T15:47:47Z",
"retrieved_at": "2026-10-18T17:46:52Z",
"source_record_id": "saipe2024:30031",
"source_url": "https://www2.census.gov/programs-surveys/saipe/datasets/2024/2024-state-and-county/est24-mt.txt",
"state_fips": "30",
"year": 2024
},
"retrieved_at": "2026-10-18T17:46:52Z",
"size_bytes": 15105,
"source_url": "https://www2.census.gov/programs-surveys/saipe/datasets/2024/2024-state-and-county/est24-mt.txt",
"year": 2024
}
Request contract
- Method and path: POST /apis/v1/census-gov/census/saipe-get
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/census-gov/census/saipe-get
{
"operationId": "census-gov.census.saipe-get",
"method": "POST",
"path": "/apis/v1/census-gov/census/saipe-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",
"state": "30",
"year": 2024
}
}
},
"schema": {
"additionalProperties": true,
"properties": {
"county": {
"description": "3-digit county FIPS; omitted or 000 = the state row. Pattern: ^[0-9]{3}$.",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"state": {
"description": "State as 2-digit FIPS (30) or postal code (MT); 00 or US for the national row. Pattern: ^([0-9]{2}|[A-Za-z]{2})$.",
"type": "string"
},
"year": {
"description": "SAIPE estimate year (directory saipe/datasets/<year>/<year>-state-and-county/). Default: the newest year directory. Positions verified against the 2019 and 2024 layout READMEs; lines that do not fit the layout are rejected.\n\nProvider reference: minimum 2010; maximum 2035.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body",
"max": 2035,
"min": 2010
}
}
},
"required": [
"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
application/json
Response
One SAIPE record by state and county FIPS for a year: reads est-.txt (county omitted or 000 = the state row) or, for state 00 / US, the national row of estus.txt. Same record shape as saipe_list.
The response contains the tool result directly.
| Documented field | Provider type | Description |
|---|---|---|
content_hash | string | SHA-256 of the decoded file bytes. |
file_name | string | |
file_url | string | |
hash_source | string | |
last_modified | string | Last-Modified header, ISO 8601. |
observed_at_ms | number | |
publication_id | string | |
record | object | One fixed-width line of estall.txt / est-.txt / estus.txt, positions per the state-county estimate layout README. |
retrieved_at | string | |
size_bytes | number | Decoded byte length of the file (the server sends it gzip-encoded without Content-Length). |
source_url | string | |
year | number |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.