Skip to main content
POST
Records list

Request contract

  • Method and path: POST /apis/v1/apps-bea-gov/economic-statistics/records-list
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/apps-bea-gov/economic-statistics/records-list
Complete OpenAPI definition Effective request declaration (including authentication and referenced schemas):

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

Authorization
string
header
required

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

Body

application/json
state
string
required

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
required

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

Response

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.