curl --request POST \
--url https://api.aisa.one/apis/v1/apps-bea-gov/economic-statistics/records-list \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"state": "DE",
"table": "CAINC1"
}
'import requests
url = "https://api.aisa.one/apis/v1/apps-bea-gov/economic-statistics/records-list"
payload = {
"state": "DE",
"table": "CAINC1"
}
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: 'DE', table: 'CAINC1'})
};
fetch('https://api.aisa.one/apis/v1/apps-bea-gov/economic-statistics/records-list', 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/apps-bea-gov/economic-statistics/records-list",
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' => 'DE',
'table' => 'CAINC1'
]),
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/apps-bea-gov/economic-statistics/records-list"
payload := strings.NewReader("{\n \"state\": \"DE\",\n \"table\": \"CAINC1\"\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/apps-bea-gov/economic-statistics/records-list")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"state\": \"DE\",\n \"table\": \"CAINC1\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/apps-bea-gov/economic-statistics/records-list")
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\": \"DE\",\n \"table\": \"CAINC1\"\n}"
response = http.request(request)
puts response.read_body{
"geo_fips_in_page": [
"10000",
"10001",
"10003",
"10005"
],
"includes_state_total": true,
"last_updated": "2026-02-05",
"last_updated_note": "Last updated: February 5, 2026-- new statistics for 2024; revised statistics for 2020-2023.",
"line_code": "3",
"next_cursor": null,
"notes": [
{
"seq": "2",
"text": "2. Per capita personal income is total personal income divided by total midyear population."
},
{
"seq": "19",
"text": "Note. All dollar estimates are in thousands of current dollars (not adjusted for inflation). Statistics presented in thousands of dollars do not indicate more precision than statistics presented in millions of dollars."
},
{
"seq": "22",
"text": "Last updated: February 5, 2026-- new statistics for 2024; revised statistics for 2020-2023."
}
],
"observed_at_ms": 1792320173318,
"page": 1,
"publication_id": "CAINC1:2026-02-05",
"record_count": 4,
"records": [
{
"code": "CAINC1-3",
"data_value": "68061",
"flag": null,
"geo_fips": "10000",
"geo_name": "Delaware",
"line_code": "3",
"line_description": "Per capita personal income (Dollars)",
"note_refs": [
"2"
],
"publication_id": "CAINC1:2026-02-05",
"retrieved_at": "2026-10-18T10:42:53Z",
"source_record_id": "bea:CAINC1-3:10000:2024",
"source_url": "https://apps.bea.gov/itable/?ReqID=70&step=30&isuri=1&major_area=4&area=10000&year=2024&tableid=20&state=10000&statistic=3&unit_of_measure=levels&yearbegin=-1&year_end=-1",
"table": "CAINC1",
"time_period": "2024",
"unit": "Dollars",
"value": 68061
},
{
"code": "CAINC1-3",
"data_value": "55474",
"flag": null,
"geo_fips": "10001",
"geo_name": "Kent, DE",
"line_code": "3",
"line_description": "Per capita personal income (Dollars)",
"note_refs": [
"2"
],
"publication_id": "CAINC1:2026-02-05",
"retrieved_at": "2026-10-18T10:42:53Z",
"source_record_id": "bea:CAINC1-3:10001:2024",
"source_url": "https://apps.bea.gov/itable/?ReqID=70&step=30&isuri=1&major_area=4&area=10001&year=2024&tableid=20&state=10000&statistic=3&unit_of_measure=levels&yearbegin=-1&year_end=-1",
"table": "CAINC1",
"time_period": "2024",
"unit": "Dollars",
"value": 55474
},
{
"code": "CAINC1-3",
"data_value": "69609",
"flag": null,
"geo_fips": "10003",
"geo_name": "New Castle, DE",
"line_code": "3",
"line_description": "Per capita personal income (Dollars)",
"note_refs": [
"2"
],
"publication_id": "CAINC1:2026-02-05",
"retrieved_at": "2026-10-18T10:42:53Z",
"source_record_id": "bea:CAINC1-3:10003:2024",
"source_url": "https://apps.bea.gov/itable/?ReqID=70&step=30&isuri=1&major_area=4&area=10003&year=2024&tableid=20&state=10000&statistic=3&unit_of_measure=levels&yearbegin=-1&year_end=-1",
"table": "CAINC1",
"time_period": "2024",
"unit": "Dollars",
"value": 69609
},
{
"code": "CAINC1-3",
"data_value": "73647",
"flag": null,
"geo_fips": "10005",
"geo_name": "Sussex, DE",
"line_code": "3",
"line_description": "Per capita personal income (Dollars)",
"note_refs": [
"2"
],
"publication_id": "CAINC1:2026-02-05",
"retrieved_at": "2026-10-18T10:42:53Z",
"source_record_id": "bea:CAINC1-3:10005:2024",
"source_url": "https://apps.bea.gov/itable/?ReqID=70&step=30&isuri=1&major_area=4&area=10005&year=2024&tableid=20&state=10000&statistic=3&unit_of_measure=levels&yearbegin=-1&year_end=-1",
"table": "CAINC1",
"time_period": "2024",
"unit": "Dollars",
"value": 73647
}
],
"retrieved_at": "2026-10-18T10:42:53Z",
"source_url": "https://apps.bea.gov/itable/?ReqID=70&step=30&isuri=1&major_area=4&area=XX&year=2024&tableid=20&state=10000&statistic=3&unit_of_measure=levels&yearbegin=-1&year_end=-1",
"state": "DE",
"state_fips": "10000",
"table": "CAINC1",
"table_id": 20,
"title": "CAINC1 County personal income summary: personal income, population, per capita personal income",
"years": "2024"
}Records list
To collect a whole table for a state: e.g. CAINC1 line 3 (per capita personal income) for every Montana county, all years; or CAINC5N earnings by industry for every county, latest year. Follow next_cursor until it is null.
curl --request POST \
--url https://api.aisa.one/apis/v1/apps-bea-gov/economic-statistics/records-list \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"state": "DE",
"table": "CAINC1"
}
'import requests
url = "https://api.aisa.one/apis/v1/apps-bea-gov/economic-statistics/records-list"
payload = {
"state": "DE",
"table": "CAINC1"
}
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: 'DE', table: 'CAINC1'})
};
fetch('https://api.aisa.one/apis/v1/apps-bea-gov/economic-statistics/records-list', 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/apps-bea-gov/economic-statistics/records-list",
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' => 'DE',
'table' => 'CAINC1'
]),
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/apps-bea-gov/economic-statistics/records-list"
payload := strings.NewReader("{\n \"state\": \"DE\",\n \"table\": \"CAINC1\"\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/apps-bea-gov/economic-statistics/records-list")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"state\": \"DE\",\n \"table\": \"CAINC1\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/apps-bea-gov/economic-statistics/records-list")
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\": \"DE\",\n \"table\": \"CAINC1\"\n}"
response = http.request(request)
puts response.read_body{
"geo_fips_in_page": [
"10000",
"10001",
"10003",
"10005"
],
"includes_state_total": true,
"last_updated": "2026-02-05",
"last_updated_note": "Last updated: February 5, 2026-- new statistics for 2024; revised statistics for 2020-2023.",
"line_code": "3",
"next_cursor": null,
"notes": [
{
"seq": "2",
"text": "2. Per capita personal income is total personal income divided by total midyear population."
},
{
"seq": "19",
"text": "Note. All dollar estimates are in thousands of current dollars (not adjusted for inflation). Statistics presented in thousands of dollars do not indicate more precision than statistics presented in millions of dollars."
},
{
"seq": "22",
"text": "Last updated: February 5, 2026-- new statistics for 2024; revised statistics for 2020-2023."
}
],
"observed_at_ms": 1792320173318,
"page": 1,
"publication_id": "CAINC1:2026-02-05",
"record_count": 4,
"records": [
{
"code": "CAINC1-3",
"data_value": "68061",
"flag": null,
"geo_fips": "10000",
"geo_name": "Delaware",
"line_code": "3",
"line_description": "Per capita personal income (Dollars)",
"note_refs": [
"2"
],
"publication_id": "CAINC1:2026-02-05",
"retrieved_at": "2026-10-18T10:42:53Z",
"source_record_id": "bea:CAINC1-3:10000:2024",
"source_url": "https://apps.bea.gov/itable/?ReqID=70&step=30&isuri=1&major_area=4&area=10000&year=2024&tableid=20&state=10000&statistic=3&unit_of_measure=levels&yearbegin=-1&year_end=-1",
"table": "CAINC1",
"time_period": "2024",
"unit": "Dollars",
"value": 68061
},
{
"code": "CAINC1-3",
"data_value": "55474",
"flag": null,
"geo_fips": "10001",
"geo_name": "Kent, DE",
"line_code": "3",
"line_description": "Per capita personal income (Dollars)",
"note_refs": [
"2"
],
"publication_id": "CAINC1:2026-02-05",
"retrieved_at": "2026-10-18T10:42:53Z",
"source_record_id": "bea:CAINC1-3:10001:2024",
"source_url": "https://apps.bea.gov/itable/?ReqID=70&step=30&isuri=1&major_area=4&area=10001&year=2024&tableid=20&state=10000&statistic=3&unit_of_measure=levels&yearbegin=-1&year_end=-1",
"table": "CAINC1",
"time_period": "2024",
"unit": "Dollars",
"value": 55474
},
{
"code": "CAINC1-3",
"data_value": "69609",
"flag": null,
"geo_fips": "10003",
"geo_name": "New Castle, DE",
"line_code": "3",
"line_description": "Per capita personal income (Dollars)",
"note_refs": [
"2"
],
"publication_id": "CAINC1:2026-02-05",
"retrieved_at": "2026-10-18T10:42:53Z",
"source_record_id": "bea:CAINC1-3:10003:2024",
"source_url": "https://apps.bea.gov/itable/?ReqID=70&step=30&isuri=1&major_area=4&area=10003&year=2024&tableid=20&state=10000&statistic=3&unit_of_measure=levels&yearbegin=-1&year_end=-1",
"table": "CAINC1",
"time_period": "2024",
"unit": "Dollars",
"value": 69609
},
{
"code": "CAINC1-3",
"data_value": "73647",
"flag": null,
"geo_fips": "10005",
"geo_name": "Sussex, DE",
"line_code": "3",
"line_description": "Per capita personal income (Dollars)",
"note_refs": [
"2"
],
"publication_id": "CAINC1:2026-02-05",
"retrieved_at": "2026-10-18T10:42:53Z",
"source_record_id": "bea:CAINC1-3:10005:2024",
"source_url": "https://apps.bea.gov/itable/?ReqID=70&step=30&isuri=1&major_area=4&area=10005&year=2024&tableid=20&state=10000&statistic=3&unit_of_measure=levels&yearbegin=-1&year_end=-1",
"table": "CAINC1",
"time_period": "2024",
"unit": "Dollars",
"value": 73647
}
],
"retrieved_at": "2026-10-18T10:42:53Z",
"source_url": "https://apps.bea.gov/itable/?ReqID=70&step=30&isuri=1&major_area=4&area=XX&year=2024&tableid=20&state=10000&statistic=3&unit_of_measure=levels&yearbegin=-1&year_end=-1",
"state": "DE",
"state_fips": "10000",
"table": "CAINC1",
"table_id": 20,
"title": "CAINC1 County personal income summary: personal income, population, per capita personal income",
"years": "2024"
}请求规范
- 方法与路径: POST /apis/v1/apps-bea-gov/economic-statistics/records-list
- 可用状态: enabled
- 请求 URL 模板:
https://api.aisa.one/apis/v1/apps-bea-gov/economic-statistics/records-list
{
"operationId": "apps-bea-gov.economic-statistics.records-list",
"method": "POST",
"path": "/apis/v1/apps-bea-gov/economic-statistics/records-list",
"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": {
"line_code": "3",
"state": "DE",
"table": "CAINC1",
"years": "2024"
}
}
},
"schema": {
"additionalProperties": true,
"properties": {
"cursor": {
"description": "next_cursor from the previous page. Opaque; pins table, state, line_code, years, the county list and the publication_id.",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"line_code": {
"description": "One line code (statistic) of the table, e.g. 3 for CAINC1 per capita personal income. Omit for every line of the table. Pattern: ^[0-9]{1,4}$.",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"state": {
"description": "State as a USPS code (MT), a 2-digit state FIPS (30) or BEA's 5-digit state key (30000); US for the United States total plus the eight BEA regions. The 50 states and DC are supported (BEA county tables carry no territories).",
"type": "string"
},
"table": {
"description": "BEA Regional county table name (see source_status).\n\nProvider reference: allowed values [\"CAINC1\", \"CAINC4\", \"CAINC5N\", \"CAINC6N\", \"CAINC30\", \"CAINC91\", \"CAGDP1\", \"CAGDP2\", \"CAGDP8\", \"CAGDP9\", \"CAGDP11\"].",
"type": "string"
},
"years": {
"description": "ALL (default), LAST5 / LAST10 (newest n years the table serves), one year (2024) or a comma list (2022,2023,2024). Pattern: ^(ALL|all|LAST[1-9][0-9]?|last[1-9][0-9]?|[12][0-9]{3}(,[12][0-9]{3})*)$.",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
}
},
"required": [
"state",
"table"
],
"type": "object"
}
}
},
"required": true
},
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
费用与请求规则
按实际用量收费。 默认请求预估费用:$0.0005 USD。 最终费用以实际用量为准。 账户适用价格可能不同;支持报价的接口可按实际请求获取报价。授权
请求体
响应
Full current list of one BEA county table for one state (or the United States and its eight BEA regions with state US), paginated with a cursor pinned to the table's publication_id. Page 1 fetches the state total row(s) and the state's county list, then the first chunk of counties; each later page fetches one chunk. Segment key: (table, state, line_code, years). Every page re-reads the 'Last updated' note and fails with invalid_input code publication_changed when it differs from the pinned vintage, so two vintages are never mixed. With line_code the page holds one statistic; without it every line of the table. years accepts ALL, LAST (resolved against the table's year list), one year or a comma list. Values keep BEA's flags ((D) suppressed, (NA) not available, (NM), (L), (T)) in data_value with value null.
The response contains the tool result directly.
The provider identifies records as the primary payload key.
| Documented field | Provider type | Description |
|---|---|---|
code | string | -, the Data API series code. |
data_value | string | As published, thousands separators removed: a number, a flag such as (D) or (NA), or empty. |
flag | string | BEA's non-numeric marker when present: (D), (NA), (NM), (L), (T). |
geo_fips | string | |
geo_name | string | |
line_code | string | |
line_description | string | |
note_refs | string[] | Footnote marks attached to the line description; see notes. |
publication_id | string | |
retrieved_at | string | |
source_record_id | string | bea:-:: |
source_url | string | |
table | string | |
time_period | string | |
unit | string | Unit as BEA states it in the line description or table subtitle, e.g. thousands of dollars, persons, dollars. |
value | number | data_value parsed as a number in the stated unit; null for flags and blanks. |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.