{"uid":"cap_sRblADlzHyYeSyvhY1Ow3","slug":"x402-weather-api-hub-dynamic-path-weather-endpoint-c3e6ab2d","name":"x402 Weather API Hub – Dynamic Path Weather Endpoint","description":"21 paid weather API endpoints powered by x402 micropayments","url":"https://x402-weather.vercel.app/api/weather338/%7Bpath%7D?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["query"],"properties":{"query":{"type":"string","description":"Location query string"},"location":{"type":"string","description":"City name or coordinates"}}},"responseSchema":{"type":"object","properties":{"data":{"type":"object","description":"Response data from the underlying RapidAPI provider"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.075","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.075/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.075","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.075","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_0SftjJb39F0-k1f1fAa5p","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.075","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Retrieves weather data for a specified location via a dynamic path on the x402 micropayment-gated weather API hub","exampleAgentPrompt":"What's the current weather in Tokyo? Use the x402 Weather API Hub to look it up — query location 'Tokyo, Japan'.","exampleUseCases":[{"title":"Real-time city weather lookup","prompt":"Can you get me the current weather conditions for London, UK right now? I need temperature and general conditions."},{"title":"Coordinates-based weather fetch","prompt":"Fetch the weather data for coordinates 37.7749,-122.4194 — that's San Francisco — and tell me what conditions are like there."},{"title":"Travel planning weather check","prompt":"I'm planning a trip and need to know what the weather is like in Reykjavik, Iceland today. Can you pull that from the weather API?"}],"resultDescription":"Returns a JSON object containing a `data` field with the weather response payload from the underlying RapidAPI weather provider, including current conditions and related meteorological data for the queried location.","failureModes":["Invalid or unrecognized location query returns empty or error data","Payment failure if x402 USDC balance is insufficient, blocking the request","Unknown or invalid path parameter results in 404 or unrouted request","RapidAPI upstream provider downtime causes failed or delayed responses","Malformed input (missing required `query` field) results in a validation error"],"whenToPreferThis":"Choose this endpoint when you need weather data and are operating in an x402 micropayment-enabled environment, particularly when building autonomous AI agents that can pay per call in USDC without requiring API key management. Prefer this over traditional weather APIs when you want per-call billing with no subscription overhead and are already integrated with the x402 payment protocol.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T12:42:46.757Z","isFirstParty":false,"canonicalSlug":"x402-weather-api-hub-dynamic-path-weather-endpoint-a0347e06"}