Current weather (global)

$0.002 per call · USDC via x402 · GET /api/weather-current

Current weather conditions for any location on Earth: temperature, feels-like, humidity, wind speed/direction/gusts, precipitation, cloud cover, pressure, and human-readable condition. Send GET /api/weather-current with the required fields lat and lon and pay $0.002 per call over x402 or MPP (there is no free tier). It returns a JSON object with lat, lon, current and source.

Open-Meteo, no key, global. ?lat=48.86&lon=2.35.

Category: Live public data · Tags: weather current temperature wind global open-meteo

TRY IN PLAYGROUND →

Parameters

NameTypeRequiredDescription
latnumberyesLatitude, -90 to 90 Also accepted as latitude.
lonnumberyesLongitude, -180 to 180 Also accepted as lng, long, longitude.
unitsstringnoTemperature unit: celsius (default) or fahrenheit

Example request

curl -i "https://agent402.tools/api/weather-current?lat=48.8566&lon=2.3522"

Without payment this returns HTTP 402 Payment Required with the exact price for weather-current; any x402 v2 or MPP client pays it and retries.

Example response

{
  "lat": 48.8566,
  "lon": 2.3522,
  "current": {
    "time": "2026-06-23T14:00",
    "temperature": 22.4,
    "feelsLike": 21.8,
    "unit": "°C",
    "humidity": 55,
    "precipitation": 0,
    "condition": "Partly cloudy",
    "weatherCode": 2,
    "cloudCover": 40,
    "windSpeed": 12.5,
    "windDirection": 220,
    "windGusts": 18.3,
    "windUnit": "km/h",
    "pressure": 1015.2,
    "isDay": true
  },
  "source": "api.open-meteo.com (CC BY 4.0)"
}
FieldTypeAlways presentIn the example
latnumberyes48.8566
lonnumberyes2.3522
currentobjectyes15 fields: time, temperature, feelsLike, unit, humidity, precipitation
sourcestringyesapi.open-meteo.com (CC BY 4.0)

From an MCP client

catalog.call {
  "slug": "weather-current",
  "params": {
    "lat": 48.8566,
    "lon": 2.3522
  }
}

The hosted connector at https://agent402.tools/mcp needs a payment for weather-current; the stdio package pays it from a wallet or from AGENT402_CREDITS_KEY. Local install: npx -y agent402-mcp.

Errors and behavior

Paid call (JavaScript agent)

import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client();
client.setSpendControls?.(false); // keep your own spending ceiling in code
registerExactEvmScheme(client, { signer: privateKeyToAccount(KEY) });
const payFetch = wrapFetchWithPayment(fetch, client);

const res = await payFetch("https://agent402.tools/api/weather-current?lat=48.8566&lon=2.3522");

Part of these workflows

Current weather (global) is one step in this skill pack, each sold as a single call:

Related tools

Air quality (global)

$0.002 · GET /api/weather-air-quality

Current air quality index and pollutant concentrations for any location: US AQI, PM2.5, PM10, ozone, NO2, SO2, CO. Open-…

Daily forecast (global)

$0.002 · GET /api/weather-daily

7-day daily weather forecast for any location: high/low temp, precipitation sum and probability, max wind, UV index, sun…

Historical weather (global)

$0.002 · GET /api/weather-history

Historical daily weather for any location and date range (up to 1 year): high/low temp, precipitation, wind, conditions.…

Hourly forecast (global)

$0.002 · GET /api/weather-hourly

48-hour hourly weather forecast for any location: temperature, precipitation probability and amount, wind, cloud cover, …

Crypto global market

$0.008 · GET /api/crypto-global

Global crypto market snapshot: total market cap, total 24h volume, BTC dominance, ETH dominance, active coin count, acti…

US weather alerts

$0.002 · GET /api/weather-alerts

Active National Weather Service alerts for a US state as clean JSON: event, severity, headline, affected areas, onset/ex…