Returns current weather for any city or place name, no coordinates needed
Returns current weather for any city or place name, no coordinates needed. Geocodes the name with Open-Meteo, chooses the best match with optional country_code, then returns current temperature, feels-like, humidity, wind, precipitation, WMO weather code, timezone, and optional daily/hourly forecast from Open-Meteo. Use it as a city weather API or instant weather lookup by place name.
10000 (raw units)
price
1
calls / 30d
1
unique payers
2026-08-20
updated
Provider
x402.agentutility.ai · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x6c0752c09e7F6fA6526fCDf40e456a159ebB5621",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "10000",
"maxTimeoutSeconds": 300
},
{
"scheme": "exact",
"network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
"payTo": "FJqAJ4dXkFbrp3EEo8E9x98iaBGUQwaU8Srz5ePfUXLH",
"asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"amount": "10000",
"maxTimeoutSeconds": 300
}
]Output schema
{
"bazaar": {
"discoverable": true,
"info": {
"input": {
"body": {
"city": "San Francisco",
"country_code": "US",
"forecast_days": 3,
"units": "imperial"
},
"bodyType": "json",
"method": "POST",
"type": "http"
},
"output": {
"example": {
"current": {
"apparent_temperature": 60,
"humidity_pct": 78,
"temperature": 62,
"weather_code": 3,
"wind_speed": 9
},
"query": "San Francisco",
"resolved_location": {
"admin1": "California",
"country_code": "US",
"latitude": 37.7749,
"longitude": -122.4194,
"name": "San Francisco"
},
"source": {
"forecast": "https://open-meteo.com",
"geocoding": "https://open-meteo.com/en/docs/geocoding-api"
}
},
"type": "json"
}
},
"related": [
"/destination-arrival-pack",
"/travel-brief",
"/trip-readiness-brief",
"/weather-localize-pack"
],
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"properties": {
"city": {
"description": "City or place name, e.g. 'Paris', 'San Francisco', or 'Springfield'.",
"type": "string"
},
"country_code": {
"description": "Optional two-letter ISO country code to disambiguate, e.g. 'US', 'FR', 'JP'.",
"type": "string"
},
"forecast_days": {
"description": "Daily forecast days to include, 1-7. Default 1.",
"type": "number"
},
"hourly": {
"description": "If true, include hourly temperature, precipitation, and weather code arrays.",
"type": "boolean"
},
"query": {
"description": "Alias for city.",
"type": "string"
},
"units": {
"description": "Metric or imperial output units. Default metric.",
"enum": [
"metric",
"imperial"
],
"type": "string"
}
},
"required": [
"city"
]
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
},
"method": {
"enum": [
"POST"
],
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method",
"bodyType",
"body"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"properties": {
"current": {
"properties": {
"apparent_temperature": {
"type": "integer"
},
"humidity_pct": {
"type": "integer"
},
"temperature": {
"type": "integer"
},
"weather_code": {
"type": "integer"
},
"wind_speed": {
"type": "integer"
}
},
"type": "object"
},
"query": {
"type": "string"
},
"resolved_location": {
"properties": {
"admin1": {
"type": "string"
},
"country_code": {
"type": "string"
},
"latitude": {
"type": "number"
},
"longitude": {
"type": "number"
},
"name": {
"type": "string"
}
},
"type": "object"
},
"source": {
"properties": {
"forecast": {
"type": "string"
},
"geocoding": {
"type": "string"
}
},
"type": "object"
}
},
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}
},
"builder-code": {
"info": {
"a": "bc_awpbwsy3"
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"a": {
"description": "App builder code",
"pattern": "^[a-z0-9_]{1,32}$",
"type": "string"
},
"s": {
"description": "Service builder codes",
"items": {
"pattern": "^[a-z0-9_]{1,32}$",
"type": "string"
},
"type": "array"
},
"w": {
"description": "Wallet builder code",
"pattern": "^[a-z0-9_]{1,32}$",
"type": "string"
}
},
"type": "object"
}
}
}Use it
curl
curl "https://x402.agentutility.ai/weather-current-city" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://x402.agentutility.ai/weather-current-city");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://x402.agentutility.ai/weather-current-city")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/5232.json, and this resource appears in /discovery/resources and /discovery/search.