{"uid":"cap_qZ-DfmrGnWCR6XzIAbDbo","slug":"x402-demo-api-weather-endpoint-2d00c012","name":"x402 Demo API – Weather Endpoint","description":"Paid API with real data: AI/LLM, crypto prices, web search, translation, trending topics, sentiment analysis, aggregator, and more. All endpoints use x402 protocol on Base mainnet.","url":"https://x402-demo-api-theta.vercel.app/api/weather","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"properties":{}},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"unknown","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_MwYRqVDe2YAmuzMO3h3lJ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns real weather data for a given location, paid per-call via x402 protocol on Base mainnet at $0.02 USDC.","exampleAgentPrompt":"What's the current weather in San Francisco — temperature, conditions, and anything else available?","exampleUseCases":null,"resultDescription":"Returns real weather data for the queried location, including current temperature, weather conditions, and potentially humidity or forecast details. Each successful call charges $0.02 USDC via x402 on Base mainnet.","failureModes":["Payment not received or insufficient USDC balance — 402 Payment Required response","Invalid or unrecognized location input — 400 Bad Request or empty/error data","Network or Vercel deployment downtime — 503 Service Unavailable","Rate limiting or quota exceeded — 429 Too Many Requests","Malformed request body — 422 Unprocessable Entity"],"whenToPreferThis":"Use this endpoint when you need real weather data and are operating in a crypto-native or x402-enabled agent environment willing to pay $0.02 USDC per call on Base mainnet. Prefer this over free weather APIs when demonstrating x402 micropayment flows or when integrated into a Base/USDC payment pipeline.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:43:42.977Z","isFirstParty":false}