W

Workers · Weather

by Workers

GETBase

$0.005

per call · USD Coin on Base

Weather forecast — Current conditions, the next 12 hours with rain probability, a multi-day forecast, and a plain answer to "will it rain".

Endpoint

GET https://mcpfax-utility.bowling-anthony.workers.dev/v1/weather

21

Calls / 30d

5

Unique payers / 30d

Sep 9

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://mcpfax-utility.bowling-anthony.workers.dev/v1/weather", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://mcpfax-utility.bowling-anthony.workers.dev/v1/weather?days=Forecast+days+1-16+%28default+3%29+%E2%80%94+e.g.+3&lat=Latitude%2C+if+you+already+have+coordinates+%E2%80%94+e.g.+51.5&lon=Longitude%2C+if+you+already+have+coordinates+%E2%80%94+e.g.+-0.13&q=Place+name%2C+resolved+and+echoed+back%3A+%27London%27+returns+location+%27London%2C+United+Kingdom%27.+Use+this+OR+lat%2Flon.+%E2%80%94+e.g.+London" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "current": {
    "apparentC": 19.9,
    "humidityPct": 64,
    "isDaylight": false,
    "temperatureC": 20.6,
    "weather": "Partly cloudy",
    "windGustKmh": 28.1,
    "windSpeedKmh": 12.6
  },
  "daily": [
    {
      "date": "2026-08-25",
      "precipitationChancePct": 24,
      "tempMaxC": 25,
      "tempMinC": 15.9,
      "uvIndexMax": 4.9,
      "weather": "Overcast",
      "windGustMaxKmh": 39.2
    }
  ],
  "hourly": [
    {
      "precipitationChancePct": 3,
      "temperatureC": 20.5,
      "time": "2026-08-25T23:00",
      "weather": "Overcast"
    }
  ],
  "location": "London, United Kingdom",
  "outlook": {
    "nextLikelyRainAt": "2026-08-26T06:00",
    "peakRainChanceNext12hPct": 64,
    "rainLikelyNext12h": true,
    "rainLikelyThresholdPct": 50,
    "summary": "Rain likely from 2026-08-26T06:00 (52% chance)."
  },
  "timezone": "Europe/London"
}

Payment details

Pay to0x1831f336585a6c67b6a954d28f3e07f44c4eebbd
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 Workers & similar services