跳转到主要内容
POST
Records list

请求规范

  • 方法与路径: 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
完整 OpenAPI 定义 有效请求声明(包括认证和引用的 schema):

费用与请求规则

按实际用量收费。 默认请求预估费用:$0.0005 USD。 最终费用以实际用量为准。 账户适用价格可能不同;支持报价的接口可按实际请求获取报价。

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

请求体

application/json
state
string
必填

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).

table
string
必填

BEA Regional county table name (see source_status).

Provider reference: allowed values ["CAINC1", "CAINC4", "CAINC5N", "CAINC6N", "CAINC30", "CAINC91", "CAGDP1", "CAGDP2", "CAGDP8", "CAGDP9", "CAGDP11"].

cursor
string

next_cursor from the previous page. Opaque; pins table, state, line_code, years, the county list and the publication_id.

line_code
string

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}$.

years
string

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})*)$.

响应

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.

These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.