{"uid":"cap_3CDdko0A8lr2PPBmu8Jcq","slug":"compacthost-weather-api-de63e0e4","name":"Compacthost Weather API","description":"Pay-per-call generative AI tools for autonomous agents, settled in USDC on Base via x402.","url":"https://x402.compacthost.com/weather","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"location":{"type":"string","description":"Place name, e.g. 'Denver, CO'"}}},"responseSchema":{"type":"json","example":{"lat":39.7392,"lon":-104.9849,"daily":{},"current":{"temperature_2m":75.2},"location":"Denver, Colorado"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Ck3312z-MZtI9FW421wMm","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns current temperature and daily weather data for a given location, paid per-call in USDC via x402","exampleAgentPrompt":"What's the current temperature and today's weather in Denver, CO?","exampleUseCases":[{"title":"Real-time weather check for travel planning","prompt":"What's the current temperature and weather conditions in Tokyo right now?"},{"title":"Smart home automation weather trigger","prompt":"What's the current temperature in Austin, TX so I can decide whether to turn on the AC?"},{"title":"Outdoor event weather advisory","prompt":"Get me today's weather conditions for Chicago, IL so I can decide if our outdoor event should go ahead."}],"resultDescription":"Returns a JSON object containing the latitude and longitude of the resolved location, the current temperature in degrees (temperature_2m field), the human-readable location string, and a daily weather object with forecast data.","failureModes":["Unrecognized or misspelled location name returns an error or empty result","Network timeout if the upstream weather provider is unavailable","Invalid input schema (non-string location) returns a 400-level error","Payment failure via x402 (insufficient USDC balance) blocks the call before it reaches the weather logic"],"whenToPreferThis":"Choose this endpoint when you need a simple, pay-per-call weather lookup with no subscription overhead, especially in autonomous agent workflows that settle payments in USDC on Base. It is ideal for low-frequency queries where a subscription-based weather API would be overkill.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-16T00:35:59.637Z","isFirstParty":false}