81trust / 100

Data Weather

by agentbit.app in Weather & location

x402 APIPassing, checked 2 h ago

Weather forecast for any coordinates worldwide: current conditions plus a condensed hourly forecast (temperature, wind, humidity, precipitation, condition codes) and a will-it-rain summary. Official MET Norway model data (the institute behind yr.no) — commercial use permitted, attribution included. $0.002 per call.

POST https://agentbit.app/v1/data/weather

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
87 ms typical, 92 ms slowest 5%
Last check
2 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://agentbit.app/v1/data/weather" \
  -H "content-type: application/json" \
  -d '{"hours":12,"lat":46.7712,"lon":23.6236}'
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%2Fagentbit.app%2Fv1%2Fdata%2Fweather
const res = await pay("https://agentbit.app/v1/data/weather", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"hours":12,"lat":46.7712,"lon":23.6236}),
});
console.log(await res.json());

Example input

{
  "hours": 12,
  "lat": 46.7712,
  "lon": 23.6236
}

Example output

{
  "attribution": "Weather data from MET Norway (api.met.no), licensed NLOD/CC BY 4.0 — attribute when republishing.",
  "current": {
    "conditions": "clearsky_day",
    "humidity_percent": 48.5,
    "precipitation_mm_next_1h": 0,
    "temperature_c": 24.1,
    "time": "2026-09-06T14:00:00Z",
    "wind_speed_ms": 3.2
  },
  "hourly": [
    {
      "conditions": "clearsky_day",
      "humidity_percent": 50.1,
      "precipitation_mm_next_1h": 0,
      "temperature_c": 23.6,
      "time": "2026-09-06T15:00:00Z",
      "wind_speed_ms": 3
    }
  ],
  "location": {
    "lat": 46.771,
    "lon": 23.624
  },
  "summary": {
    "hours": 12,
    "temp_max_c": 24.1,
    "temp_min_c": 14.8,
    "total_precipitation_mm": 0,
    "will_rain": false
  }
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
2 h agoPassed40292 ms$0.002
5 h agoPassed402164 ms$0.002
8 h agoPassed40287 ms$0.002
13 h agoPassed40284 ms$0.002