{"uid":"cap__jx8IPbDb77LYn_qeuCYB","slug":"agent-data-desk-weather-96dea87c","name":"Agent Data Desk Weather","description":"Pay-per-call data for AI agents: weather ($0.005), defi_yields ($0.002), token_balance ($0.002), markdown ($0.01). USDC on Base mainnet via x402 v2; no API keys, no accounts.","url":"https://x402-seller.zshnfaizal.workers.dev/v1/weather","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":["city"],"properties":{"lat":{"type":"number","description":"Latitude (-90..90). Use with lon instead of city."},"lon":{"type":"number","description":"Longitude (-180..180). Use with lat instead of city."},"city":{"type":"string","description":"City name, e.g. Chicago or 'Paris, FR'. Required unless lat+lon are given."},"units":{"enum":["metric","imperial"],"type":"string","description":"Primary unit system for the compact fields. Both C and F are always included for temperature."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["location","current","next_24h","source"],"properties":{"source":{"type":"object"},"current":{"type":"object","properties":{"time":{"type":"string"},"is_day":{"type":"integer"},"temp_c":{"type":"number"},"temp_f":{"type":"number"},"weather":{"type":"string"},"wind_kmh":{"type":"number"},"wind_mph":{"type":"number"},"feels_like_c":{"type":"number"},"humidity_pct":{"type":"number"},"weather_code":{"type":"integer"},"wind_dir_deg":{"type":"number"},"precipitation_mm":{"type":"number"}}},"location":{"type":"object","properties":{"lat":{"type":"number"},"lon":{"type":"number"},"name":{"type":"string"},"admin1":{"type":"string"},"country":{"type":"string"},"timezone":{"type":"string"}}},"next_24h":{"type":"object","properties":{"hourly":{"type":"array","items":{"type":"object"}},"temp_max_c":{"type":"number"},"temp_min_c":{"type":"number"},"precip_total_mm":{"type":"number"},"dominant_weather":{"type":"string"},"precip_prob_max_pct":{"type":"number"}}},"air_quality":{"type":"object","properties":{"pm10":{"type":"number"},"ozone":{"type":"number"},"pm2_5":{"type":"number"},"us_aqi":{"type":"number"},"us_aqi_category":{"type":"string"}}}}}}}}},"responseSchema":{"type":"json","example":{"source":{"weather":"open-meteo.com","fetched_at":"2026-08-29T20:05:12.000Z","air_quality":"open-meteo.com"},"current":{"time":"2026-08-29T20:00","is_day":0,"temp_c":21.4,"temp_f":70.5,"weather":"Clear sky","wind_kmh":10.6,"wind_mph":6.6,"feels_like_c":22.3,"humidity_pct":76,"weather_code":0,"wind_dir_deg":152,"precipitation_mm":0},"location":{"lat":41.85003,"lon":-87.65005,"name":"Chicago","admin1":"Illinois","country":"US","timezone":"America/Chicago"},"next_24h":{"hourly":[{"time":"2026-08-29T21:00","temp_c":20.9,"weather_code":1,"precip_prob_pct":5}],"temp_max_c":27.3,"temp_min_c":18.1,"precip_total_mm":0.2,"dominant_weather":"Partly cloudy","precip_prob_max_pct":30},"air_quality":{"pm10":6.6,"time":"2026-08-29T20:00","ozone":83,"pm2_5":6.3,"us_aqi":55,"us_aqi_category":"Moderate"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_HSE2aceyINryrnrwhp05k","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns current weather conditions, 24-hour forecast, and air quality data for a given city or coordinates, billed per-call via USDC on Base.","exampleAgentPrompt":"What's the weather like right now in Chicago — give me the current temperature in Fahrenheit, humidity, wind, and whether it's expected to rain in the next 24 hours.","exampleUseCases":[{"title":"Pre-trip weather check","prompt":"Before I fly out to Paris tomorrow, what's the current weather there and what should I expect over the next 24 hours — highs, lows, and any chance of rain?"},{"title":"Outdoor event planning","prompt":"I'm organizing an outdoor event in Austin, TX this weekend — can you pull the current conditions and 24-hour forecast including precipitation probability so I know if we need a backup plan?"},{"title":"Air quality health alert","prompt":"What's the air quality like in Los Angeles right now? I need the AQI category, PM2.5, and ozone levels so I can decide whether it's safe to go for a run outside."}],"resultDescription":"A JSON object containing: location metadata (name, lat/lon, timezone, country), current conditions (temperature in C and F, feels-like, humidity, wind speed/direction, precipitation, weather description, is_day flag), a next_24h block with hourly forecasts and aggregate daily high/low/precipitation/dominant weather, an air_quality block (PM2.5, PM10, ozone, US AQI with category), and a source block indicating Open-Meteo as the data provider with a fetched_at timestamp.","failureModes":["City name not recognized — returns error if the city string cannot be geocoded","Missing required parameter — omitting both city and lat+lon returns a 400-level error","Payment failure — x402 micropayment not completed or insufficient USDC balance blocks the request","Rate or network error from upstream Open-Meteo — may return a 502 or timeout","Invalid coordinate range — lat outside -90..90 or lon outside -180..180 causes a validation error"],"whenToPreferThis":"Choose this endpoint when you need a no-account, pay-per-call weather lookup with combined current conditions, 24-hour hourly forecast, and air quality data in a single response. It is ideal for AI agents that need weather data on-demand without managing API keys or subscriptions, and for workflows where USDC micropayments on Base are already in use. Prefer alternatives if you need multi-day extended forecasts beyond 24 hours, historical weather data, or weather radar imagery.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:31:58.516Z","isFirstParty":false}