Weather Lookup
Get the current weather and a 7-day forecast for a place or coordinates, from Open-Meteo.
Pay by wallet (x402)
weather-lookup Example
Input
{
"city": "Stockholm",
"latitude": 59.3293,
"longitude": 18.0686
} Answer
{
"current": {
"condition": "Overcast",
"feels_like_c": -2.6,
"temperature_c": 0.2,
"wind_speed_kmh": 4.7,
"humidity_percent": 97,
"precipitation_mm": 0,
"wind_direction_deg": 179
},
"location": "Stockholm",
"timezone": "Europe/Stockholm",
"coordinates": {
"latitude": 59.3293,
"longitude": 18.0686
},
"forecast_7day": [
{
"date": "2026-03-08",
"low_c": 0.2,
"high_c": 8.3,
"condition": "Overcast",
"precipitation_mm": 0
},
{
"date": "2026-03-09",
"low_c": 2.5,
"high_c": 8.8,
"condition": "Overcast",
"precipitation_mm": 0
},
{
"date": "2026-03-10",
"low_c": 1.8,
"high_c": 10.3,
"condition": "Overcast",
"precipitation_mm": 0
},
{
"date": "2026-03-11",
"low_c": 2,
"high_c": 7.8,
"condition": "Overcast",
"precipitation_mm": 0
},
{
"date": "2026-03-12",
"low_c": 4.2,
"high_c": 6.8,
"condition": "Moderate drizzle",
"precipitation_mm": 2.7
},
{
"date": "2026-03-13",
"low_c": 4,
"high_c": 6.3,
"condition": "Light drizzle",
"precipitation_mm": 1.9
},
{
"date": "2026-03-14",
"low_c": 2.3,
"high_c": 8.9,
"condition": "Light drizzle",
"precipitation_mm": 0.2
}
]
} Inputs
| Field | Type | Required | What it is |
|---|---|---|---|
city | string | No | — |
latitude | number | No | — |
longitude | number | No | — |
Output fields
How reliably each field appears in a successful answer.
| Field | Type | Appears |
|---|---|---|
current | object | Always (present in every successful answer) |
location | string | Always (present in every successful answer) |
forecast_7day | array | Always (present in every successful answer) |
How to call it
The same tool through each route. MCP clients reach it through Strale’s server at https://api.strale.io/mcp; the call below is what the agent sends.
# Needs an API key. max_price_cents caps what this call may cost.
curl -X POST https://api.strale.io/v1/do \
-H "Authorization: Bearer $STRALE_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"capability_slug": "weather-lookup",
"inputs": {
"city": "Stockholm",
"latitude": 59.3293,
"longitude": 18.0686
},
"max_price_cents": 5
}' {
"tool": "strale_execute",
"arguments": {
"slug": "weather-lookup",
"inputs": {
"city": "Stockholm",
"latitude": 59.3293,
"longitude": 18.0686
},
"max_price_cents": 5
}
} import { Strale } from "straleio";
const strale = new Strale({ apiKey: process.env.STRALE_API_KEY! });
const result = await strale.do({
capability_slug: "weather-lookup",
inputs: {
"city": "Stockholm",
"latitude": 59.3293,
"longitude": 18.0686
},
max_price_cents: 5,
}); import os
from straleio import Strale, DoRequest
strale = Strale(api_key=os.environ["STRALE_API_KEY"])
result = strale.do(DoRequest(
capability_slug="weather-lookup",
inputs={
"city": "Stockholm",
"latitude": 59.3293,
"longitude": 18.0686,
},
max_price_cents=5,
)) # No account. The first request answers 402 with the price in USDC;
# an x402 client pays it from your wallet and repeats the request.
curl -i 'https://api.strale.io/x402/v2/weather-lookup?city=Stockholm&latitude=59.3293&longitude=18.0686' Limitations
Forecast accuracy decreases beyond three days
Current weather from Open-Meteo — forecast accuracy decreases beyond 3 days and varies by geographic region
What to do instead: For critical operations, cross-reference with national meteorological services for severe weather warnings
Related tools
- Address Geocoding €0.02
- Barcode Lookup €0.05
- Container Tracking €0.05
- Country Lookup €0.02
- Country Tax Rates €0.02
- Country Trade Data €0.20