KOSIS Statistics Query (National Statistics Portal)
OpenAPI for KOSIS national-approved statistics: table lists and time series. Fetch original series by table ID (orgId/tblId) with classifier/item codes. Unlike BOK ECOS (markets/rates), KOSIS covers national-approved statistics broadly. Service planned — will connect the proxy after issuing a KOSIS sharing-service API key; not callable yet.
What agents get
- Table IDs/names, issuing agency, classifier/item codes and values (DT), period (PRD_DE), metadata
Population/employment/price/regional QA, cross-check with ECOS, report time series
Use cases
- Query a time series by table ID
- Explore table lists to find a statistic
- Confirm KOSIS-approved population/employment/regional figures
Registered APIs (2)
Statistics data query getStatisticsData
Time series by table ID + classifier + item. Period basis (start/end) or latest count (newEstPrdCnt) — pick one
orgIdRequired — 작성기관ID e.g.101tblIdRequired — 통계표ID e.g.DT_1B08024objL1Required — 분류코드1 e.g.00itmIdRequired — 항목코드 e.g.T7prdSeRequired — 수록주기 (Y 연/M 월/D 일 등) e.g.YnewEstPrdCntOptional — 최근 수록시점 개수 (시점기준과 택1) e.g.1startPrdDeOptional — 시작 수록시점 e.g.20200101endPrdDeOptional — 종료 수록시점 e.g.20261001pageNoOptional e.g.1numOfRowsOptional e.g.10
Returns: PRD_DE(수록시점), DT(수치값), LST_CHN_DE(최종수정일), header/body 구조
Rate limit: 1,000 calls/day (KOSIS sharing service: 1,000 req/min per key; max 40,000 cells per call)
Statistics table list getStatisticsList
Discover table IDs by agency/classifier hierarchy (first step)
pageNoOptional e.g.1numOfRowsOptional e.g.10
Returns: ORG_ID/ORG_NM(기관), TBL_ID/TBL_NM(통계표), 계층 위치·경로
Rate limit: 1,000 calls/day
Auth · pricing · terms
| Auth | ServiceKey — KOSIS sharing-service key. Kept on the proxy server only; never exposed to agents. |
|---|---|
| Pricing | 무료. 개발계정 자동승인 |
| License | Public data (KOSIS terms; attribution required) |
| Redistribution | Allowed (attribution required) |
| Terms checked | 2026-11-07 |
| Apply | Sign up free on KOSIS → Open API application (auto-approved, key issued immediately) → copy key from My Page. Valid 2 years. data.go.kr 15127755 is documentation only. Portal |
| Status | Service planned (opens after key registration) |
| 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:'kosis-statistics', endpoint:'statisticsData/getStatisticsData', params:{orgId:'101', tblId:'DT_1B08024', objL1:'00', itmId:'T7', prdSe:'Y', newEstPrdCnt:'3'}}
Machine-readable JSON schema
{
"service": "kosis-statistics",
"name": "KOSIS Statistics Query (National Statistics Portal)",
"provider": "National Data Agency (Statistics Korea)",
"apis": [
{
"id": "getStatisticsData",
"name": "Statistics data query",
"params": [
{
"name": "orgId",
"required": true,
"example": "101",
"desc": "작성기관ID"
},
{
"name": "tblId",
"required": true,
"example": "DT_1B08024",
"desc": "통계표ID"
},
{
"name": "objL1",
"required": true,
"example": "00",
"desc": "분류코드1"
},
{
"name": "itmId",
"required": true,
"example": "T7",
"desc": "항목코드"
},
{
"name": "prdSe",
"required": true,
"example": "Y",
"desc": "수록주기 (Y 연/M 월/D 일 등)"
},
{
"name": "newEstPrdCnt",
"required": false,
"example": "1",
"desc": "최근 수록시점 개수 (시점기준과 택1)"
},
{
"name": "startPrdDe",
"required": false,
"example": "20200101",
"desc": "시작 수록시점"
},
{
"name": "endPrdDe",
"required": false,
"example": "20261001",
"desc": "종료 수록시점"
},
{
"name": "pageNo",
"required": false,
"example": "1"
},
{
"name": "numOfRows",
"required": false,
"example": "10"
}
]
},
{
"id": "getStatisticsList",
"name": "Statistics table list",
"params": [
{
"name": "pageNo",
"required": false,
"example": "1"
},
{
"name": "numOfRows",
"required": false,
"example": "10"
}
]
}
],
"proxy_call": "POST /agencatalog/api/call",
"attribution": "Source: KOSIS National Statistics Portal (National Data Agency)"
}
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: KOSIS National Statistics Portal (National Data Agency)
Last checked: 2026-11-07
AI Knowledge Hub