{"uid":"cap_x8e9UMtS76WHml3lGYCC3","slug":"x402-onchainexpat-com-b92fb00f","name":"x402.onchainexpat.com Current Weather","description":"Pay-per-request AI, crypto, proxy, and utility APIs using x402 protocol","url":"https://x402.onchainexpat.com/api/x402-tools/weather/current","method":"POST","headers":{},"bodySchema":{"type":"object","required":["location"],"properties":{"units":{"type":"string","description":"metric (default), imperial, or kelvin"},"country":{"type":"string","description":"ISO country code to disambiguate (e.g. 'MX', 'ES', 'US')"},"location":{"type":"string","description":"City name. Aliases: 'city'. E.g. 'London', 'Tokyo'"}}},"responseSchema":{"type":"object","properties":{"cached":{"type":"boolean"},"humidity":{"type":"number"},"location":{"type":"string"},"feels_like":{"type":"number"},"wind_speed":{"type":"number"},"description":{"type":"string"},"temperature":{"type":"number"}}},"example":{"request":{"location":"London"},"response":{"icon":"04n","cached":false,"clouds":72,"sunset":1780085054,"country":"GB","sunrise":1780026714,"humidity":46,"location":"London","pressure":1023,"temp_max":22.98,"temp_min":20.51,"timezone":3600,"temp_unit":"°C","conditions":"Clouds","feels_like":21.06,"speed_unit":"m/s","visibility":10000,"wind_speed":0.89,"coordinates":{"lat":51.5085,"lon":-0.1257},"description":"broken clouds","temperature":21.64,"wind_direction":324}},"exampleRequest":{"location":"London"},"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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_0M5zmh3G_zPUqAJ_UQqLR","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 for a specified location via a paid x402 micropayment API","exampleAgentPrompt":"What's the current weather in Tokyo right now — temperature, conditions, and wind?","exampleUseCases":[{"title":"Travel planning weather check","prompt":"Before I book my flight to Barcelona, can you check what the weather is actually like there right now? I need to know the temperature and humidity so I can pack appropriately."},{"title":"Real-time conditions for outdoor events","prompt":"We're deciding between three cities for our company picnic next week — can you pull the current weather conditions for Denver, Austin, and Portland so we can pick the best spot?"},{"title":"Emergency response situation briefing","prompt":"I need to know the current temperature, wind speed, and weather conditions in the coastal area right now to help coordinate our disaster response team deployment."}],"resultDescription":"Returns current weather data for the specified location, including temperature, weather conditions, humidity, wind speed, and related meteorological metrics.","failureModes":["Invalid or unrecognized location name returns an error","Payment of $0.01 USDC not provided or insufficient — request rejected","Network timeout if weather data provider is unavailable","Ambiguous location (e.g. 'Springfield') may return wrong city"],"whenToPreferThis":"Use this endpoint when you need real-time current weather conditions for a location and are operating in an x402 micropayment-enabled agent environment. Prefer this over forecast endpoints when only present conditions are needed.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:45:16.224Z","isFirstParty":false}