{"uid":"cap_h9J7xowZ8P5_PYsT0opj8","slug":"weatherxm-agent-api-current-weather-conditions-fb07ed01","name":"WeatherXM Agent API – Current Weather Conditions","description":"Current weather conditions for a location","url":"https://agent.weatherxm.com/api/current","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":["lat","lon"],"properties":{"tz":{"type":"string","description":"IANA timezone (e.g., Europe/Athens) or \"auto\""},"lat":{"type":"number","description":"Latitude (-90 to 90)"},"lon":{"type":"number","description":"Longitude (-180 to 180)"},"units":{"enum":["metric","imperial"],"type":"string","description":"Unit system: \"metric\" (default) or \"imperial\""}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","description":"Current weather data including temperature, wind, humidity, etc."}}}}},"responseSchema":{"type":"json","example":{"units":"metric","current":{"time":"2025-01-05T12:00:00+02:00","uvIndex":3,"humidity":65,"pressure":1013.2,"windSpeed":12.5,"temperature":15.2,"precipitation":0,"windDirection":180,"apparentTemperature":14.5},"location":{"lat":37.98,"lon":23.73},"timezone":"Europe/Athens"}},"example":{"request":{"input":{"type":"http","method":"GET","queryParams":{"tz":"Europe/Athens","lat":37.98,"lon":23.73,"units":"metric"}},"output":{"type":"object"}},"response":{"units":"metric","current":{"time":"2026-06-12T05:00:00+03:00","humidity":56,"pressure":1012,"uv_index":0,"feels_like":25.4,"wind_speed":0.8,"temperature":24.3,"precipitation":0,"wind_direction":91,"precipitation_probability":0},"location":{"lat":37.98,"lon":23.73},"timezone":"Europe/Athens","data_source":"live"}},"exampleRequest":{"tz":"Europe/Athens","lat":37.98,"lon":23.73,"units":"metric"},"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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_l0MueWgztYJrji_aDykXO","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 real-time weather conditions (temperature, humidity, wind, UV index, pressure, precipitation) for a given latitude/longitude coordinate","exampleAgentPrompt":"What's the current weather at coordinates 37.98°N, 23.73°E — give me the temperature, humidity, wind speed, and UV index in metric units using the Europe/Athens timezone?","exampleUseCases":null,"resultDescription":"A JSON object containing current weather observations for the requested coordinates, including: temperature (°C or °F), apparent temperature, humidity (%), wind speed, wind direction (degrees), UV index, atmospheric pressure (hPa), precipitation, timestamp of the reading, IANA timezone, and the echoed lat/lon location.","failureModes":["Missing or out-of-range lat/lon parameters returns a 400 bad request","Invalid unit enum value (not 'metric' or 'imperial') causes a validation error","Payment not included or insufficient USDC causes a 402 Payment Required response","Coordinates over open ocean or remote areas with no nearby station may return no data or an error","Invalid or unrecognized IANA timezone string may return an error or fall back to UTC"],"whenToPreferThis":"Use this endpoint when you need point-in-time, real-time weather observations for a specific geographic coordinate and require structured numeric data (temperature, wind, humidity, etc.). Prefer this over forecast endpoints when you need current conditions rather than future predictions, and over historical endpoints when you need the latest reading rather than past data. The WeatherXM network sources data from decentralized ground-level weather stations, making it well-suited for hyperlocal current conditions.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:48:03.460Z","isFirstParty":false}