{"uid":"cap_cIokEJxnbl3K3IbcGsOG5","slug":"x402-demo-api-weather-endpoint-cb46d26c","name":"x402 Demo API – Weather Endpoint","description":"Paid API demo using x402 protocol on Base mainnet.","url":"https://x402-demo-api-kaya.vercel.app/api/weather","method":"POST","headers":{},"bodySchema":{"type":"object","required":["city"],"properties":{"city":{"type":"string","description":"City name (e.g. jakarta, tokyo, london)"}}},"responseSchema":{"type":"object","required":["city","weather","temperature","unit","timestamp"],"properties":{"city":{"type":"string","description":"City name"},"unit":{"type":"string","description":"Temperature unit"},"weather":{"type":"string","description":"Weather condition"},"timestamp":{"type":"string","format":"date-time","description":"ISO timestamp"},"temperature":{"type":"number","description":"Temperature in fahrenheit"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_X3luTcqxHPKurYpe8AR64","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","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 temperature for a given city, charged at $0.01 USDC per call via the x402 protocol on Base mainnet.","exampleAgentPrompt":"What's the current weather and temperature in Tokyo right now?","exampleUseCases":null,"resultDescription":"A JSON object containing the city name, a weather condition string (e.g. 'Sunny', 'Cloudy'), the current temperature in Fahrenheit, the temperature unit, and an ISO 8601 timestamp of when the data was recorded.","failureModes":["Missing required 'city' field returns a validation error","Unknown or misspelled city name may return an error or empty result","Insufficient USDC balance or payment failure via x402 protocol results in a 402 Payment Required response","Network issues with Base mainnet may delay or block payment processing","Rate limiting or server errors on the Vercel deployment may cause 500 responses"],"whenToPreferThis":"Use this endpoint when you need quick, per-call weather lookups for individual cities and are operating in an x402-compatible micropayment environment on Base mainnet. Ideal for agents that need lightweight weather data without a subscription, paying only $0.01 USDC per query.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:42:22.947Z","isFirstParty":false}