curl --request POST \
--url https://api.aisa.one/apis/v1/wildfirerisk-org/wildfire-risk/compare-within-parent \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"level": "communities"
}
'import requests
url = "https://api.aisa.one/apis/v1/wildfirerisk-org/wildfire-risk/compare-within-parent"
payload = { "level": "communities" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({level: 'communities'})
};
fetch('https://api.aisa.one/apis/v1/wildfirerisk-org/wildfire-risk/compare-within-parent', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/wildfirerisk-org/wildfire-risk/compare-within-parent",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'level' => 'communities'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/wildfirerisk-org/wildfire-risk/compare-within-parent"
payload := strings.NewReader("{\n \"level\": \"communities\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/wildfirerisk-org/wildfire-risk/compare-within-parent")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"level\": \"communities\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/wildfirerisk-org/wildfire-risk/compare-within-parent")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"level\": \"communities\"\n}"
response = http.request(request)
puts response.read_body{
"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
}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’.
curl --request POST \
--url https://api.aisa.one/apis/v1/wildfirerisk-org/wildfire-risk/compare-within-parent \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"level": "communities"
}
'import requests
url = "https://api.aisa.one/apis/v1/wildfirerisk-org/wildfire-risk/compare-within-parent"
payload = { "level": "communities" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({level: 'communities'})
};
fetch('https://api.aisa.one/apis/v1/wildfirerisk-org/wildfire-risk/compare-within-parent', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/wildfirerisk-org/wildfire-risk/compare-within-parent",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'level' => 'communities'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/wildfirerisk-org/wildfire-risk/compare-within-parent"
payload := strings.NewReader("{\n \"level\": \"communities\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/wildfirerisk-org/wildfire-risk/compare-within-parent")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"level\": \"communities\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/wildfirerisk-org/wildfire-risk/compare-within-parent")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"level\": \"communities\"\n}"
response = http.request(request)
puts response.read_body{
"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
}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
{
"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.Authorizations
Body
Response
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.