{"uid":"cap_gWYL1wFhflW42yW6eejdN","slug":"p0-weather-forecast-by-coordinates-b6c8a059","name":"P0 Weather Forecast by Coordinates","description":"An open index of the machine-to-machine (agent) economy. x402 routes: ranked discovery over the live x402 service market, every indexed service scored by real 30-day calls and paying-wallet bounds, with a receipt naming the snapshot hash and scoring revision. /economy routes, for Tempo MPP, Virtuals ACP, Olas, Masumi, ERC-8004 agent registries, Solana agent registries, Base agent contracts and MCP servers (Official MCP Registry): each protocol's published figures (agent or server counts, transactions or payment events; payers and USD volume only where the source publishes them: payers for x402 and Tempo MPP, USD volume for x402 and Virtuals ACP), each with its unit, window and source; units differ, so totals are not summed. L402 and per-service MPP listings are not covered.","url":"https://x402-bazaar-rank.x402-bazaar-rank-worker.workers.dev/weather?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","HEAD"],"type":"string"},"queryParams":{"type":"object","required":["lat","lon"],"properties":{"lat":{"type":"number","maximum":90,"minimum":-90,"description":"latitude in decimal degrees"},"lon":{"type":"number","maximum":180,"minimum":-180,"description":"longitude in decimal degrees"},"hours":{"type":"integer","default":48,"maximum":240,"minimum":1,"description":"forecast horizon in hours (hourly steps first, then 6-hourly as MET publishes)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["lat","lon","hours","points","alertsStatus","attribution","note"],"properties":{"lat":{"type":"number"},"lon":{"type":"number"},"note":{"type":"string"},"hours":{"type":"integer"},"units":{"type":"object"},"alerts":{"type":["array","null"],"items":{"type":"object"}},"points":{"type":"array","items":{"type":"object","required":["time"],"properties":{"time":{"type":"string"},"tempC":{"type":["number","null"]},"symbol":{"type":["string","null"]},"windMs":{"type":["number","null"]},"cloudPct":{"type":["number","null"]},"precipMm":{"type":["number","null"]},"humidityPct":{"type":["number","null"]},"precipHours":{"type":["integer","null"]},"pressureHpa":{"type":["number","null"]},"windFromDeg":{"type":["number","null"]}}}},"requested":{"type":"object","properties":{"lat":{"type":"number"},"lon":{"type":"number"}}},"updatedAt":{"type":["string","null"]},"attribution":{"type":"object","required":["forecast","forecastLicense"],"properties":{"alerts":{"type":["string","null"]},"forecast":{"type":"string"},"forecastSource":{"type":"string"},"forecastLicense":{"type":"string"}}},"generatedAt":{"type":"string"},"alertsStatus":{"type":"string"}}}}}}},"responseSchema":{"type":"json","example":{"lat":40.71,"lon":-74.01,"note":"Forecast, not an observation. Coordinates are rounded to 0.01 degrees (about 1 km). Not for aviation, marine or life-safety decisions; use official sources for warnings.","hours":1,"units":{"tempC":"celsius","windMs":"m/s","cloudPct":"%","precipMm":"mm over precipHours after time","humidityPct":"%","pressureHpa":"hPa","windFromDeg":"degrees"},"alerts":[],"points":[{"time":"2026-10-05T12:00:00Z","tempC":13.5,"symbol":"clearsky_day","windMs":3.5,"cloudPct":3.9,"precipMm":0,"humidityPct":93.8,"precipHours":1,"pressureHpa":1015.3,"windFromDeg":248.7}],"requested":{"lat":40.7128,"lon":-74.006},"updatedAt":"2026-10-05T11:19:21Z","attribution":{"alerts":"Active alerts from the U.S. National Weather Service (api.weather.gov), public domain. Alert texts are quoted, long description/instruction fields are shortened (truncated:true; full text at the alert url). P0 is not affiliated with or endorsed by NOAA/NWS.","forecast":"Data from MET Norway (The Norwegian Meteorological Institute), licensed under CC BY 4.0 and NLOD 2.0. Changes: P0 selected the requested hours and renamed fields; values are unchanged.","forecastSource":"https://api.met.no/weatherapi/locationforecast/2.0/documentation","forecastLicense":"https://creativecommons.org/licenses/by/4.0/"},"generatedAt":"2026-10-05T12:43:00.000Z","alertsStatus":"ok"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_4S4X4qtgoCSgPoCLooayJ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns hourly/6-hourly weather forecasts and active weather alerts for a given latitude/longitude, sourced from MET Norway and NWS","exampleAgentPrompt":"What's the weather forecast for the next 48 hours at latitude 40.71, longitude -74.01? Include temperature, wind, precipitation, and any active alerts.","exampleUseCases":[{"title":"Outdoor event weather check","prompt":"Can you pull the hourly weather forecast for latitude 51.50, longitude -0.12 for the next 72 hours? I need temperature, precipitation, and wind speed to decide if our outdoor event in London this weekend is safe."},{"title":"Drone flight condition assessment","prompt":"Get me the wind speed, cloud cover, and precipitation forecast for the next 24 hours at lat 37.77, lon -122.42 — I need to know if conditions are safe for a drone flight over San Francisco."},{"title":"Agricultural irrigation planning","prompt":"Fetch a 5-day hourly weather forecast for coordinates 36.85 latitude and -119.75 longitude, including humidity, precipitation millimeters, and pressure — I'm planning irrigation schedules for a farm in California's Central Valley."}],"resultDescription":"A JSON object containing an array of forecast time points (each with temperature in Celsius, wind speed in m/s, wind direction in degrees, precipitation in mm, humidity %, cloud cover %, and pressure in hPa), plus any active weather alerts from NWS, attribution details, the actual rounded coordinates used, and a generation timestamp. Units are clearly labeled and forecast data is attributed to MET Norway under CC BY 4.0.","failureModes":["Invalid lat/lon values outside -90/90 or -180/180 range return validation errors","Coordinates in regions not covered by MET Norway forecast may return empty or partial point arrays","NWS alert fetching may fail independently, indicated by alertsStatus field being non-'ok'","Payment failure (402) if USDC micropayment is not correctly submitted","Requesting more than 240 hours returns a validation error","Network timeouts from upstream MET Norway or NWS APIs may cause delayed or error responses"],"whenToPreferThis":"Choose this endpoint when you need structured, machine-readable hourly weather forecast data for any global latitude/longitude coordinate pair, especially in agentic pipelines that require precise field-level weather variables (temperature, wind, precipitation, humidity) rather than a human-readable summary. It is particularly useful when you also need U.S. weather alerts co-located with the forecast. Prefer it over general weather APIs when you want a clean, normalized JSON schema with clear units and attribution, and when you are operating in an x402 micropayment context. Not suitable for aviation, marine, or life-safety decisions.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T12:39:22.319Z","isFirstParty":false,"canonicalSlug":"p0-weather-forecast-by-coordinates-b6c8a059"}