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

# Compare within parent

> 'How does this county compare with the rest of the state/nation' or 'which communities in this county are most at risk'.

## Request contract

* **Method and path:** POST /apis/v1/wildfirerisk-org/wildfire-risk/compare-within-parent
* **Availability:** enabled
* **Request URL template:** `https://api.aisa.one/apis/v1/wildfirerisk-org/wildfire-risk/compare-within-parent`

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

Effective request declaration (including authentication and referenced schemas):

```json theme={null}
{
  "operationId": "wildfirerisk-org.wildfire-risk.compare-within-parent",
  "method": "POST",
  "path": "/apis/v1/wildfirerisk-org/wildfire-risk/compare-within-parent",
  "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": {
              "level": "communities",
              "limit": 10,
              "parent_id": "08013"
            }
          }
        },
        "schema": {
          "additionalProperties": true,
          "properties": {
            "level": {
              "description": "level\n\nProvider reference: allowed values [\"states\", \"counties\", \"communities\", \"tribal_areas\"].",
              "type": "string"
            },
            "limit": {
              "default": 50,
              "description": "limit\n\nProvider reference: minimum 1; maximum 500; default 50.",
              "type": "number",
              "x-alexandria-option-metadata": {
                "in": "body",
                "max": 500,
                "min": 1
              }
            },
            "offset": {
              "default": 0,
              "description": "Pass the previous call's next_cursor (an offset) to continue.\n\nProvider reference: minimum 0; default 0.",
              "type": "number",
              "x-alexandria-option-metadata": {
                "in": "body",
                "min": 0
              }
            },
            "parent_id": {
              "default": "00",
              "description": "00 for the national collection (states, counties, tribal_areas, or the national sample of communities); a 5-digit county id for communities within that county. Pattern: ^[0-9]{2,10}$.\n\nProvider reference: default \"00\".",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "sort_by": {
              "default": "rps_mean",
              "description": "sort_by\n\nProvider reference: allowed values [\"rps_mean\", \"crps_mean\", \"bp_mean\", \"total_housing_units\"]; default \"rps_mean\".",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body",
                "oneOf": [
                  "rps_mean",
                  "crps_mean",
                  "bp_mean",
                  "total_housing_units"
                ]
              }
            }
          },
          "required": [
            "level"
          ],
          "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/wildfirerisk-org.json POST /apis/v1/wildfirerisk-org/wildfire-risk/compare-within-parent
openapi: 3.1.0
info:
  description: ''
  title: USFS Wildfire Risk to Communities
  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:
    wildfirerisk-org:
      description: ''
      title: USFS Wildfire Risk to Communities
      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: 97f132f522a6f82cc25aeab29977d2f23304dc4a7028bce00d75cc5a10a9ea32
        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/wildfirerisk-org/wildfire-risk/compare-within-parent
    - /apis/v1/wildfirerisk-org/wildfire-risk/place-summary
    - /apis/v1/wildfirerisk-org/wildfire-risk/search-places
    - /apis/v1/wildfirerisk-org/wildfire-risk/wildfire-risk-for-geometry
  x-aisa-document:
    composer_version: '31'
    document_hash: sha256:b120adb847aa382da857e372d8b29ed2f58655f621acae582607a5d890bd8943
    facts_hash: 97f132f522a6f82cc25aeab29977d2f23304dc4a7028bce00d75cc5a10a9ea32
    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: wildfirerisk-org
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/wildfirerisk-org/wildfire-risk/compare-within-parent:
    post:
      tags:
        - USFS Wildfire Risk to Communities
      summary: Compare within parent
      description: >-
        'How does this county compare with the rest of the state/nation' or
        'which communities in this county are most at risk'.
      operationId: wildfirerisk-org.wildfire-risk.compare-within-parent
      requestBody:
        content:
          application/json:
            examples:
              provider:
                summary: >-
                  Official provider example; checked against AIsa request
                  constraints
                value:
                  level: communities
                  limit: 10
                  parent_id: '08013'
            schema:
              additionalProperties: true
              properties:
                level:
                  description: >-
                    level


                    Provider reference: allowed values ["states", "counties",
                    "communities", "tribal_areas"].
                  type: string
                limit:
                  default: 50
                  description: |-
                    limit

                    Provider reference: minimum 1; maximum 500; default 50.
                  type: number
                  x-alexandria-option-metadata:
                    in: body
                    max: 500
                    min: 1
                offset:
                  default: 0
                  description: >-
                    Pass the previous call's next_cursor (an offset) to
                    continue.


                    Provider reference: minimum 0; default 0.
                  type: number
                  x-alexandria-option-metadata:
                    in: body
                    min: 0
                parent_id:
                  default: '00'
                  description: >-
                    00 for the national collection (states, counties,
                    tribal_areas, or the national sample of communities); a
                    5-digit county id for communities within that county.
                    Pattern: ^[0-9]{2,10}$.


                    Provider reference: default "00".
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                sort_by:
                  default: rps_mean
                  description: >-
                    sort_by


                    Provider reference: allowed values ["rps_mean", "crps_mean",
                    "bp_mean", "total_housing_units"]; default "rps_mean".
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                    oneOf:
                      - rps_mean
                      - crps_mean
                      - bp_mean
                      - total_housing_units
              required:
                - level
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              examples:
                provider:
                  description: Published by the provider on 2026-10-01.
                  summary: Official provider example
                  value:
                    count: 10
                    data_version: >-
                      Wildfire Risk to Communities version 2 (2024 update;
                      LANDFIRE 2020 fuels, burn probability as of end of 2020)
                    entries:
                      - bp_mean: 0.015097123
                        crps_mean: 68.20094693
                        id: '0800076325'
                        name: Tall Timber, CO
                        percentile: 1
                        rank: 1
                        rps_mean: 1.03558701
                        total_housing_units: 89
                      - bp_mean: 0.015620722
                        crps_mean: 59.564025862
                        id: '0800039195'
                        name: Jamestown, CO
                        percentile: 0.9697
                        rank: 2
                        rps_mean: 0.934484643
                        total_housing_units: 129
                      - bp_mean: 0.014562547
                        crps_mean: 60.378095481
                        id: '0800030350'
                        name: Glendale (Boulder), CO
                        percentile: 0.9394
                        rank: 3
                        rps_mean: 0.883850117
                        total_housing_units: 41
                      - bp_mean: 0.014076175
                        crps_mean: 61.375737039
                        id: '0800069110'
                        name: Seven Hills, CO
                        percentile: 0.9091
                        rank: 4
                        rps_mean: 0.868894331
                        total_housing_units: 56
                      - bp_mean: 0.014365321
                        crps_mean: 59.232845207
                        id: '0800074980'
                        name: Sugarloaf, CO
                        percentile: 0.8788
                        rank: 5
                        rps_mean: 0.859822123
                        total_housing_units: 134
                      - bp_mean: 0.013747707
                        crps_mean: 59.698097858
                        id: '0800004620'
                        name: Bark Ranch, CO
                        percentile: 0.8485
                        rank: 6
                        rps_mean: 0.83402091
                        total_housing_units: 119
                      - bp_mean: 0.014195411
                        crps_mean: 57.130569349
                        id: '0800075585'
                        name: Sunshine, CO
                        percentile: 0.8182
                        rank: 7
                        rps_mean: 0.818609517
                        total_housing_units: 90
                      - bp_mean: 0.014285174
                        crps_mean: 56.004206199
                        id: '0800052210'
                        name: Mountain Meadows, CO
                        percentile: 0.7879
                        rank: 8
                        rps_mean: 0.810234389
                        total_housing_units: 120
                      - bp_mean: 0.012510049
                        crps_mean: 61.968231342
                        id: '0800001420'
                        name: Allenspark, CO
                        percentile: 0.7576
                        rank: 9
                        rps_mean: 0.806503743
                        total_housing_units: 837
                      - bp_mean: 0.013881589
                        crps_mean: 56.455979189
                        id: '0800030945'
                        name: Gold Hill, CO
                        percentile: 0.7273
                        rank: 10
                        rps_mean: 0.789539706
                        total_housing_units: 128
                    level: communities
                    observed_at_ms: 1790881896574
                    offset: 0
                    parent_id: '08013'
                    ranked: 33
                    sort_by: rps_mean
                    sources:
                      - name: >-
                          wildfirerisk.org risk_to_homes collection (communities
                          within 08013)
                        observed_at: '2026-10-01'
                        url: >-
                          https://api.wildfirerisk.org/wrc/wildfireData/08013/communities/risk_to_homes.json
                    spatial_precision: county
                    total: 33
              schema:
                not:
                  type: 'null'
                x-aisa-schema-completeness: documented-fields-only
          description: >-
            Rank every place of one level (states, counties, tribal_areas
            nationally; communities within a county) by mean risk to potential
            structures, conditional RPS, burn probability or housing units, from
            the Explore app's comparison collection. Each entry carries its rank
            and percentile within the ranked set. Offset-paginated; a
            continuation cursor is the next offset.


            The response contains the tool result directly.


            The provider identifies `entries` as the primary payload key.


            | Documented field | Provider type | Description |

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

            | `bp_mean` | number |  |

            | `crps_mean` | number |  |

            | `id` | string |  |

            | `name` | string |  |

            | `percentile` | number | Share of ranked entries with a sort_by
            value at or below this one (1.0 = highest). |

            | `rank` | number |  |

            | `rps_mean` | number |  |

            | `total_housing_units` | 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.