{"uid":"cap_2n-T9aqxjsoooAK7UI7KW","slug":"api-x-402-online-weather-api-79d30073","name":"api.x-402.online Weather API","description":"Worldwide weather: current conditions + 3-day forecast by lat/lon or city name. Query: ?city= or ?lat=&lon=","url":"https://api.x-402.online/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","properties":{}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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":"down","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_HsvF4BTYiO7FudYVviHdJ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","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 and a 3-day forecast for any location, queried by city name or latitude/longitude coordinates.","exampleAgentPrompt":"What's the current weather and 3-day forecast for Tokyo? Give me temperature and conditions.","exampleUseCases":[{"title":"Trip packing advice by weather","prompt":"I'm flying to Barcelona next week — can you check the weather forecast for the next 3 days so I know what clothes to pack?"},{"title":"Live conditions for outdoor event","prompt":"We have an outdoor concert in Austin, Texas tomorrow. What are the current weather conditions and will it stay clear over the next few days?"},{"title":"Farm irrigation planning forecast","prompt":"I need the 3-day weather forecast for coordinates 36.7783° N, 119.4179° W — we're deciding whether to irrigate the fields this week or wait for rain."}],"resultDescription":"Current weather conditions and a 3-day forecast for the requested location, including temperature, weather state, and related meteorological data.","failureModes":["Missing both city and lat/lon parameters — returns error","Invalid or unrecognized city name — returns not found","Out-of-range or malformed lat/lon values — returns error","Payment not provided or insufficient — 402 Payment Required","Network or upstream data source unavailable — 5xx error"],"whenToPreferThis":"Use this endpoint when you need worldwide weather data (current conditions plus a short-range forecast) queryable by either a city name or geographic coordinates, especially in x402 micropayment-enabled workflows where per-call pricing is acceptable.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T14:25:22.286Z","isFirstParty":false}