{"uid":"cap_HXhDOEqd88K42e1GVraTG","slug":"meld402-weather-context-37d88b5e","name":"meld402 Weather Context","description":"14 paid data endpoints for autonomous agents and developers. Covers crypto intelligence (token, chain, Solana, gas), markets (FX, market pulse), location (weather), and research (news, brief). Each route aggregates multiple public sources into one stable schema with a single USDC payment over x402 on Base.","url":"https://meld402.vercel.app/api/weather/context","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"lat":{"type":"number","maximum":90,"minimum":-90,"description":"Latitude"},"lon":{"type":"number","maximum":180,"minimum":-180,"description":"Longitude"},"days":{"type":"integer","default":5,"maximum":7,"minimum":1,"description":"Forecast days"},"source":{"enum":["openweathermap","weatherapi","auto"],"type":"string","default":"auto","description":"Weather provider"}}},"responseSchema":{"type":"json","example":{"data":{"place":{"lat":37.7749,"lon":-122.4194,"name":"San Francisco","region":"California","country":"United States","timezone":"America/Los_Angeles"},"source":"weatherapi","current":{"is_day":false,"uv_index":0,"wind_kph":15.5,"condition":"partly cloudy","air_quality":{"co":0.3,"o3":45.2,"no2":12.5,"so2":2.1,"pm10":12.7,"pm2_5":8.3,"epa_index":2},"observed_at":"2026-08-23T21:00:00.000Z","wind_degree":280,"feels_like_c":18,"pressure_hpa":1013,"temperature_c":18.5,"visibility_km":10,"condition_code":801,"wind_direction":"W","humidity_percent":72,"precipitation_mm":0},"forecast":[{"date":"2026-08-24","sunset":"2026-08-25T02:15:00.000Z","sunrise":"2026-08-24T13:45:00.000Z","uv_index":5,"condition":"partly cloudy","avg_temp_c":17.3,"max_temp_c":20.5,"min_temp_c":14.2,"max_wind_kph":18.2,"condition_code":801,"humidity_percent":68,"precipitation_mm":0},{"date":"2026-08-25","sunset":"2026-08-26T02:15:00.000Z","sunrise":"2026-08-25T13:45:00.000Z","uv_index":6,"condition":"clear sky","avg_temp_c":18,"max_temp_c":21,"min_temp_c":15,"max_wind_kph":12.5,"condition_code":800,"humidity_percent":65,"precipitation_mm":0}]},"meta":{"as_of":"2026-08-24T00:00:00.000Z","sources":["weatherapi","openweathermap"],"degraded":[],"attribution":["Weather data by WeatherAPI (weatherapi.com)","Weather data by OpenWeatherMap (openweathermap.org)"]}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","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.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_CpzSvF88qjg0O1elbdfne","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns aggregated current weather conditions, air quality, and multi-day forecast for a given latitude/longitude by combining OpenWeatherMap and WeatherAPI into a single normalized response.","exampleAgentPrompt":"Can you pull current weather conditions and a 5-day forecast for San Francisco (37.7749, -122.4194), including air quality data, using the weatherapi source?","exampleUseCases":[{"title":"Outdoor event planning weather check","prompt":"I'm planning an outdoor event in Austin, Texas next week — can you get me the weather forecast for the next 7 days for coordinates 30.2672, -97.7431, including UV index and precipitation?"},{"title":"Air quality monitoring for health alert","prompt":"Check the current air quality and weather conditions at latitude 34.0522, longitude -118.2437 (Los Angeles) — I need the EPA index and PM2.5 levels right now."},{"title":"Travel itinerary weather briefing","prompt":"What's the weather looking like in London (51.5074, -0.1278) for the next 3 days? I need temperature highs and lows, wind speed, and whether it'll rain."}],"resultDescription":"Returns a JSON object with place metadata (name, region, country, timezone), current conditions (temperature, feels-like, humidity, wind, UV index, pressure, visibility, air quality with EPA index and pollutant readings), and a daily forecast array (up to 7 days with high/low temps, sunrise/sunset, precipitation, wind, condition). Also includes meta block with source attribution, data freshness timestamp, and degraded-source flags.","failureModes":["Invalid latitude/longitude values outside allowed ranges return validation errors","Requested weather provider unavailable or rate-limited may trigger degraded mode or fallback to auto","Coordinates in remote oceanic areas may return no place name or limited data","x402 payment failure blocks the request before any data is returned","days parameter out of 1-7 range returns a schema validation error"],"whenToPreferThis":"Choose this endpoint when you need normalized weather data from multiple sources in a single call with a stable schema, without managing individual API keys for OpenWeatherMap or WeatherAPI. Ideal for autonomous agents that need current conditions plus a short forecast (up to 7 days) with air quality in one request, billed per-call in USDC via x402. Prefer it over direct provider APIs when you want redundancy across sources and a consistent output format regardless of which provider responds.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:43:38.350Z","isFirstParty":false}