Get Pilot Reports (PIREPs)
aviation_get_pirepsGet recent Pilot Reports (PIREPs) near an airport or within a bounding box. Returns decoded turbulence, icing, and cloud reports with altitude, aircraft type, intensity, and the raw PIREP string. Requires either station_id (ICAO center point for radial search, e.g., KSEA) or bbox (area search) — not both. distance_nm belongs to the station_id search only, and altitude_min_ft must not exceed altitude_max_ft. Coverage is US-centric; PIREPs are sparse and absence of reports does not imply smooth conditions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bbox | No | Geographic bounding box for area PIREP search. | |
| hours | No | How many hours of history to return. Default 3. | |
| station_id | No | ICAO station ID as center point for radial search (e.g., KSEA). Use with distance_nm. | |
| distance_nm | No | Search radius in nautical miles around station_id, defaulting to 100 when omitted. Belongs to the station_id search only — supplying it alongside bbox is rejected. | |
| altitude_max_ft | No | Filter by maximum altitude in feet MSL (e.g., 35000 for FL350). Reports with an unknown altitude (altitude_ft null) cannot be shown to satisfy a bound and are dropped whenever either bound is set. Optional. | |
| altitude_min_ft | No | Filter by minimum altitude in feet MSL (e.g., 18000 for FL180). Reports with an unknown altitude (altitude_ft null) cannot be shown to satisfy a bound and are dropped whenever either bound is set. Optional. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cap | No | The upstream row maximum that was applied to the page. Present only on a truncated result. | |
| error | No | Present when the call failed. Absent on success. | |
| shown | No | Reports in this result, counted after any altitude filter. | |
| notice | No | Guidance naming the levers that narrow the query before the cap applies. Present only on a truncated result. | |
| pireps | No | Pilot reports matching the search criteria, ordered by observation time descending. | |
| truncated | No | True when the upstream page hit the AWC row cap, so reports inside the search area and time window are missing from this result. False affirms the whole window was searched, which a count alone cannot establish. | |
| upstreamRows | No | Reports AWC returned before the altitude filter ran. Present only on a truncated result the filter then narrowed, where the remaining count sits below the cap and so cannot reveal the truncation on its own. |