W

Wallets Demo Weather · Weather

by Wallets Demo Weather

GETBase Sepolia

$0.001

per call · USDC on Base Sepolia

Real-time current weather conditions for a city or location, including temperature, humidity, precipitation, wind, and a human-readable condition.

Endpoint

GET https://wallets-demo-seller-server.calebgcarithers.workers.dev/weather

23

Calls / 30d

6

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://wallets-demo-seller-server.calebgcarithers.workers.dev/weather", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://wallets-demo-seller-server.calebgcarithers.workers.dev/weather?location=San+Francisco" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "current": {
    "apparentTemperatureC": 17.4,
    "condition": "partly cloudy",
    "precipitationMm": 0,
    "relativeHumidity": 72,
    "temperatureC": 18.2,
    "time": "2026-06-29T10:45",
    "weatherCode": 2,
    "windDirectionDegrees": 260,
    "windSpeedKmh": 13.1
  },
  "fetchedAt": "2026-06-29T18:02:00.000Z",
  "location": {
    "admin1": "California",
    "country": "United States",
    "countryCode": "US",
    "latitude": 37.77493,
    "longitude": -122.41942,
    "name": "San Francisco",
    "timezone": "America/Los_Angeles"
  },
  "source": "open-meteo"
}

Payment details

Pay to0xcbd4e4218b2cd8300f1bd07b9b4b720fab6b51b3
AssetUSDC · 0x036cbd53842c5426634e7929541ec2318f3dcf7e
NetworksBase Sepolia
Schemesexact

Is this your API?

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

Get featured →

More from Wallets Demo Weather & similar services