Weather forecast API — current conditions plus hourly and 3-day weather forecast with temp
Weather forecast API — current conditions plus hourly and 3-day weather forecast with temperature, wind and humidity for any city worldwide; live weather data for agents. Deterministic on-chain execution by the AmanChain node — live consensus state, real blocks, pools and balances. Pay per call via x402 (USDC on Base), no account, no API key. POST JSON {"serviceId":"aman-weather","request":"<input>"}.
1866 (raw units)
price
12
calls / 30d
2
unique payers
2026-09-10
updated
Provider
amanchain-relay.gitajhd.workers.dev · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0xfB5625d44be488414606773244F0De35410b2f39",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "1866",
"maxTimeoutSeconds": 120
}
]Output schema
{
"bazaar": {
"info": {
"input": {
"body": {
"request": "Riyadh",
"serviceId": "aman-weather"
},
"bodyType": "json",
"method": "POST",
"type": "http"
},
"output": {
"example": {
"current": {
"conditions": "Clear",
"humidityPct": 18,
"temperatureC": 33,
"windKph": 14
},
"forecast": [
{
"date": "2026-09-10",
"maxC": 35,
"minC": 24
}
],
"ok": true,
"place": "Riyadh"
},
"type": "json"
}
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"properties": {
"request": {
"description": "service input (see body example)",
"type": "string"
},
"serviceId": {
"description": "the service id, \"aman-weather\"",
"type": "string"
}
},
"type": "object"
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
},
"method": {
"enum": [
"POST",
"PUT",
"PATCH"
],
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method",
"bodyType",
"body"
],
"type": "object"
},
"output": {
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}
}
}Use it
curl
curl "https://amanchain-relay.gitajhd.workers.dev/api/x402/aman-weather" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://amanchain-relay.gitajhd.workers.dev/api/x402/aman-weather");
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://amanchain-relay.gitajhd.workers.dev/api/x402/aman-weather")
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/8800.json, and this resource appears in /discovery/resources and /discovery/search.