> ## Documentation Index
> Fetch the complete documentation index at: https://aisa.one/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> - Base URLs: models `https://api.aisa.one/v1` (Gemini GenerateContent: `https://api.aisa.one/v1beta`); data APIs `https://api.aisa.one/apis/v1`. The `servers` of each operation in https://aisa.one/openapi.yaml is authoritative.
> - Auth: `Authorization: Bearer $AISA_API_KEY`. Never print, log, or commit the key.
> - MCP (preferred for agents): `https://mcp.aisa.one/mcp`, signed in with OAuth, so there is no key to paste.
> - Agent Skill: `npx skills add AIsa-team/agent-skills --skill aisa`. Fallback with the AIsa CLI: `aisa skills install aisa`.
> - Spending: docs, https://aisa.one/models, https://aisa.one/api, `/v1/models`, and MCP `search`, `list_categories`, `get_details`, `batch_quote`, and the `account` operation are free. Quote the exact calls before running them (MCP `batch_quote`, CLI `aisa quote --json`). If the quote reports `auto_execute_eligible: true`, run it unless the user set a tighter limit or asked only for a quote. Otherwise, tell the user in one message the planned calls, the quoted price, and a total USD budget for the task, then wait for approval. Direct HTTP calls follow the stricter rule at https://aisa.one/docs/get-started/cli.md#direct-http-fallback. Do not make paid calls to test availability. Full rule: https://aisa.one/llms.txt

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

## 请求规范

* **方法与路径:** 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 定义](https://aisa.one/docs/openapi/zh/apps-bea-gov.json)

有效请求声明（包括认证和引用的 schema）：

```json theme={null}
{
  "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。 最终费用以实际用量为准。 账户适用价格可能不同；支持报价的接口可按实际请求获取报价。


## OpenAPI

````yaml openapi/zh/apps-bea-gov.json POST /apis/v1/apps-bea-gov/economic-statistics/records-list
openapi: 3.1.0
info:
  description: ''
  title: BEA Regional Economic Accounts (county personal income, employment, GDP)
  version: '1'
  x-aisa-capabilities:
    idempotency: Idempotency-Key
    max_price: X-AISA-Max-Price-USD
    quote:
      header: X-AISA-Cost-Mode
      value: quote
  x-aisa-catalogs:
    apps-bea-gov:
      description: ''
      title: BEA Regional Economic Accounts (county personal income, employment, GDP)
      x-aisa-capabilities:
        idempotency: Idempotency-Key
        max_price: X-AISA-Max-Price-USD
        quote:
          header: X-AISA-Cost-Mode
          value: quote
      x-aisa-document:
        facts_hash: 9da820e2648f3140b51c74ca1de2e9e6d666fb69bed9e7c9926bf4be389577d5
        generator_version: '3'
        protocol_version: '1'
        schema_version: '1'
      x-aisa-plans:
        builder: 1
        display_plan: payg
        payg: 1
        similarweb_payg: 1
        team: 1
        version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-configured-paths:
    - /apis/v1/apps-bea-gov/economic-statistics/records-get
    - /apis/v1/apps-bea-gov/economic-statistics/records-list
    - /apis/v1/apps-bea-gov/economic-statistics/source-status
  x-aisa-document:
    composer_version: '31'
    document_hash: sha256:7d25077f76bc6195555905de640fc061189148af97d0003f3da2549d2ba55f1a
    facts_hash: 9da820e2648f3140b51c74ca1de2e9e6d666fb69bed9e7c9926bf4be389577d5
    generator_version: '3'
    protocol_version: '1'
    response_pending: []
    schema_version: '1'
  x-aisa-plans:
    builder: 1
    display_plan: payg
    payg: 1
    similarweb_payg: 1
    team: 1
    version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-provider: apps-bea-gov
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/apps-bea-gov/economic-statistics/records-list:
    post:
      tags:
        - >-
          BEA Regional Economic Accounts (county personal income, employment,
          GDP)
      summary: Records list
      description: >-
        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.
      operationId: apps-bea-gov.economic-statistics.records-list
      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).


                    Provider 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
      responses:
        '200':
          content:
            application/json:
              examples:
                provider:
                  description: Published by the provider on 2026-10-18.
                  summary: Official provider example
                  value:
                    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'
              schema:
                not:
                  type: 'null'
                x-aisa-schema-completeness: documented-fields-only
          description: >-
            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<n> (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 | <TableName>-<LineCode>, 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:<TableName>-<LineCode>:<GeoFips>:<Year> |

            | `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.
        default:
          content:
            application/json:
              schema: {}
          description: >-
            Error response; upstream passthrough responses may use provider
            formats
components:
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.