80trust / 100

Weather Forecast

by 1gateway in Weather & location

x402 APIPassing, checked 5 h ago

Use when you need the official weather forecast for a point in South Korea for the next ~3-5 days. Data: KMA (Korea Meteorological Administration) village forecast on a 5 km grid, issued 8 times a day. Input: lat, lon (WGS84 decimal; Korea only). Output: JSON hourly then 3-hourly temperature C, sky, precipitation type and probability %, rain and snow amounts, humidity %, wind; plus daily min/max. Example: ?lat=37.5665&lon=126.978

GET https://1gateway.dev/v1/weather/forecast

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
50 ms typical, 50 ms slowest 5%
Last check
5 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://1gateway.dev/v1/weather/forecast?lat=37.5665&lon=126.978"
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2F1gateway.dev%2Fv1%2Fweather%2Fforecast
const res = await pay("https://1gateway.dev/v1/weather/forecast?lat=37.5665&lon=126.978");
console.log(await res.json());

Example input

{
  "lat": 37.5665,
  "lon": 126.978
}

Example output

{
  "attribution": "Source: Korea Meteorological Administration (기상청) Short-term Forecast via data.go.kr (dataset 15084084, KOGL Type 1 — attribution required). Normalized/transla…",
  "cache": "miss",
  "daily": [
    {
      "date": "2026-10-09",
      "maxPopPct": 20,
      "maxTempC": null,
      "minTempC": null
    }
  ],
  "hourly": [
    {
      "humidityPct": 35,
      "precipitation1h": {
        "category": "none",
        "mm": 0,
        "raw": "강수없음"
      },
      "precipitationProbabilityPct": 20,
      "precipitationType": "none",
      "resolution": "1h",
      "sky": "mostly_cloudy",
      "snowfall1h": {
        "category": "none",
        "cm": 0,
        "raw": "적설없음"
      },
      "temperatureC": 25,
      "time": "2026-10-09T15:00:00+09:00",
      "waveHeightM": 0,
      "windCategory": null,
      "windDirectionDeg": 297,
      "windEastwardMs": 0.3,
      "windNorthwardMs": -0.1,
      "windSpeedMs": 0.4
    }
  ],
  "issuedAt": "2026-10-09T14:00:00+09:00",
  "location": {
    "gridNx": 60,
    "gridNy": 127,
    "gridResolutionKm": 5,
    "lat": 37.5665,
    "lon": 126.978
  },
  "timezone": "Asia/Seoul"
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
5 h agoPassed40250 ms$0.0045