{
 "route": "weather-forecast",
 "title": "Weather forecast (NWS, 7 days)",
 "method": "GET",
 "price_usdc": 0.005,
 "amount_atomic": "5000",
 "request": {
  "method": "GET",
  "url": "https://utility.agentexchange.work/v1/weather/forecast?lat=38.8977&lon=-77.0365",
  "headers": {
   "PAYMENT-SIGNATURE": "<base64 x402 v2 payment payload> (or X-PAYMENT for v1)"
  }
 },
 "captured_at": "2026-10-02T04:30:22.332Z",
 "captured_from": "live upstream, on first request; refreshed after 24 h",
 "response_200": {
  "location": {
   "lat": 38.8977,
   "lon": -77.0365,
   "city": "Washington",
   "state": "DC",
   "timezone": "America/New_York",
   "grid": {
    "office": "LWX",
    "x": 97,
    "y": 71
   },
   "forecast_zone": "DCZ001",
   "county_zone": "DCC001",
   "radar_station": "KLWX"
  },
  "generated_at": "2026-10-02T02:57:17+00:00",
  "updated_at": "2026-10-02T02:53:12+00:00",
  "elevation_m": 6.1,
  "units": "us",
  "count": 14,
  "periods": [
   {
    "number": 1,
    "name": "Tonight",
    "start": "2026-10-01T22:00:00-04:00",
    "end": "2026-10-02T06:00:00-04:00",
    "is_daytime": false,
    "temperature": 65,
    "temperature_unit": "F",
    "precip_probability_pct": 0,
    "wind_speed": "5 mph",
    "wind_direction": "S",
    "short_forecast": "Partly Cloudy",
    "detailed_forecast": "Partly cloudy, with a low around 65. South wind around 5 mph.",
    "icon": "https://api.weather.gov/icons/land/night/sct?size=medium"
   },
   {
    "number": 2,
    "name": "Friday",
    "start": "2026-10-02T06:00:00-04:00",
    "end": "2026-10-02T18:00:00-04:00",
    "is_daytime": true,
    "temperature": 89,
    "temperature_unit": "F",
    "precip_probability_pct": 13,
    "wind_speed": "7 mph",
    "wind_direction": "SW",
    "short_forecast": "Mostly Sunny",
    "detailed_forecast": "Mostly sunny, with a high near 89. Southwest wind around 7 mph.",
    "icon": "https://api.weather.gov/icons/land/day/sct?size=medium"
   },
   {
    "number": 3,
    "name": "Friday Night",
    "start": "2026-10-02T18:00:00-04:00",
    "end": "2026-10-03T06:00:00-04:00",
    "is_daytime": false,
    "temperature": 61,
    "temperature_unit": "F",
    "precip_probability_pct": 49,
    "wind_speed": "8 mph",
    "wind_direction": "NW",
    "short_forecast": "Chance Rain Showers",
    "detailed_forecast": "A chance of rain showers. Mostly cloudy, with a low around 61. Northwest wind around 8 mph. Chance of precipitation is 50%. New rainfall amounts less than a tenth of an inch possible.",
    "icon": "https://api.weather.gov/icons/land/night/rain_showers,30/rain_showers,50?size=medium"
   },
   {
    "number": 4,
    "name": "Saturday",
    "start": "2026-10-03T06:00:00-04:00",
    "end": "2026-10-03T18:00:00-04:00",
    "is_daytime": true,
    "temperature": 68,
    "temperature_unit": "F",
    "precip_probability_pct": 50,
    "wind_speed": "5 to 8 mph",
    "wind_direction": "NE",
    "short_forecast": "Chance Rain Showers",
    "detailed_forecast": "A chance of rain showers. Mostly cloudy, with a high near 68. Northeast wind 5 to 8 mph. Chance of precipitation is 50%. New rainfall amounts between a tenth and quarter of an inch possible.",
    "icon": "https://api.weather.gov/icons/land/day/rain_showers,50?size=medium"
   },
   {
    "number": 5,
    "name": "Saturday Night",
    "start": "2026-10-03T18:00:00-04:00",
    "end": "2026-10-04T06:00:00-04:00",
    "is_daytime": false,
    "temperature": 58,
    "temperature_unit": "F",
    "precip_probability_pct": 42,
    "wind_speed": "3 mph",
    "wind_direction": "E",
    "short_forecast": "Chance Rain Showers",
    "detailed_forecast": "A chance of rain showers. Cloudy, with a low around 58. East wind around 3 mph. Chance of precipitation is 40%.",
    "icon": "https://api.weather.gov/icons/land/night/rain_showers,20/rain_showers,40?size=medium"
   },
   {
    "number": 6,
    "name": "Sunday",
    "start": "2026-10-04T06:00:00-04:00",
    "end": "2026-10-04T18:00:00-04:00",
    "is_daytime": true,
    "temperature": 66,
    "temperature_unit": "F",
    "precip_probability_pct": 74,
    "wind_speed": "6 mph",
    "wind_direction": "NE",
    "short_forecast": "Showers And Thunderstorms Likely",
    "detailed_forecast": "A chance of rain showers before 8am, then showers and thunderstorms likely. Cloudy, with a high near 66. Chance of precipitation is 70%.",
    "icon": "https://api.weather.gov/icons/land/day/tsra,70?size=medium"
   },
   {
    "number": 7,
    "name": "Sunday Night",
    "start": "2026-10-04T18:00:00-04:00",
    "end": "2026-10-05T06:00:00-04:00",
    "is_daytime": false,
    "temperature": 58,
    "temperature_unit": "F",
    "precip_probability_pct": 59,
    "wind_speed": "1 to 5 mph",
    "wind_direction": "N",
    "short_forecast": "Showers And Thunderstorms Likely",
    "detailed_forecast": "Showers and thunderstorms likely before 2am. Cloudy, with a low around 58. Chance of precipitation is 60%.",
    "icon": "https://api.weather.gov/icons/land/night/tsra,60/tsra,20?size=medium"
   },
   {
    "number": 8,
    "name": "Monday",
    "start": "2026-10-05T06:00:00-04:00",
    "end": "2026-10-05T18:00:00-04:00",
    "is_daytime": true,
    "temperature": 70,
    "temperature_unit": "F",
    "precip_probability_pct": 3,
    "wind_speed": "3 to 10 mph",
    "wind_direction": "NW",
    "short_forecast": "Partly Sunny",
    "detailed_forecast": "Partly sunny, with a high near 70.",
    "icon": "https://api.weather.gov/icons/land/day/bkn?size=medium"
   },
   {
    "number": 9,
    "name": "Monday Night",
    "start": "2026-10-05T18:00:00-04:00",
    "end": "2026-10-06T06:00:00-04:00",
    "is_daytime": false,
    "temperature": 49,
    "temperature_unit": "F",
    "precip_probability_pct": 0,
    "wind_speed": "7 to 10 mph",
    "wind_direction": "NW",
    "short_forecast": "Mostly Clear",
    "detailed_forecast": "Mostly clear, with a low around 49.",
    "icon": "https://api.weather.gov/icons/land/night/few?size=medium"
   },
   {
    "number": 10,
    "name": "Tuesday",
    "start": "2026-10-06T06:00:00-04:00",
    "end": "2026-10-06T18:00:00-04:00",
    "is_daytime": true,
    "temperature": 61,
    "temperature_unit": "F",
    "precip_probability_pct": 0,
    "wind_speed": "5 to 8 mph",
    "wind_direction": "N",
    "short_forecast": "Sunny",
    "detailed_forecast": "Sunny, with a high near 61.",
    "icon": "https://api.weather.gov/icons/land/day/few?size=medium"
   },
   {
    "number": 11,
    "name": "Tuesday Night",
    "start": "2026-10-06T18:00:00-04:00",
    "end": "2026-10-07T06:00:00-04:00",
    "is_daytime": false,
    "temperature": 46,
    "temperature_unit": "F",
    "precip_probability_pct": 0,
    "wind_speed": "0 to 3 mph",
    "wind_direction": "N",
    "short_forecast": "Mostly Clear",
    "detailed_forecast": "Mostly clear, with a low around 46.",
    "icon": "https://api.weather.gov/icons/land/night/few?size=medium"
   },
   {
    "number": 12,
    "name": "Wednesday",
    "start": "2026-10-07T06:00:00-04:00",
    "end": "2026-10-07T18:00:00-04:00",
    "is_daytime": true,
    "temperature": 64,
    "temperature_unit": "F",
    "precip_probability_pct": 0,
    "wind_speed": "0 to 6 mph",
    "wind_direction": "E",
    "short_forecast": "Sunny",
    "detailed_forecast": "Sunny, with a high near 64.",
    "icon": "https://api.weather.gov/icons/land/day/few?size=medium"
   },
   {
    "number": 13,
    "name": "Wednesday Night",
    "start": "2026-10-07T18:00:00-04:00",
    "end": "2026-10-08T06:00:00-04:00",
    "is_daytime": false,
    "temperature": 50,
    "temperature_unit": "F",
    "precip_probability_pct": 1,
    "wind_speed": "1 to 6 mph",
    "wind_direction": "S",
    "short_forecast": "Mostly Clear",
    "detailed_forecast": "Mostly clear, with a low around 50.",
    "icon": "https://api.weather.gov/icons/land/night/few?size=medium"
   },
   {
    "number": 14,
    "name": "Thursday",
    "start": "2026-10-08T06:00:00-04:00",
    "end": "2026-10-08T18:00:00-04:00",
    "is_daytime": true,
    "temperature": 70,
    "temperature_unit": "F",
    "precip_probability_pct": 2,
    "wind_speed": "1 to 5 mph",
    "wind_direction": "SW",
    "short_forecast": "Sunny",
    "detailed_forecast": "Sunny, with a high near 70.",
    "icon": "https://api.weather.gov/icons/land/day/few?size=medium"
   }
  ],
  "source": {
   "provider": "US National Weather Service (api.weather.gov)",
   "url": "https://api.weather.gov/gridpoints/LWX/97,71/forecast",
   "license": "public domain (work of the US Government); attribution appreciated: NOAA/National Weather Service"
  },
  "fetched_at": "2026-10-02T04:30:22.327Z",
  "route": "weather-forecast",
  "price_usdc": 0.005,
  "payment": {
   "transaction": "0x… (settlement transaction hash)",
   "network": "eip155:8453",
   "payer": "0x… (payer address)"
  },
  "request_id": "…"
 },
 "response_402_without_payment": {
  "x402Version": 2,
  "error": "Payment required",
  "resource": {
   "url": "https://utility.agentexchange.work/v1/weather/forecast?lat=38.8977&lon=-77.0365",
   "description": "Returns the official US National Weather Service 7-day forecast for a US lat/lon as normalized JSON: about 14 day and night periods (temperature, precipitation probability, wind, short and detailed text), plus city, state, time zone, NWS office and grid. Call it when an agent needs a weather forecast for a US location. Points outside NWS coverage are refused with 400 before payment.",
   "mimeType": "application/json",
   "serviceName": "NWS 7-day point forecast",
   "tags": [
    "weather",
    "forecast",
    "nws",
    "geo",
    "us"
   ],
   "iconUrl": "https://utility.agentexchange.work/icon.png"
  },
  "accepts": [
   {
    "scheme": "exact",
    "network": "eip155:8453",
    "amount": "5000",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "payTo": "0xc91cE6291eDC0713ec753BAFBA002506ffb2b95c",
    "maxTimeoutSeconds": 300,
    "extra": {
     "name": "USD Coin",
     "version": "2"
    }
   }
  ],
  "extensions": {
   "bazaar": {
    "info": {
     "input": {
      "type": "http",
      "method": "GET",
      "queryParams": {
       "lat": "38.8977",
       "lon": "-77.0365"
      }
     },
     "output": {
      "type": "json",
      "example": {
       "location": {
        "lat": 38.8977,
        "lon": -77.0365,
        "city": "Washington",
        "state": "DC",
        "timezone": "America/New_York",
        "grid": {
         "office": "LWX",
         "x": 97,
         "y": 71
        },
        "forecast_zone": "DCZ001",
        "county_zone": "DCC001",
        "radar_station": "KLWX"
       },
       "generated_at": "2026-10-01T00:00:01+00:00",
       "updated_at": "2026-09-30T23:53:02+00:00",
       "elevation_m": 6.1,
       "units": "us",
       "count": 14,
       "periods": [
        {
         "number": 1,
         "name": "Tonight",
         "start": "2026-09-30T20:00:00-04:00",
         "end": "2026-10-01T06:00:00-04:00",
         "is_daytime": false,
         "temperature": 62,
         "temperature_unit": "F",
         "precip_probability_pct": 0,
         "wind_speed": "6 mph",
         "wind_direction": "S",
         "short_forecast": "Mostly Cloudy",
         "detailed_forecast": "Mostly cloudy, with a low around 62. South wind around 6 mph.",
         "icon": "https://api.weather.gov/icons/land/night/bkn?size=medium"
        }
       ],
       "source": {
        "provider": "US National Weather Service (api.weather.gov)",
        "url": "https://api.weather.gov/gridpoints/LWX/97,71/forecast",
        "license": "public domain (work of the US Government); attribution appreciated: NOAA/National Weather Service"
       },
       "fetched_at": "2026-10-01T00:12:01.000Z"
      }
     }
    },
    "schema": {
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "type": "object",
     "properties": {
      "input": {
       "type": "object",
       "properties": {
        "type": {
         "type": "string",
         "const": "http"
        },
        "method": {
         "type": "string",
         "enum": [
          "GET",
          "HEAD"
         ]
        },
        "queryParams": {
         "type": "object",
         "properties": {
          "lat": {
           "type": "number",
           "minimum": -90,
           "maximum": 90,
           "description": "latitude in decimal degrees (WGS84)"
          },
          "lon": {
           "type": "number",
           "minimum": -180,
           "maximum": 180,
           "description": "longitude in decimal degrees (WGS84)"
          }
         },
         "required": [
          "lat",
          "lon"
         ]
        }
       },
       "required": [
        "type",
        "method"
       ],
       "additionalProperties": false
      },
      "output": {
       "type": "object",
       "properties": {
        "type": {
         "type": "string"
        },
        "example": {
         "type": "object",
         "properties": {
          "location": {
           "type": "object",
           "properties": {
            "lat": {
             "type": "number"
            },
            "lon": {
             "type": "number"
            },
            "city": {
             "type": "string"
            },
            "state": {
             "type": "string"
            },
            "timezone": {
             "type": "string"
            },
            "grid": {
             "type": "object",
             "properties": {
              "office": {
               "type": "string"
              },
              "x": {
               "type": "integer"
              },
              "y": {
               "type": "integer"
              }
             }
            },
            "forecast_zone": {
             "type": "string"
            },
            "county_zone": {
             "type": "string"
            },
            "radar_station": {
             "type": "string"
            }
           }
          },
          "generated_at": {
           "type": "string"
          },
          "updated_at": {
           "type": "string"
          },
          "elevation_m": {
           "type": "number"
          },
          "units": {
           "type": "string"
          },
          "count": {
           "type": "integer"
          },
          "periods": {
           "type": "array",
           "items": {
            "type": "object",
            "properties": {
             "number": {
              "type": "integer"
             },
             "name": {
              "type": "string"
             },
             "start": {
              "type": "string"
             },
             "end": {
              "type": "string"
             },
             "is_daytime": {
              "type": "boolean"
             },
             "temperature": {
              "type": "integer"
             },
             "temperature_unit": {
              "type": "string"
             },
             "precip_probability_pct": {
              "type": "integer"
             },
             "wind_speed": {
              "type": "string"
             },
             "wind_direction": {
              "type": "string"
             },
             "short_forecast": {
              "type": "string"
             },
             "detailed_forecast": {
              "type": "string"
             },
             "icon": {
              "type": "string"
             }
            }
           }
          },
          "source": {
           "type": "object",
           "properties": {
            "provider": {
             "type": "string"
            },
            "url": {
             "type": "string"
            },
            "license": {
             "type": "string"
            }
           }
          },
          "fetched_at": {
           "type": "string"
          }
         }
        }
       },
       "required": [
        "type"
       ]
      }
     },
     "required": [
      "input"
     ]
    }
   }
  },
  "message": "Pay $0.005 USDC on Base and retry with PAYMENT-SIGNATURE (v2) or X-PAYMENT (v1).",
  "price": "$0.005",
  "price_usdc": 0.005,
  "amount_atomic": "5000",
  "input_example": "https://utility.agentexchange.work/v1/weather/forecast?lat=38.8977&lon=-77.0365",
  "docs": {
   "openapi": "https://utility.agentexchange.work/openapi.json",
   "llms": "https://utility.agentexchange.work/llms.txt",
   "sample": "https://utility.agentexchange.work/samples/weather-forecast.json",
   "terms": "https://utility.agentexchange.work/terms"
  }
 },
 "docs": "https://utility.agentexchange.work/llms.txt"
}