{"uid":"cap_gVhNAidLctK6DGDF8LCrD","slug":"current-weather-by-city-or-coordinates-311ef17d","name":"Current Weather by City or Coordinates","description":"Current weather for a city (or lat/lon): temperature, feels-like, humidity, wind, precipitation and conditions. JSON.","url":"https://weather-production-18af.up.railway.app/v1/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"],"type":"string"},"queryParams":{"type":"object","properties":{"lat":{"type":"number"},"lon":{"type":"number"},"city":{"type":"string","description":"City name. Required unless lat and lon are given."},"days":{"type":"integer","maximum":7,"minimum":1,"description":"Forecast only."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"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_V7jfBp3eIKryEAweXZxSb","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 current weather conditions (temperature, feels-like, humidity, wind, precipitation) for a given city name or lat/lon coordinates as JSON.","exampleAgentPrompt":"What's the current weather in Chicago — temperature, humidity, wind, and whether it's raining?","exampleUseCases":[{"title":"Travel packing decision","prompt":"What's the weather like right now in Amsterdam? Give me the temperature, feels-like, humidity, and any precipitation so I know what to pack."},{"title":"Remote worker outdoor conditions","prompt":"Can you check the current conditions at coordinates 37.7749, -122.4194 — I need temperature, wind speed, and whether it's raining."},{"title":"Event planning weather check","prompt":"What's the current weather in Austin, Texas? I need temperature, feels-like, wind, and precipitation conditions."}],"resultDescription":"A JSON object containing current weather data for the queried location, including temperature, feels-like temperature, humidity, wind speed and direction, precipitation amount, and a textual description of conditions.","failureModes":["City name not found or ambiguous — returns error indicating unrecognized location","Missing required input (neither city nor lat/lon provided) — returns validation error","Upstream weather data provider unavailable — may return 5xx or timeout","Invalid lat/lon values outside valid geographic range — returns error"],"whenToPreferThis":"Use this endpoint when you need real-time current weather conditions (not forecasts) for a specific city or geographic coordinate. It is ideal for single-location spot checks where up-to-date temperature, humidity, wind, and precipitation data are needed immediately. For multi-day forecasts, use the sibling forecast endpoint instead.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-01T12:44:06.849Z","isFirstParty":false,"canonicalSlug":"current-weather-by-city-or-coordinates-311ef17d"}