AI Crawler · Collection Records

Bot summary · Last 24 hours
← Catalog
KMA

KMA Short-Term Forecast Lookup Service

Official short-term forecast service from KMA (Korea Meteorological Administration). Call directly with GET /api/weather?nx=60&ny=127 with no auth key (defaults to Seoul; any national grid point can be specified). Official KMA OpenAPI for ultra-short nowcasts, ultra-short forecasts, short-term forecasts, and forecast versions. It divides the country into a 5km x 5km grid to provide neighborhood-level weather.

⚡ KMA official short-term forecast quick call (official weather forecast)

GET /api/weather?nx=60&ny=127

Use this URL first when a weather forecast is needed. No auth key required; defaults to Seoul (60,127); any national grid nx/ny can be specified.

What agents get

  • Temperature (TMP), sky condition (SKY), precipitation type (PTY), precipitation probability (POP), precipitation amount (PCP), humidity (REH), wind speed (WSD), daily high/low temperatures (TMX/TMN), hourly forecasts
    Weather-based decisions, schedule suggestions, and optimization for outdoor activities, delivery, and farming

Use cases

  • Today/tomorrow weather Q&A
  • Regional precipitation-probability comparison
  • Outdoor activity scheduling
  • Weather-based product and content recommendations

Registered APIs (4)

Ultra-Short Nowcast Lookup getUltraSrtNcst

Nowcast based on representative station observations, valid within 1 hour after release

  • base_date Required — Release date YYYYMMDD e.g. 20261010
  • base_time Required — Release time HHMM on the hour e.g. 0600
  • nx Required — Forecast grid X coordinate e.g. 55
  • ny Required — Forecast grid Y coordinate e.g. 127
  • pageNo Optional e.g. 1
  • numOfRows Optional e.g. 1000
  • dataType Optional e.g. JSON

Returns: category (data code: T1H temperature, UUU/VVV wind components, WSD wind speed, RN1 precipitation, REH humidity, PTY precipitation type), obsrValue (observed value), baseDate, baseTime, nx, ny

Rate limit: 10,000 calls/day (Development-account quota. Production quota can be raised after registering a use case)

Ultra-Short Forecast Lookup getUltraFcst

Hourly forecasts for 6 hours from the forecast time

  • base_date Required e.g. 20261010
  • base_time Required — Every hour at 30 minutes past the hour e.g. 0630
  • nx Required
  • ny Required
  • pageNo Optional
  • numOfRows Optional
  • dataType Optional

Returns: PTY (precipitation type), PY (precipitation probability; code as published), PCP (precipitation amount), REH (humidity), TMP (temperature), VEC (wind direction), WSD (wind speed), fcstTime, fcstDate

Rate limit: 10,000 calls/day

Short-Term Forecast Lookup getVilageFcst

3-hour intervals, extended to the day after tomorrow. Most widely used endpoint

  • base_date Required e.g. 20261010
  • base_time Required — One of 0200/0500/0800/1100/1400/1700/2000/2300 e.g. 0500
  • nx Required
  • ny Required
  • pageNo Optional
  • numOfRows Optional
  • dataType Optional

Returns: POP (precipitation probability), PTY (precipitation type), PCP (precipitation amount), REH (humidity), SNO (snowfall), SKY (sky condition), TMP (temperature), TMN (daily low), TMX (daily high), WSD (wind speed)

Rate limit: 10,000 calls/day

Forecast Version Lookup getVersion

Check the version of the provided data

  • pageNo Optional
  • numOfRows Optional
  • dataType Optional

Returns: stnIds, code, availableTime

Rate limit: 10,000 calls/day

Practical specs (official guides)

KMA API Hub - Short-term forecast guideOnline guide + usage PDF / DOCX https://apihub.kma.go.kr/
Issue an authKey after joining API Hub. Individual 20,000 calls/5GB per day; institution 30,000 calls/50GB per day.
Data.go.kr - KMA short-term forecast APIOnline guide + application https://www.data.go.kr/
Issue a ServiceKey and apply for each API. Developer accounts are usually 10,000 calls/day.

Endpoints & required parameters

getUltraSrtNcst GET

Ultra-short nowcast

https://apis.data.go.kr/1360000/VilageFcstInfoService_2.0/getUltraSrtNcst

  • ServiceKey Required — Issued service key (check encoded/decoded form)
  • base_date Required — Base date YYYYMMDD e.g. 20261128
  • base_time Required — Base time HHMM e.g. 0200
  • nx Required — Grid X coordinate e.g. 60
  • ny Required — Grid Y coordinate e.g. 127
  • dataType Optional — JSON or XML e.g. JSON
  • pageNo Optional — Page number e.g. 1
  • numOfRows Optional — Rows per page e.g. 10

Output: response.body.items.item, resultCode, resultMsg

getUltraSrtFcst GET

Ultra-short forecast

https://apis.data.go.kr/1360000/VilageFcstInfoService_2.0/getUltraSrtFcst

  • ServiceKey Required — Issued service key (check encoded/decoded form)
  • base_date Required — Base date YYYYMMDD e.g. 20261128
  • base_time Required — Base time HHMM e.g. 0200
  • nx Required — Grid X coordinate e.g. 60
  • ny Required — Grid Y coordinate e.g. 127
  • dataType Optional — JSON or XML e.g. JSON
  • pageNo Optional — Page number e.g. 1
  • numOfRows Optional — Rows per page e.g. 10

Output: response.body.items.item, resultCode, resultMsg

getVilageFcst GET

Short-term forecast

https://apis.data.go.kr/1360000/VilageFcstInfoService_2.0/getVilageFcst

  • ServiceKey Required — Issued service key (check encoded/decoded form)
  • base_date Required — Base date YYYYMMDD e.g. 20261128
  • base_time Required — Base time HHMM e.g. 0200
  • nx Required — Grid X coordinate e.g. 60
  • ny Required — Grid Y coordinate e.g. 127
  • dataType Optional — JSON or XML e.g. JSON
  • pageNo Optional — Page number e.g. 1
  • numOfRows Optional — Rows per page e.g. 10

Output: response.body.items.item, resultCode, resultMsg

getVersion GET

Version info

https://apis.data.go.kr/1360000/VilageFcstInfoService_2.0/getVersion

  • ServiceKey Required — Issued service key
  • dataType Optional e.g. JSON

Output: response.body.items.item, resultCode, resultMsg

apihub URL형 GET

KMA API Hub URL-type APIs (short-term, grid, lat/lon, warnings)

https://apihub.kma.go.kr/api/typ01/url/fct_shrt_reg.php?tmfc=0&authKey=<키>

  • tmfc Optional — Forecast issuance selector e.g. 0
  • authKey Required — API Hub auth key
  • vars Optional — Variable e.g. TMP

Output: Observation/forecast text or JSON

AuthServiceKey / authKey — ServiceKey (data.go.kr) / authKey (API허브) (query)
Encoded and decoded keys may be shown differently. Keep keys on the server proxy, never expose them to agents.
Daily limitAPI Hub individual 20,000 calls/5GB per day, institution 30,000 calls/50GB per day; data.go.kr usually 10,000 calls/day per application

Actual response JSON — provider raw

{
  "OpenAPI_ServiceResponse": {
    "cmmMsgHeader": {
      "errMsg": "SERVICE_KEY_IS_NOT_REGISTERED_ERROR",
      "returnAuthMsg": "등록되지 않은 서비스키",
      "returnReasonCode": "30"
    }
  }
}

Actual response JSON — our proxy

{
  "nx": 60,
  "ny": 127,
  "base_date": "20261128",
  "base_time": "2000",
  "count": 83,
  "forecast": [
    {
      "date": "20261128",
      "time": "2100",
      "TMP": "3",
      "VEC": "295",
      "WSD": "3.5",
      "SKY": "3",
      "PTY": "0",
      "POP": "20",
      "PCP": "강수없음",
      "REH": "60",
      "SKY_TXT": "구름많음",
      "PTY_TXT": "없음"
    },
    {
      "date": "20261128",
      "time": "2200",
      "TMP": "2",
      "VEC": "298",
      "WSD": "3.6",
      "SKY": "1",
      "PTY": "0",
      "POP": "0",
      "PCP": "강수없음",
      "REH": "60",
      "SKY_TXT": "맑음",
      "PTY_TXT": "없음"
    }
  ]
}

Provider error codes

00 NORMAL SERVICENormal response
Action: Use response.body.items.item
10 INVALID_REQUEST_PARAMETER_ERRORInvalid required parameter
Action: Check base_date/base_time/nx/ny
12 NO_OPENAPI_SERVICE_ERROROperation not found
Action: Check service and operation name
22 LIMITED_NUMBER_OF_SERVICE_REQUESTS_EXCEEDS_ERRORDaily quota exceeded
Action: Resume after midnight and cache
23 LIMITED_NUMBER_OF_SERVICE_REQUESTS_EXCEEDS_ERRORPer-second quota exceeded
Action: Call sequentially at most once per second
30 SERVICE_KEY_IS_NOT_REGISTERED_ERRORUnregistered service key
Action: Use the issued key exactly (see captured JSON above)

Auth · pricing · terms

AuthServiceKey — data.go.kr service key. Stored only on the proxy server and never exposed to agents. Agents call only our proxy with X-Agent-Token.
PricingFree. Auto-approved for both development and production
LicensePublic work: attribution required (Type 1) + author credit (CC BY)
RedistributionAllowed (attribution required)
Terms checked2026-11-07
ApplyLog in to the portal -> Apply for the KMA_Short-Term Forecast Lookup Service -> Service key issued (auto-approved) Portal
StatusActive
Last checked2026-11-07

How agents call

Call through our proxy. Start with the keyless quick API shown above (no token needed). For the Korean law service, target=law is served from our internal law DB with no token. For the keyed proxy, send X-Agent-Token to POST /agencatalog/api/call with ('service', 'endpoint', 'params'). Token issuance is not self-service; see /agencatalog/register/. The full service list is at /agencatalog/api/services.json.

Example: POST /agencatalog/api/call {service:'kma-vilage-fcst', endpoint:'getVilageFcst', params:{base_date,base_time,nx,ny}}

Machine-readable JSON schema

{
  "service": "kma-vilage-fcst",
  "name": "KMA Short-Term Forecast Lookup Service",
  "provider": "KMA",
  "apis": [
    {
      "id": "getUltraSrtNcst",
      "name": "Ultra-Short Nowcast Lookup",
      "params": [
        {
          "name": "base_date",
          "required": true,
          "example": "20261010",
          "desc": "Release date YYYYMMDD"
        },
        {
          "name": "base_time",
          "required": true,
          "example": "0600",
          "desc": "Release time HHMM on the hour"
        },
        {
          "name": "nx",
          "required": true,
          "example": "55",
          "desc": "Forecast grid X coordinate"
        },
        {
          "name": "ny",
          "required": true,
          "example": "127",
          "desc": "Forecast grid Y coordinate"
        },
        {
          "name": "pageNo",
          "required": false,
          "example": "1"
        },
        {
          "name": "numOfRows",
          "required": false,
          "example": "1000"
        },
        {
          "name": "dataType",
          "required": false,
          "example": "JSON"
        }
      ]
    },
    {
      "id": "getUltraFcst",
      "name": "Ultra-Short Forecast Lookup",
      "params": [
        {
          "name": "base_date",
          "required": true,
          "example": "20261010"
        },
        {
          "name": "base_time",
          "required": true,
          "example": "0630",
          "desc": "Every hour at 30 minutes past the hour"
        },
        {
          "name": "nx",
          "required": true
        },
        {
          "name": "ny",
          "required": true
        },
        {
          "name": "pageNo",
          "required": false
        },
        {
          "name": "numOfRows",
          "required": false
        },
        {
          "name": "dataType",
          "required": false
        }
      ]
    },
    {
      "id": "getVilageFcst",
      "name": "Short-Term Forecast Lookup",
      "params": [
        {
          "name": "base_date",
          "required": true,
          "example": "20261010"
        },
        {
          "name": "base_time",
          "required": true,
          "example": "0500",
          "desc": "One of 0200/0500/0800/1100/1400/1700/2000/2300"
        },
        {
          "name": "nx",
          "required": true
        },
        {
          "name": "ny",
          "required": true
        },
        {
          "name": "pageNo",
          "required": false
        },
        {
          "name": "numOfRows",
          "required": false
        },
        {
          "name": "dataType",
          "required": false
        }
      ]
    },
    {
      "id": "getVersion",
      "name": "Forecast Version Lookup",
      "params": [
        {
          "name": "pageNo",
          "required": false
        },
        {
          "name": "numOfRows",
          "required": false
        },
        {
          "name": "dataType",
          "required": false
        }
      ]
    }
  ],
  "proxy_call": "POST /agencatalog/api/call",
  "attribution": "Source: KMA Short-Term Forecast Lookup Service (Public Data Portal data.go.kr)"
}

Error handling

All responses are JSON. On failure the proxy returns {"ok": false, "error": {"code", "message"}}. Handle by code:

invalid_token403. Missing or invalid X-Agent-Token. Get a token via /agencatalog/register/ and resend with the header.
throttle429. One-call-per-second limit exceeded. Wait retry_after seconds and retry sequentially (no parallel calls).
agent_limit / institution_limit429. Daily quota exceeded. Resume after retry_after_seconds.
upstream_limit429. The upstream provider returned an over-quota error. Retry later.
unknown_service404. Unregistered service. Check the exact service/endpoint name in services.json.
not_found404. Bad path. Confirm you use POST /agencatalog/api/call.

Notes

  • API keys live only on the server. Clients asking for keys directly cannot use this route.
  • Each provider has a daily quota. Over-quota calls return 429 and are blocked.
  • Provider outages or over-quota errors are passed through. Check the error field before retrying.
  • Attribution: Source: KMA Short-Term Forecast Lookup Service (Public Data Portal data.go.kr)

Last checked: 2026-11-07