# Foundry Weather Activity Window

> Foundry Weather Activity Window is a paid API for AI agents from foundry-par007-machine-revenue-mainnet.inference-chip-index.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Returns NOAA forecast periods and contiguous time windows where all specified weather thresholds (wind, temperature, precipitation probability) are simultaneously satisfied for a given location.

## Facts

- Endpoint: POST https://foundry-par007-machine-revenue-mainnet.inference-chip-index.workers.dev/v2/official/weather-activity-window
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/foundry-weather-activity-window-5180e918
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ZrKklzKfEE-bYx2kW4jES

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability foundry-weather-activity-window-5180e918 -d '<json body>'
```

Example prompt: Check the NOAA forecast for the next 24 hours starting now near latitude 39.7 and longitude -97.1 and tell me which time windows have wind under 25 kph, temperature between 10°C and 28°C, and precipitation probability under 30%.

## When to prefer this

Choose this endpoint when you need official NOAA-sourced forecast evidence filtered by multiple simultaneous weather thresholds for a specific US location — particularly when you need contiguous windows rather than just raw hourly data. Prefer this over general weather APIs when you need explicit source provenance, JSON-contract guarantees, and pay-per-request USDC pricing with no subscription. Not suitable for non-US locations, real-time lightning/gust/alert assessment, or safety-critical decisions.

## Known failure modes

- Location outside NOAA coverage (non-US coordinates) returns empty periods and coverage_complete: false
- No windows found if thresholds are too strict — periods array may be populated but windows array empty
- Stale or unavailable upstream NOAA data may result in partial coverage with cache_age_seconds indicated
- Invalid latitude/longitude outside allowed ranges returns a validation error
- duration_hours or start_hours_from_now exceeding allowed maximums returns a schema validation error

## How this service works

Pay-per-request evidence and data tools: CSV validation and reconciliation, DNS/email configuration evidence, and bounded official weather, earthquake, vehicle, company and study records. Exact USDC prices, explicit JSON contracts and source provenance. No mailbox, ownership, medical or safety guarantees.

## Output

A JSON object containing: matched forecast periods with hourly conditions, contiguous time windows where ALL specified thresholds are simultaneously met, the requested window start/end, threshold values used, source provenance (NOAA URL, retrieval timestamp, attribution), and a coverage_complete flag indicating whether all hours in the window had forecast data.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "latitude": {
   "type": "number",
   "maximum": 90,
   "minimum": -90
  },
  "longitude": {
   "type": "number",
   "maximum": 180,
   "minimum": -180
  },
  "max_wind_kph": {
   "type": "number",
   "maximum": 400,
   "minimum": 0
  },
  "duration_hours": {
   "type": "integer",
   "default": 12,
   "maximum": 48,
   "minimum": 1
  },
  "max_temperature_c": {
   "type": "number",
   "maximum": 60,
   "minimum": -100
  },
  "min_temperature_c": {
   "type": "number",
   "maximum": 60,
   "minimum": -100
  },
  "start_hours_from_now": {
   "type": "integer",
   "default": 0,
   "maximum": 120,
   "minimum": 0
  },
  "max_precipitation_probability": {
   "type": "number",
   "maximum": 100,
   "minimum": 0
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "route": "weather-activity-window",
  "result": {
   "source": {
    "url": "https://api.weather.gov/gridpoints/TOP/31,80/forecast/hourly",
    "updated_at": null,
    "retrieved_at": "2026-09-06T00:00:00Z",
    "cache_age_seconds": 0
   },
   "periods": [],
   "windows": [],
   "location": {
    "latitude": 39.7456,
    "longitude": -97.0892
   },
   "provenance": {
    "terms_url": "https://www.weather.gov/disclaimer",
    "attribution": "NOAA / National Weather Service; normalized by Foundry; no endorsement",
    "limitations": [
     "Threshold comparison of forecast evidence only; not an activity recommendation, safety assessment or emergency warning service.",
     "Missing fields and uncovered times remain UNKNOWN; matching thresholds does not establish safe conditions.",
     "No gust, lightning, visibility or alert assessment is included. Probability of precipitation is not precipitation amount.",
     "Synthetic schema example only."
    ],
    "upstream_calls": 2
   },
   "thresholds": {
    "max_wind_kph": 25,
    "max_temperature_c": 30,
    "min_temperature_c": 5,
    "max_precipitation_probability": 30
   },
   "requested_window": {
    "end": "2026-09-06T12:00:00Z",
    "start": "2026-09-06T00:00:00Z"
   },
   "coverage_complete": false
  },
  "observed_at": "2026-09-06T00:00:00Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/foundry-weather-activity-window-5180e918/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from foundry-par007-machine-revenue-mainnet.inference-chip-index.workers.dev](https://www.zero.xyz/host/foundry-par007-machine-revenue-mainnet.inference-chip-index.workers.dev/llms.txt)
