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

# Datasets

> Search the Census Data API catalog. Input: free-text query over dataset path, title and description plus an optional vintage (year). Returns one record per dataset/vintage with its API endpoint, metadata links, publication date and supported geography levels.

## Request contract

* **Method and path:** POST /apis/v1/census-gov/census/datasets
* **Availability:** enabled
* **Request URL template:** `https://api.aisa.one/apis/v1/census-gov/census/datasets`

[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.datasets",
  "method": "POST",
  "path": "/apis/v1/census-gov/census/datasets",
  "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": {
              "query": "acs5",
              "vintage": 2023
            }
          }
        },
        "schema": {
          "additionalProperties": true,
          "allOf": [
            {
              "anyOf": [
                {
                  "properties": {
                    "query": {}
                  },
                  "required": [
                    "query"
                  ]
                },
                {
                  "properties": {
                    "vintage": {}
                  },
                  "required": [
                    "vintage"
                  ]
                }
              ]
            }
          ],
          "properties": {
            "cursor": {
              "description": "next_cursor from the previous page.",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "page_size": {
              "default": 20,
              "description": "page_size\n\nProvider reference: minimum 1; maximum 25; default 20.",
              "type": "number",
              "x-alexandria-option-metadata": {
                "in": "body",
                "max": 25,
                "min": 1
              }
            },
            "query": {
              "description": "Case-insensitive tokens all of which must appear in the dataset path, title or description. Required (>= 2 characters) when vintage is null.\n\nProvider reference: default \"\".",
              "type": "string"
            },
            "vintage": {
              "description": "Restrict to one vintage year (reads api.census.gov/data/{vintage}.json, ~0.5 s). Null searches the whole catalog (~5 MB, 5-10 s).\n\nProvider reference: minimum 2000; maximum 2035.",
              "type": "number"
            }
          },
          "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/datasets
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/datasets:
    post:
      tags:
        - US Census Bureau
      summary: Datasets
      description: >-
        Search the Census Data API catalog. Input: free-text query over dataset
        path, title and description plus an optional vintage (year). Returns one
        record per dataset/vintage with its API endpoint, metadata links,
        publication date and supported geography levels.
      operationId: census-gov.census.datasets
      requestBody:
        content:
          application/json:
            examples:
              provider:
                summary: >-
                  Official provider example; checked against AIsa request
                  constraints
                value:
                  query: acs5
                  vintage: 2023
            schema:
              additionalProperties: true
              allOf:
                - anyOf:
                    - properties:
                        query: {}
                      required:
                        - query
                    - properties:
                        vintage: {}
                      required:
                        - vintage
              properties:
                cursor:
                  description: next_cursor from the previous page.
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                page_size:
                  default: 20
                  description: |-
                    page_size

                    Provider reference: minimum 1; maximum 25; default 20.
                  type: number
                  x-alexandria-option-metadata:
                    in: body
                    max: 25
                    min: 1
                query:
                  description: >-
                    Case-insensitive tokens all of which must appear in the
                    dataset path, title or description. Required (>= 2
                    characters) when vintage is null.


                    Provider reference: default "".
                  type: string
                vintage:
                  description: >-
                    Restrict to one vintage year (reads
                    api.census.gov/data/{vintage}.json, ~0.5 s). Null searches
                    the whole catalog (~5 MB, 5-10 s).


                    Provider reference: minimum 2000; maximum 2035.
                  type: number
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              examples:
                provider:
                  description: Published by the provider on 2026-09-11T00:00:00Z.
                  summary: Official provider example
                  value:
                    complete: true
                    count: 1
                    next_cursor: null
                    observed_at_ms: 1789084800000
                    query: acs5
                    records:
                      - dataset: acs/acs5
                        description: >-
                          The American Community Survey (ACS) is an ongoing
                          survey that provides data every year -- giving
                          communities the current information they need to plan
                          investments and services. The ACS covers a broad range
                          of topics about social, economic, demographic, and
                          housing characteristics of the U.S. population.
                          Summary files include the following geographies:
                          nation, all states (including DC and Puerto Rico), all
                          metropolitan areas, all congressional districts, all
                          counties, all places, and all tracts and block groups.
                          Summary files contain the most detailed
                          cross-tabulations, many of which are published down to
                          block groups. The data are population and housing
                          counts. There are over 64,000 variables in this
                          dataset.
                        examples_url: >-
                          https://api.census.gov/data/2023/acs/acs5/examples.json
                        geography_levels:
                          - us
                          - region
                          - division
                          - state
                          - county
                          - county subdivision
                          - subminor civil division
                          - place/remainder (or part)
                          - tract
                          - block group
                          - county (or part)
                          - place
                          - consolidated city
                          - place (or part)
                          - alaska native regional corporation
                          - >-
                            american indian area/alaska native area/hawaiian
                            home land
                          - tribal subdivision/remainder
                          - >-
                            american indian area/alaska native area (reservation
                            or statistical entity only)
                          - >-
                            american indian area (off-reservation trust land
                            only)/hawaiian home land
                          - tribal census tract
                          - tribal block group
                          - state (or part)
                          - place/remainder (or part)
                          - county (or part)
                          - >-
                            american indian area/alaska native area/hawaiian
                            home land (or part)
                          - >-
                            american indian area/alaska native area (reservation
                            or statistical entity only) (or part)
                          - >-
                            american indian area (off-reservation trust land
                            only)/hawaiian home land (or part)
                          - state (or part)
                          - tribal census tract (or part)
                          - tribal census tract (or part)
                          - tribal block group (or part)
                          - tribal block group (or part)
                          - >-
                            metropolitan statistical area/micropolitan
                            statistical area
                          - state (or part)
                          - principal city (or part)
                          - county
                          - metropolitan division
                          - state (or part)
                          - county
                          - >-
                            metropolitan statistical area/micropolitan
                            statistical area (or part)
                          - principal city (or part)
                          - county
                          - metropolitan division (or part)
                          - county
                          - combined statistical area
                          - state (or part)
                          - >-
                            metropolitan statistical area/micropolitan
                            statistical area
                          - state (or part)
                          - combined statistical area (or part)
                          - >-
                            metropolitan statistical area/micropolitan
                            statistical area (or part)
                          - urban area
                          - state (or part)
                          - county (or part)
                          - congressional district
                          - county (or part)
                          - >-
                            american indian area/alaska native area/hawaiian
                            home land (or part)
                          - state legislative district (upper chamber)
                          - county (or part)
                          - state legislative district (lower chamber)
                          - county (or part)
                          - public use microdata area
                          - zip code tabulation area
                          - school district (elementary)
                          - school district (secondary)
                          - school district (unified)
                        geography_url: >-
                          https://api.census.gov/data/2023/acs/acs5/geography.json
                        groups_url: https://api.census.gov/data/2023/acs/acs5/groups.json
                        identifier: https://api.census.gov/data/id/ACSDT5Y2023
                        is_aggregate: true
                        is_available: true
                        is_microdata: false
                        is_timeseries: false
                        license: https://creativecommons.org/publicdomain/zero/1.0/
                        modified: '2024-09-06T17:27:47Z'
                        source_url: https://api.census.gov/data/2023/acs/acs5
                        supported_by_data: true
                        title: ACS 5-Year Detailed Tables
                        variables_url: >-
                          https://api.census.gov/data/2023/acs/acs5/variables.json
                        vintage: 2023
                    retrieved_at: '2026-09-11T00:00:00Z'
                    schema_version: 1.0.0
                    source_updated_at: null
                    source_url: https://api.census.gov/data/2023.json
                    total: 1
                    vintage: 2023
                    warnings: []
              schema:
                not:
                  type: 'null'
                x-aisa-schema-completeness: documented-fields-only
          description: >-
            Search the Census Data API catalog. Input: free-text query over
            dataset path, title and description plus an optional vintage (year).
            Returns one record per dataset/vintage with its API endpoint,
            metadata links, publication date and supported geography levels.


            The response contains the tool result directly.


            | Documented field | Provider type | Description |

            | --- | --- | --- |

            | `complete` | boolean | Whether this response fully satisfied the
            request (not whether all pages were consumed). false when a
            supplementary source (metadata, geography levels) failed or when
            results were truncated. |

            | `count` | number |  |

            | `next_cursor` | string | Opaque cursor for the next page; null at
            the end. Offsets strictly increase, so a cursor can never loop.
            Maximum depth 1,000,000 records. |

            | `observed_at_ms` | number |  |

            | `query` | string |  |

            | `records` | object[] |  |

            | `retrieved_at` | string | RFC 3339 UTC time of this call. |

            | `schema_version` | string |  |

            | `source_updated_at` | string | Catalog `modified` timestamp of the
            dataset (published without a zone, labelled Z as given); null when
            the source does not publish one. |

            | `source_url` | string |  |

            | `total` | number |  |

            | `vintage` | number |  |

            | `warnings` | string[] |  |



            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.