N

Navi Weather · Weather

by Navi Weather

GETBase

$0.001

per call · USD Coin on Base

Real-time weather data and 3-day forecast for any location worldwide. Accepts city name or lat/lon coordinates. Returns temperature, humidity, wind, precipitation, and conditions. Powered by Open-Meteo.

Endpoint

GET https://bazaar-gateway.vercel.app/api/weather

30

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://bazaar-gateway.vercel.app/api/weather", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://bazaar-gateway.vercel.app/api/weather?lat=Latitude+%28e.g.+1.3521%29.+Use+with+lon.&location=City+or+place+name+%28e.g.+Singapore%2C+Paris%2C+New+York%29.+Alternative+to+lat%2Flon.&lon=Longitude+%28e.g.+103.8198%29.+Use+with+lat." \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "_meta": {},
  "air_quality": {},
  "current": {},
  "forecast_3_days": "...",
  "forecast_hourly_12h": "...",
  "latitude": 0,
  "location": "...",
  "longitude": 0,
  "next": {},
  "observation_time": "...",
  "ok": "...",
  "response_time_ms": 0,
  "signals": {},
  "timezone": "...",
  "units": {}
}

Payment details

Pay to0x9200c98c8188ef50302ed3b8b0ffd5d39832090c
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 Navi Weather & similar services