{"uid":"cap_0OXZxCHnUgvma-ykOwf60","slug":"x402-weather-api-hub-dynamic-path-weather-endpoint-a0347e06","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/weather138/%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_zJv0RyK1bx3C_EXD9ezPf","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":"Fetches weather data for a specified location via a dynamic path-based RapidAPI-powered endpoint, paid per-call using x402 USDC micropayments","exampleAgentPrompt":"What's the current weather in London right now? Use the x402 weather hub and query for 'London, UK'.","exampleUseCases":[{"title":"Real-time city weather lookup","prompt":"Can you get me the current weather conditions in Tokyo? Just query 'Tokyo, Japan' and tell me what it returns."},{"title":"Coordinate-based weather retrieval","prompt":"Fetch the weather data for coordinates 40.7128, -74.0060 — that's New York City — and give me what comes back."},{"title":"Travel preparation weather check","prompt":"I'm heading to Paris tomorrow — can you pull the current weather data for 'Paris, France' from the x402 weather hub?"}],"resultDescription":"Returns a JSON object with a 'data' property containing weather information sourced from the underlying RapidAPI weather provider — typically including current conditions, temperature, and location details for the queried city or coordinates.","failureModes":["Invalid or unrecognized location query returns empty or error data object","Missing required 'query' field results in a 400-level validation error","Insufficient USDC balance or failed x402 micropayment causes a 402 Payment Required response","Invalid path segment in the URL results in routing errors or 404","RapidAPI upstream provider outage causes degraded or null data responses"],"whenToPreferThis":"Choose this endpoint when you need pay-as-you-go weather data without a subscription, especially in agent workflows that require on-demand per-call billing in USDC via x402 micropayments. Prefer it over subscription-based weather APIs when cost predictability per query is important and you want to avoid monthly commitments.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T00:30:03.689Z","isFirstParty":false,"canonicalSlug":"x402-weather-api-hub-dynamic-path-weather-endpoint-a0347e06"}