82trust / 100

Weather

by weather-forecast in Weather & location

x402 APIPassing, checked 59 min ago

Current weather and a 3-day forecast for any city or lat/lon - temperature, humidity, wind, conditions. No account, no API key. Try GET /weather/sample.

GET https://x402.agentindex.world/weather

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
216 ms typical, 248 ms slowest 5%
Last check
59 min ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://x402.agentindex.world/weather?city=Paris"
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fx402.agentindex.world%2Fweather
const res = await pay("https://x402.agentindex.world/weather?city=Paris");
console.log(await res.json());

Example input

{
  "city": "Paris"
}

Example output

{
  "current": {
    "conditions": "slight_rain",
    "humidity_pct": 78,
    "temperature_c": 21.1,
    "time": "2026-09-30T12:30",
    "weather_code": 61,
    "wind_speed_kmh": 8.9
  },
  "daily": [
    {
      "conditions": "rain",
      "date": "2026-09-30",
      "precipitation_sum_mm": 13.2,
      "temperature_max_c": 22.8,
      "temperature_min_c": 20.5,
      "weather_code": 63
    },
    {
      "conditions": "rain_showers",
      "date": "2026-10-01",
      "precipitation_sum_mm": 1.9,
      "temperature_max_c": 21,
      "temperature_min_c": 16,
      "weather_code": 80
    },
    {
      "conditions": "overcast",
      "date": "2026-10-02",
      "precipitation_sum_mm": 0,
      "temperature_max_c": 20.6,
      "temperature_min_c": 12.5,
      "weather_code": 3
    }
  ],
  "location": {
    "country": "France",
    "country_code": "FR",
    "latitude": 48.85341,
    "longitude": 2.3488,
    "name": "Paris",
    "timezone": "Europe/Paris"
  },
  "query": "Paris"
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
59 min agoPassed402127 ms$0.001
4 h agoPassed402248 ms$0.001
7 h agoPassed402335 ms$0.001
12 h agoPassed402216 ms$0.001