{"uid":"cap_pE0of45uSquLVN198M0aA","slug":"x402-factory-portland-window-rain-forecast-eaa362d6","name":"x402-factory Portland Window Rain Forecast","description":"Will it rain in Portland during your event window — Event-window weather odds for Portland: pass a start and end time (or omit them for the next six hours) and get rain probability and expected conditions across the window — built for scheduling decisions. Same shape as /v1/forecast/window with the Portland coordinates built in.","url":"https://x402-factory.com/v1/forecast/portland/window","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":[],"properties":{"end":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"Window end (ISO-8601), ≤12h after start. Default: start + 6h."},"start":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"Window start (ISO-8601). Default: the top of the next hour."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","required":["rain_probability","expected_precip_mm","temp_range","wind_max","comfort_index","severity_flags","verdict"],"properties":{"verdict":{"type":"string"},"wind_max":{"type":"number"},"temp_range":{"type":"object","required":["low","high"],"properties":{"low":{"type":"number"},"high":{"type":"number"}},"additionalProperties":false},"comfort_index":{"type":"number","maximum":1,"minimum":0},"severity_flags":{"type":"array","items":{"type":"string"}},"rain_probability":{"type":"number","maximum":1,"minimum":0},"expected_precip_mm":{"type":"number"}},"additionalProperties":false},"meta":{"type":"object"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_IgqXx1FfzCCiuagmFX_N8","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns rain probability, precipitation, temperature range, wind, comfort index, and an overall verdict for a specified time window in Portland, OR.","exampleAgentPrompt":"Will it rain in Portland this Saturday between 10am and 4pm? I need a rain probability and an overall weather verdict so I can decide whether to hold the event outdoors.","exampleUseCases":[{"title":"Outdoor wedding weather check","prompt":"I'm planning an outdoor wedding reception in Portland on July 12th from 3pm to 9pm — can you get me the rain probability, expected precipitation, and a comfort rating for that window so we can finalize the venue decision?"},{"title":"Morning farmers market scheduling","prompt":"Should I set up my booth at the Portland farmers market tomorrow morning? Check the weather from 7am to 1pm and tell me if there's significant rain risk or any severity flags I should worry about."},{"title":"Corporate picnic go/no-go decision","prompt":"We're considering a company picnic in Portland next Friday afternoon from noon to 5pm — what's the rain probability and overall verdict for that window, and are there any severe weather flags?"}],"resultDescription":"A JSON object with: rain_probability (0–1), expected_precip_mm (total precipitation in mm), temp_range (low/high in °C or °F), wind_max (max wind speed), comfort_index (0–1), severity_flags (array of active warning strings), and verdict (plain-language summary of expected conditions). Also includes meta information about the window and data freshness.","failureModes":["Invalid ISO-8601 datetime format returns a 400 validation error","Window end more than 12 hours after start returns a 400 error","Missing x402 payment header or insufficient USDC balance returns 402 Payment Required","Start time in the past or too far in the future may return a 400 or empty forecast","Network or upstream weather data source failure returns 5xx"],"whenToPreferThis":"Use this endpoint when you need a weather assessment specifically for Portland, OR for a bounded time window (up to 12 hours) — especially for scheduling or go/no-go decisions where rain probability, comfort, and severity flags are more useful than a raw hour-by-hour forecast. It avoids the need to supply Portland's coordinates and delivers a pre-aggregated verdict rather than raw data. Prefer the generic /v1/forecast/window endpoint instead if you need a city other than Portland.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:49:50.159Z","isFirstParty":false}