{"uid":"cap_uLELvKNrqWvDjT--Db0yb","slug":"code402-gateway-weather-forecast-d024dbf5","name":"code402 Gateway Weather Forecast","description":"Machine-payable APIs over x402 (HTTP 402 + USDC) on the open M2M/1 protocol. Non-custodial: payments settle direct to seller wallets.","url":"https://gateway.code402.dev/api/forecast","method":"GET","headers":{},"bodySchema":null,"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_DiDGFK3R37nFyy9hPDZdP","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns weather forecast data for a given location via a machine-payable x402 micropayment API costing $0.005 USDC per call","exampleAgentPrompt":"Can you pull up the weather forecast for San Francisco for the next 5 days so I know what conditions to expect?","exampleUseCases":[{"title":"Travel weather check before trip","prompt":"What's the weather going to be like in Miami over the next 5 days? I'm planning a trip and want to know if I should expect rain."},{"title":"Outdoor event planning forecast","prompt":"Can you get me the weather forecast for Chicago this coming Saturday and Sunday? I'm organizing an outdoor event and need to know about temperature and any chance of rain."},{"title":"Automated agent weather data fetch","prompt":"Fetch today's weather forecast for New York City — I need current conditions and the next 3-day outlook for my daily briefing."}],"resultDescription":"A structured weather forecast response including temperature, precipitation probability, and general weather conditions for the requested location and time period, delivered after a $0.005 USDC micropayment settles on-chain via the x402 protocol.","failureModes":["Insufficient USDC balance or failed payment — endpoint returns HTTP 402 with payment details","Invalid or unrecognized location parameter — may return an error or empty result","Network timeout or gateway unavailability — standard HTTP 5xx error","Malformed query parameters — HTTP 400 bad request","Payment confirmation delay on-chain — request may not proceed until payment is confirmed"],"whenToPreferThis":"Choose this endpoint when you need weather forecast data on a true pay-per-use basis with no subscription required, especially in agent or M2M (machine-to-machine) workflows that support the x402 payment protocol with USDC. Ideal for low-volume or sporadic forecast lookups where a recurring API subscription would be wasteful, or when building autonomous agents that need to self-fund API calls non-custodially.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T04:07:09.575Z","isFirstParty":false}