{"uid":"cap_y1hjI2OXOwtbB9ziPq3K7","slug":"weather-forecast-api-x402-micropayment-df0d3063","name":"Weather Forecast API (x402 Micropayment)","description":"X402 micropayments server — AI agents pay USDC for OFAC screening, rates, and billing verification.","url":"https://x402helper.xyz/89e509/forecast?utm_source=zero.xyz","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":{"lat":{"type":"number","default":null,"description":"Latitude [-90,90] (with lon)"},"lon":{"type":"number","default":null,"description":"Longitude [-180,180] (with lat)"},"days":{"type":"integer","default":null,"maximum":7,"minimum":1,"description":"Limit number of days returned"},"hourly":{"type":"boolean","default":null,"description":"Hourly instead of day/night periods"},"address":{"type":"string","default":null,"description":"US address (alternative to lat/lon)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"result":{},"success":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.004","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.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_0kOTuBPC4jZWef1oiqPzb","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns a weather forecast (daily or hourly) for a given US location by coordinates or address, paid per-call via USDC micropayment.","exampleAgentPrompt":"What's the weather forecast for the next 3 days at latitude 40.7128, longitude -74.0060? Give me daily periods, not hourly.","exampleUseCases":[{"title":"Trip planning weather check","prompt":"Can you pull the 5-day forecast for 1600 Pennsylvania Ave NW, Washington DC so I can plan our outdoor event?"},{"title":"Hourly forecast by GPS coordinates","prompt":"Get me hourly weather for the next 2 days at lat 34.05, lon -118.25 — I need to know when it's safe to work outside."},{"title":"Daily weather for a home address","prompt":"What's the daily weather outlook for the next 7 days at 221B Baker Street, New York? Just day/night periods, not hourly."}],"resultDescription":"A JSON object with a `success` boolean and a `result` object containing the weather forecast — either daily (day/night periods) or hourly breakdowns, including temperature and conditions, for up to 7 days at the requested US location.","failureModes":["Missing required lat+lon pair or address returns an error","Coordinates outside the US may not be supported by underlying NWS data","Days value out of range (1–7) returns a validation error","Payment not completed results in HTTP 402 and no forecast data","Invalid or unrecognized address may fail geocoding and return an error"],"whenToPreferThis":"Choose this endpoint when you need quick, per-call weather forecast data for US locations without a subscription, are willing to pay $0.004 USDC per call via x402, and need either daily or hourly granularity by coordinates or street address. Prefer alternatives if you need global coverage, historical weather data, or high-volume batch forecasting.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-07T06:46:20.556Z","isFirstParty":false,"canonicalSlug":"weather-forecast-api-x402-micropayment-df0d3063"}