# Foundry NWS Two-Site Operating Conditions Comparison

> Foundry NWS Two-Site Operating Conditions Comparison is a paid API for AI agents from foundry-par007-machine-revenue-mainnet.inference-chip-index.workers.dev, paid per call via x402, $0.012/call, status unknown (last checked 2026-09-15).

Compares NWS forecast data for two geographic sites against user-defined weather thresholds to determine aligned operating windows over a specified time period.

## Facts

- Endpoint: POST https://foundry-par007-machine-revenue-mainnet.inference-chip-index.workers.dev/v2/official/nws-two-site-operating-comparison
- Price: $0.012/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/foundry-nws-two-site-operating-conditions-comparison-e1e228fd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_51pxoWIb2TjgWHjVaR-nI

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-nws-two-site-operating-conditions-comparison-e1e228fd -d '<json body>'
```

Example prompt: Check if both my Denver site (40.0150° N, 105.2705° W) and my Topeka site (39.7456° N, 97.0892° W) will have matching acceptable weather conditions over the next 12 hours — I need wind under 25 kph, temperatures between 5°C and 30°C, and precipitation probability below 30%.

## When to prefer this

Use this endpoint when you need to find time windows where two geographically distinct US locations simultaneously meet weather operating thresholds — especially for coordinating field operations, scheduling outdoor work, or planning multi-site events. Prefer this over single-site NWS forecast endpoints when the key question is alignment between two locations, not just one site's conditions. Best for US locations with NWS grid coverage; not suitable for international weather comparison.

## Known failure modes

- Coordinates outside NWS coverage area (non-US locations) return empty periods or coverage_complete: false
- NWS API unavailability causes empty period arrays with UNKNOWN comparison status
- Duration or start window exceeding 24 hours or 120-hour lookahead rejected with validation error
- Invalid latitude/longitude ranges (>90 or >180) rejected at schema validation
- Very close sites may share the same NWS forecast grid resource, flagged as same_forecast_resource: true
- Partial NWS grid coverage returns UNKNOWN periods rather than match/nonmatch determinations

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

Returns a JSON object with per-site forecast periods sourced from NWS, aligned time windows labeled as MATCH, NONMATCH, or UNKNOWN, per-site duration summaries (match_minutes, nonmatch_minutes, unknown_minutes), combined both_match duration, the applied thresholds, source provenance URLs, and NOAA attribution. Coverage completeness flags indicate if full NWS data was available for each site.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "site_a": {
   "type": "object",
   "required": [
    "latitude",
    "longitude"
   ],
   "properties": {
    "latitude": {
     "type": "number",
     "maximum": 90,
     "minimum": -90
    },
    "longitude": {
     "type": "number",
     "maximum": 180,
     "minimum": -180
    }
   },
   "additionalProperties": false
  },
  "site_b": {
   "type": "object",
   "required": [
    "latitude",
    "longitude"
   ],
   "properties": {
    "latitude": {
     "type": "number",
     "maximum": 90,
     "minimum": -90
    },
    "longitude": {
     "type": "number",
     "maximum": 180,
     "minimum": -180
    }
   },
   "additionalProperties": false
  },
  "max_wind_kph": {
   "type": "number",
   "maximum": 400,
   "minimum": 0
  },
  "duration_hours": {
   "type": "integer",
   "default": 12,
   "maximum": 24,
   "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": "nws-two-site-operating-comparison",
  "result": {
   "sites": [
    {
     "site": "A",
     "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": [],
     "location": {
      "latitude": 39.7456,
      "longitude": -97.0892
     },
     "coverage_complete": false
    },
    {
     "site": "B",
     "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": [],
     "location": {
      "latitude": 40.015,
      "longitude": -105.2705
     },
     "coverage_complete": false
    }
   ],
   "terms_url": "https://www.weather.gov/disclaimer",
   "thresholds": {
    "max_wind_kph": 25,
    "max_temperature_c": 30,
    "min_temperature_c": 5,
    "max_precipitation_probability": 30
   },
   "attribution": "NOAA / National Weather Service; normalized by Foundry; no endorsement",
   "limitations": [
    "Synthetic example only. Forecast evidence, not a safety assessment. Unknown coverage is not a match."
   ],
   "aligned_periods": [
    {
     "end": "2026-09-06T12:00:00Z",
     "start": "2026-09-06T00:00:00Z",
     "comparison": "UNKNOWN",
     "site_a_status": "UNKNOWN",
     "site_b_status": "UNKNOWN"
    }
   ],
   "duration_minutes": {
    "site_a": {
     "match_minutes": 0,
     "unknown_minutes": 720,
     "nonmatch_minutes": 0
    },
    "site_b": {
     "match_minutes": 0,
     "unknown_minutes": 720,
     "nonmatch_minutes": 0
    },
    "both_match": 0
   },
   "requested_window": {
    "end": "2026-09-06T12:00:00Z",
    "start": "2026-09-06T00:00:00Z"
   },
   "same_forecast_resource": true
  },
  "observed_at": "2026-09-06T00:00:00Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/foundry-nws-two-site-operating-conditions-comparison-e1e228fd/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)
