{"uid":"cap_mVEPA3SxRFdSPJiUzsTIY","slug":"code402-weather-api-x402-ee3793cf","name":"code402 Weather API (x402)","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/weather","method":"GET","headers":{},"bodySchema":null,"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_oISrKaFq5JK7Lc0MjsE-5","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 data for a location, paid per-call with USDC via the x402 HTTP 402 micropayment protocol.","exampleAgentPrompt":"What's the current weather in San Francisco — temperature, conditions, and wind speed?","exampleUseCases":[{"title":"Live weather for travel planning","prompt":"Can you pull the current weather conditions in Tokyo right now — I need temperature, humidity, and sky conditions?"},{"title":"Automated smart home trigger","prompt":"Check the current weather for Chicago and let me know if it's raining or below 40°F so I can decide whether to close the windows."},{"title":"Developer app weather integration","prompt":"Fetch me today's weather for London — temperature in Celsius and wind speed — so I can display it in my dashboard."}],"resultDescription":"Returns current weather data for the queried location, typically including temperature, weather conditions (e.g. sunny, cloudy, rainy), humidity, wind speed and direction, and possibly a short forecast. The response is delivered as structured data (likely JSON) after a successful USDC micropayment of $0.001 via the x402 protocol.","failureModes":["Missing or invalid location parameter returns an error","Insufficient USDC balance or failed x402 payment results in HTTP 402 with payment instructions","Invalid wallet or payment configuration causes payment rejection","Network timeout from upstream weather data provider","Unsupported location or region returns empty or error response"],"whenToPreferThis":"Choose this endpoint when you need pay-per-use weather data with no subscription, no API key registration, and direct non-custodial USDC micropayments settling to the seller wallet. Ideal for AI agents operating autonomously with on-chain payment capability via the x402 protocol, or developers who want usage-based billing without monthly commitments.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:31:20.571Z","isFirstParty":false}