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

# Saipe get

> Fetch one county's poverty and median household income estimates (Gallatin County: state 30, county 031).

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

[Complete OpenAPI definition](https://aisa.one/docs/openapi/census-gov.json)

Effective request declaration (including authentication and referenced schemas):

```json theme={null}
{
  "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.


## OpenAPI

````yaml openapi/census-gov.json POST /apis/v1/census-gov/census/saipe-get
openapi: 3.1.0
info:
  description: ''
  title: US Census Bureau
  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:
    census-gov:
      description: ''
      title: US Census Bureau
      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: eaabe92020e77779a83c21c13467dbc8d97222591a3938cbb52d67ed4a3ca399
        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/census-gov/census/data
    - /apis/v1/census-gov/census/datasets
    - /apis/v1/census-gov/census/geographies
    - /apis/v1/census-gov/census/popest-get
    - /apis/v1/census-gov/census/popest-list
    - /apis/v1/census-gov/census/popest-status
    - /apis/v1/census-gov/census/saipe-get
    - /apis/v1/census-gov/census/saipe-list
    - /apis/v1/census-gov/census/saipe-status
    - /apis/v1/census-gov/census/variables
  x-aisa-document:
    composer_version: '31'
    document_hash: sha256:87057e10a7fc2f9e702ee4693519b68dad96de5e093a92fe942fd1a157f483c6
    facts_hash: eaabe92020e77779a83c21c13467dbc8d97222591a3938cbb52d67ed4a3ca399
    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: census-gov
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/census-gov/census/saipe-get:
    post:
      tags:
        - US Census Bureau
      summary: Saipe get
      description: >-
        Fetch one county's poverty and median household income estimates
        (Gallatin County: state 30, county 031).
      operationId: census-gov.census.saipe-get
      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.


                    Provider reference: minimum 2010; maximum 2035.
                  type: number
                  x-alexandria-option-metadata:
                    in: body
                    max: 2035
                    min: 2010
              required:
                - state
              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:
                    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
              schema:
                not:
                  type: 'null'
                x-aisa-schema-completeness: documented-fields-only
          description: >-
            One SAIPE record by state and county FIPS for a year: reads
            est<yy>-<st>.txt (county omitted or 000 = the state row) or, for
            state 00 / US, the national row of est<yy>us.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 est<yy>all.txt /
            est<yy>-<st>.txt / est<yy>us.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.
        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.