A

Agentbit · Data Weather

by Agentbit

POSTBase

$0.002

per call · USD Coin on Base

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.

Endpoint

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

1

Calls / 30d

1

Unique payers / 30d

Sep 6

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://agentbit.app/v1/data/weather", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "hours": 12,
    "lat": 46.7712,
    "lon": 23.6236
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://agentbit.app/v1/data/weather" \
  -H "Content-Type: application/json" \
  -d '{"hours":12,"lat":46.7712,"lon":23.6236}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "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
  }
}

Payment details

Pay to0x4395c7e383b7e05665aad7f36ed77c01923dd965
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Data & Enrichment and the homepage with a featured placement.

Get featured →

More from Agentbit & similar services