# FAA OE/AAA Obstruction Radius Watcher (`mikechiou/faa-oeaaa-obstruction`) Actor

Monitor public FAA OE/AAA obstruction cases near geofences and emit normalized events for towers, wind projects, cranes, airports, and site-risk workflows.

- **URL**: https://apify.com/mikechiou/faa-oeaaa-obstruction.md
- **Developed by:** [Mike Chiou](https://apify.com/mikechiou) (community)
- **Categories:** Agents, Automation, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $50.00 / 1,000 geofence matches

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## FAA OE/AAA Obstruction Radius Watcher

Monitor public FAA OE/AAA obstruction cases and turn geofences, structure types, sponsors, and status-code watchlists into structured events for aviation consultants, tower developers, renewable-energy teams, construction planners, site-diligence workflows, and AI agents.

### What This Actor Does

- Fetches public FAA OE/AAA obstruction cases from the official REST/XML service.
- Matches cases against up to 10 user geofences.
- Filters by FAA structure type, sponsor keyword, status code, date window, and temporary/clutter suppression.
- Normalizes matched cases into event records with FAA case URLs, coordinates, heights, dates, determination/status fields, match terms, and raw source payloads.
- Persists event fingerprints and case snapshots so repeat runs do not re-emit the same event.
- Supports pay-per-event charging with a safe no-op fallback for local or unpublished runs.

### Inputs

- `geofences`: up to 10 circles with `lat`, `lon`, `radiusKm`, and optional `label`. Boundary matches are included.
- `structureTypes`: FAA structure type prefixes or full values, such as `WINDMILL`, `TOWER`, or `TOWER$ANTENNA`.
- `sponsorKeywords`: sponsor/company keywords matched with word boundaries.
- `statusCodes`: exact FAA status-code values, such as `DET-DNE`, `DET-DNH`, or `DET-M&L`.
- `dateWindow`: explicit `{ "start": "YYYY-MM-DD", "end": "YYYY-MM-DD" }` or `{ "lookbackDays": 10 }`.
- `includeTemporaryStructures`: default `false`. When false, suppresses status codes ending `-TMP` plus `CRANE` and `CONSTRUCTION` structure prefixes.
- `maxEvents`: safety cap for one run.
- `stateStoreName`: named key-value store for dedupe and determination snapshots. Public example tasks can use `__RUN_DEFAULT__`.

### Output

Each dataset item uses this event shape:

```json
{
    "source_case_url": "https://oeaaa.faa.gov/oeaaa/services/case/2026-WTE-575-OE",
    "source_api_url": "https://oeaaa.faa.gov/oeaaa/services/caseList/date/OE?start=2026-06-25&end=2026-07-04",
    "event_type": "geofence_match",
    "entities": {
        "asn": "2026-WTE-575-OE",
        "status_code": "DET-DNH",
        "sponsor": "Flowing Well Wind, LLC",
        "structure_type": "WINDMILL",
        "nearest_city": "Revillo",
        "nearest_state": "SD",
        "matched_geofences": [{ "label": "Revillo SD wind project", "distance_km": 0 }]
    },
    "location": {
        "latitude": 45.06789167,
        "longitude": -96.50583889,
        "coordinates_basis": "parsed",
        "lat_long_accuracy": "4D"
    },
    "measurements": {
        "agl_structure_height_ft": 650,
        "agl_structure_height_determination_ft": 650
    },
    "match_terms": ["geofence:Revillo SD wind project", "structure_type:WINDMILL"],
    "case_baseline": "first_seen",
    "changed_fields": []
}
````

### Event Pricing Plan

Pay-per-event pricing is configured on Apify.

- `geofence_match`: `$0.05` primary event.
- `new_obstruction_case`: `$0.03`.
- `determination_change`: `$0.04`.

Use all-inclusive pay-per-event pricing. Do not enable pay-per-event plus usage unless the margin model changes.

### Local Development

```bash
npm install
npm run build
npm test
npm run lint
npm run canary
apify run --purge
```

The local smoke input lives at `storage/key_value_stores/default/INPUT.json`.

### Data Sources

- FAA OE/AAA portal: `https://oeaaa.faa.gov/`
- Case-list endpoint: `https://oeaaa.faa.gov/oeaaa/services/caseList/date/OE`
- Case-detail endpoint: `https://oeaaa.faa.gov/oeaaa/services/case/<asn>`
- FAA obstruction evaluation overview: `https://www.faa.gov/air_traffic/obstruction_evaluation`

### Limitations

- This Actor reports public FAA source facts and watchlist matches. It does not determine whether a structure is safe, lawful, or acceptable for airspace purposes.
- FAA status codes are emitted as source codes. The Actor does not invent legal expansions when the source endpoint does not provide a legend.
- Temporary determinations and CRANE/CONSTRUCTION prefixes are suppressed by default to reduce noise; set `includeTemporaryStructures` to include them.
- `lat_long_accuracy` is passed through from FAA. Users should treat geofence matches according to the source coordinate accuracy.
- Cases without parsed coordinates cannot produce `geofence_match`, but can still produce non-geofence watchlist events.
- This Actor is not affiliated with, endorsed by, or sponsored by FAA, DOT, or the U.S. government.

### Maintenance

Run the canary daily:

```bash
npm run canary
```

Open a fix ticket if the endpoint returns HTML/404, recent windows are empty twice, required fields disappear, or case detail lookup no longer returns the requested ASN.

### Kill / Scale Gate

After 60 days listed on Apify, continue only if the Actor reaches at least 5 paid-plan users or about `$25` in charged events. Otherwise archive/freeze and move to the next finalist.

# Actor input Schema

## `geofences` (type: `array`):

Up to 10 watched circles. A case produces geofence\_match when its coordinates fall within any circle.

## `structureTypes` (type: `array`):

Optional FAA structure type prefixes or full values, e.g. WINDMILL, TOWER, TOWER$ANTENNA.

## `sponsorKeywords` (type: `array`):

Optional sponsor/company keywords matched with word boundaries.

## `statusCodes` (type: `array`):

Optional exact FAA status codes, e.g. DET-DNE, DET-DNH, DET-M\&L.

## `dateWindow` (type: `object`):

Use explicit start/end ISO dates or lookbackDays. Default is a 10-day lookback.

## `includeTemporaryStructures` (type: `boolean`):

When false, suppresses temporary status codes and high-noise CRANE/CONSTRUCTION prefixes by default.

## `maxEvents` (type: `integer`):

Safety cap for one run.

## `stateStoreName` (type: `string`):

Named key-value store used for dedupe and determination snapshots. Use **RUN\_DEFAULT** to keep state in the default store for each run.

## Actor input object example

```json
{
  "geofences": [
    {
      "label": "Revillo SD wind project",
      "lat": 45.06789167,
      "lon": -96.50583889,
      "radiusKm": 40
    }
  ],
  "structureTypes": [
    "WINDMILL"
  ],
  "sponsorKeywords": [],
  "statusCodes": [],
  "dateWindow": {
    "lookbackDays": 10
  },
  "includeTemporaryStructures": false,
  "maxEvents": 10,
  "stateStoreName": "faa-oeaaa-state"
}
```

# Actor output Schema

## `results` (type: `string`):

No description

## `summary` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "geofences": [
        {
            "label": "Revillo SD wind project",
            "lat": 45.06789167,
            "lon": -96.50583889,
            "radiusKm": 40
        }
    ],
    "structureTypes": [
        "WINDMILL"
    ],
    "sponsorKeywords": [],
    "statusCodes": [],
    "dateWindow": {
        "lookbackDays": 10
    },
    "maxEvents": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("mikechiou/faa-oeaaa-obstruction").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "geofences": [{
            "label": "Revillo SD wind project",
            "lat": 45.06789167,
            "lon": -96.50583889,
            "radiusKm": 40,
        }],
    "structureTypes": ["WINDMILL"],
    "sponsorKeywords": [],
    "statusCodes": [],
    "dateWindow": { "lookbackDays": 10 },
    "maxEvents": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("mikechiou/faa-oeaaa-obstruction").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "geofences": [
    {
      "label": "Revillo SD wind project",
      "lat": 45.06789167,
      "lon": -96.50583889,
      "radiusKm": 40
    }
  ],
  "structureTypes": [
    "WINDMILL"
  ],
  "sponsorKeywords": [],
  "statusCodes": [],
  "dateWindow": {
    "lookbackDays": 10
  },
  "maxEvents": 10
}' |
apify call mikechiou/faa-oeaaa-obstruction --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=mikechiou/faa-oeaaa-obstruction",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "FAA OE/AAA Obstruction Radius Watcher",
        "description": "Monitor public FAA OE/AAA obstruction cases near geofences and emit normalized events for towers, wind projects, cranes, airports, and site-risk workflows.",
        "version": "0.1",
        "x-build-id": "CzGftxTvPkhbVZjFu"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/mikechiou~faa-oeaaa-obstruction/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-mikechiou-faa-oeaaa-obstruction",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/mikechiou~faa-oeaaa-obstruction/runs": {
            "post": {
                "operationId": "runs-sync-mikechiou-faa-oeaaa-obstruction",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/mikechiou~faa-oeaaa-obstruction/run-sync": {
            "post": {
                "operationId": "run-sync-mikechiou-faa-oeaaa-obstruction",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "geofences": {
                        "title": "Geofences",
                        "maxItems": 10,
                        "type": "array",
                        "description": "Up to 10 watched circles. A case produces geofence_match when its coordinates fall within any circle.",
                        "items": {
                            "type": "object",
                            "required": [
                                "lat",
                                "lon",
                                "radiusKm"
                            ],
                            "properties": {
                                "label": {
                                    "type": "string",
                                    "title": "Label",
                                    "description": "Optional label shown in matched output."
                                },
                                "lat": {
                                    "type": "number",
                                    "title": "Latitude",
                                    "description": "Circle center latitude in decimal degrees.",
                                    "minimum": -90,
                                    "maximum": 90
                                },
                                "lon": {
                                    "type": "number",
                                    "title": "Longitude",
                                    "description": "Circle center longitude in decimal degrees.",
                                    "minimum": -180,
                                    "maximum": 180
                                },
                                "radiusKm": {
                                    "type": "number",
                                    "title": "Radius in km",
                                    "description": "Circle radius in kilometers. Boundary matches are included.",
                                    "minimum": 0
                                }
                            }
                        }
                    },
                    "structureTypes": {
                        "title": "Structure types",
                        "type": "array",
                        "description": "Optional FAA structure type prefixes or full values, e.g. WINDMILL, TOWER, TOWER$ANTENNA.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "sponsorKeywords": {
                        "title": "Sponsor keywords",
                        "type": "array",
                        "description": "Optional sponsor/company keywords matched with word boundaries.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "statusCodes": {
                        "title": "Status codes",
                        "type": "array",
                        "description": "Optional exact FAA status codes, e.g. DET-DNE, DET-DNH, DET-M&L.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "dateWindow": {
                        "title": "Date window",
                        "type": "object",
                        "description": "Use explicit start/end ISO dates or lookbackDays. Default is a 10-day lookback.",
                        "properties": {
                            "start": {
                                "type": "string",
                                "title": "Start date",
                                "description": "Inclusive FAA completion-date window start in YYYY-MM-DD format."
                            },
                            "end": {
                                "type": "string",
                                "title": "End date",
                                "description": "Inclusive FAA completion-date window end in YYYY-MM-DD format."
                            },
                            "lookbackDays": {
                                "type": "integer",
                                "title": "Lookback days",
                                "description": "Rolling window size when start/end are omitted.",
                                "minimum": 1,
                                "maximum": 30
                            }
                        }
                    },
                    "includeTemporaryStructures": {
                        "title": "Include temporary structures",
                        "type": "boolean",
                        "description": "When false, suppresses temporary status codes and high-noise CRANE/CONSTRUCTION prefixes by default.",
                        "default": false
                    },
                    "maxEvents": {
                        "title": "Maximum events",
                        "minimum": 1,
                        "maximum": 250,
                        "type": "integer",
                        "description": "Safety cap for one run.",
                        "default": 50
                    },
                    "stateStoreName": {
                        "title": "State store name",
                        "type": "string",
                        "description": "Named key-value store used for dedupe and determination snapshots. Use __RUN_DEFAULT__ to keep state in the default store for each run.",
                        "default": "faa-oeaaa-state"
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
