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_dateRequired — Release date YYYYMMDD e.g.20261010base_timeRequired — Release time HHMM on the hour e.g.0600nxRequired — Forecast grid X coordinate e.g.55nyRequired — Forecast grid Y coordinate e.g.127pageNoOptional e.g.1numOfRowsOptional e.g.1000dataTypeOptional 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_dateRequired e.g.20261010base_timeRequired — Every hour at 30 minutes past the hour e.g.0630nxRequirednyRequiredpageNoOptionalnumOfRowsOptionaldataTypeOptional
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_dateRequired e.g.20261010base_timeRequired — One of 0200/0500/0800/1100/1400/1700/2000/2300 e.g.0500nxRequirednyRequiredpageNoOptionalnumOfRowsOptionaldataTypeOptional
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
pageNoOptionalnumOfRowsOptionaldataTypeOptional
Returns: stnIds, code, availableTime
Rate limit: 10,000 calls/day
Practical specs (official guides)
| KMA API Hub - Short-term forecast guide | Online 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 API | Online 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
ServiceKeyRequired — Issued service key (check encoded/decoded form)base_dateRequired — Base date YYYYMMDD e.g.20261128base_timeRequired — Base time HHMM e.g.0200nxRequired — Grid X coordinate e.g.60nyRequired — Grid Y coordinate e.g.127dataTypeOptional — JSON or XML e.g.JSONpageNoOptional — Page number e.g.1numOfRowsOptional — 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
ServiceKeyRequired — Issued service key (check encoded/decoded form)base_dateRequired — Base date YYYYMMDD e.g.20261128base_timeRequired — Base time HHMM e.g.0200nxRequired — Grid X coordinate e.g.60nyRequired — Grid Y coordinate e.g.127dataTypeOptional — JSON or XML e.g.JSONpageNoOptional — Page number e.g.1numOfRowsOptional — 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
ServiceKeyRequired — Issued service key (check encoded/decoded form)base_dateRequired — Base date YYYYMMDD e.g.20261128base_timeRequired — Base time HHMM e.g.0200nxRequired — Grid X coordinate e.g.60nyRequired — Grid Y coordinate e.g.127dataTypeOptional — JSON or XML e.g.JSONpageNoOptional — Page number e.g.1numOfRowsOptional — 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
ServiceKeyRequired — Issued service keydataTypeOptional 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=<키>
tmfcOptional — Forecast issuance selector e.g.0authKeyRequired — API Hub auth keyvarsOptional — Variable e.g.TMP
Output: Observation/forecast text or JSON
| Auth | ServiceKey / 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 limit | API 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 SERVICE | Normal response Action: Use response.body.items.item |
|---|---|
| 10 INVALID_REQUEST_PARAMETER_ERROR | Invalid required parameter Action: Check base_date/base_time/nx/ny |
| 12 NO_OPENAPI_SERVICE_ERROR | Operation not found Action: Check service and operation name |
| 22 LIMITED_NUMBER_OF_SERVICE_REQUESTS_EXCEEDS_ERROR | Daily quota exceeded Action: Resume after midnight and cache |
| 23 LIMITED_NUMBER_OF_SERVICE_REQUESTS_EXCEEDS_ERROR | Per-second quota exceeded Action: Call sequentially at most once per second |
| 30 SERVICE_KEY_IS_NOT_REGISTERED_ERROR | Unregistered service key Action: Use the issued key exactly (see captured JSON above) |
Auth · pricing · terms
| Auth | ServiceKey — 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. |
|---|---|
| Pricing | Free. Auto-approved for both development and production |
| License | Public work: attribution required (Type 1) + author credit (CC BY) |
| Redistribution | Allowed (attribution required) |
| Terms checked | 2026-11-07 |
| Apply | Log in to the portal -> Apply for the KMA_Short-Term Forecast Lookup Service -> Service key issued (auto-approved) Portal |
| Status | Active |
| Last checked | 2026-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_token | 403. Missing or invalid X-Agent-Token. Get a token via /agencatalog/register/ and resend with the header. |
|---|---|
| throttle | 429. One-call-per-second limit exceeded. Wait retry_after seconds and retry sequentially (no parallel calls). |
| agent_limit / institution_limit | 429. Daily quota exceeded. Resume after retry_after_seconds. |
| upstream_limit | 429. The upstream provider returned an over-quota error. Retry later. |
| unknown_service | 404. Unregistered service. Check the exact service/endpoint name in services.json. |
| not_found | 404. 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
AI Knowledge Hub