BOK ECOS Economic Statistics
Official API of the BOK Economic Statistics System (ECOS) for statistical time series, table lists, and key indicators. Provides macro indicators such as the base rate, exchange rates, GDP, and consumer prices.
What agents get
- Time series for the base rate, call rate, KORIBOR, CD yields, exchange rates (KRW/USD and more), GDP growth, consumer price index (CPI), industrial production, retail sales, housing price index, and other economic statistics
Economic analysis, investment decisions, tracking rate and price trends, macro reporting, and exchange-rate analysis
Use cases
- Look up base-rate change history
- Exchange-rate time-series analysis
- Check consumer-price inflation
- Track GDP growth
- Search statistical tables and check key indicators
Registered APIs (3)
Statistical Time-Series Lookup StatisticSearch
Look up time-series data by statistical table code, cycle, and period
stat_codeRequired — Statistical table code e.g.901Y009cycleRequired — Cycle (A=annual, Q=quarterly, M=monthly, D=daily) e.g.Dstart_dtRequired — Search start date e.g.20260101end_dtRequired — Search end date e.g.20261010
Returns: STAT_CODE (table code), STAT_NAME, ITEM_CODE1/2/3 (item codes), ITEM_NAME1/2/3, TIME (point in time), DATA_VALUE (value)
Rate limit: 10,000 calls/day (Per the ECOS portal)
Statistical Table List Lookup StatisticTableList
Search statistical tables and find their codes
Returns: Statistical table list (STAT_CODE, STAT_NAME, cycle, category, and more)
Rate limit: 10,000 calls/day
Top-100 Key Indicators KeyStatisticList
View core economic indicators such as the base rate, exchange rates, and GDP at a glance
Returns: Top-100 key economic indicators (indicator name, value, change, and more)
Rate limit: 10,000 calls/day
Practical specs (official guides)
| Bank of Korea ECOS Open API guide | Online guide + per-service guides https://ecos.bok.or.kr/ Path-based key authentication. The sample key allows up to 10 rows. |
|---|
Endpoints & required parameters
StatisticTableList GET
Statistic table list
https://ecos.bok.or.kr/api/StatisticTableList/{인증키}/{json|xml}/{kr|en}/{시작건수}/{종료건수}/
인증키Required — Issued key (sample key limited to 10 rows)
Output: RESULT 또는 <서비스명>.row
StatisticItemList GET
Statistic item list
https://ecos.bok.or.kr/api/StatisticItemList/{인증키}/{json|xml}/{kr|en}/{시작건수}/{종료건수}/{statCode}
인증키Required — Issued key (sample key limited to 10 rows)statCodeRequired e.g.722Y001
Output: RESULT 또는 <서비스명>.row
StatisticSearch GET
Statistic search
https://ecos.bok.or.kr/api/StatisticSearch/{인증키}/{json|xml}/{kr|en}/{시작건수}/{종료건수}/{statCode}/{cycle}/{startTime}/{endTime}/{itemCode1}
인증키Required — Issued key (sample key limited to 10 rows) e.g.samplestatCodeRequired e.g.722Y001cycleRequired — A/S/Q/M/SM/D e.g.MstartTimeRequired e.g.202601endTimeRequired e.g.202604itemCode1Optional e.g.0101000
Output: RESULT 또는 <서비스명>.row
KeyStatisticList GET
Key statistics
https://ecos.bok.or.kr/api/KeyStatisticList/{인증키}/{json|xml}/{kr|en}/{시작건수}/{종료건수}/
인증키Required — Issued key (sample key limited to 10 rows)
Output: RESULT 또는 <서비스명>.row
StatisticMeta GET
Statistic metadata
https://ecos.bok.or.kr/api/StatisticMeta/{인증키}/{json|xml}/{kr|en}/{시작건수}/{종료건수}/{statCode}
인증키Required — Issued key (sample key limited to 10 rows)statCodeRequired e.g.722Y001
Output: RESULT 또는 <서비스명>.row
StatisticWord GET
Word search
https://ecos.bok.or.kr/api/StatisticWord/{인증키}/{json|xml}/{kr|en}/{시작건수}/{종료건수}/{word}
인증키Required — Issued key (sample key limited to 10 rows)wordRequired e.g.base rate
Output: RESULT 또는 <서비스명>.row
| Auth | URL path key — /api/{service}/{key}/{json|xml}/{kr|en}/{start}/{end}/... (path) Keep the key on the server proxy only; never expose it to agents. |
|---|---|
| Daily limit | No official daily limit published. Tertiary data: 10,000 calls/day plus 300 calls/3 minutes. |
Actual response JSON — provider raw
{
"StatisticSearch": {
"list_total_count": 4,
"row": [
{
"STAT_CODE": "722Y001",
"STAT_NAME": "1.3.1. 한국은행 기준금리 및 여수신금리",
"ITEM_CODE1": "0101000",
"ITEM_NAME1": "한국은행 기준금리",
"ITEM_CODE2": null,
"ITEM_NAME2": null,
"ITEM_CODE3": null,
"ITEM_NAME3": null,
"ITEM_CODE4": null,
"ITEM_NAME4": null,
"UNIT_NAME": "연%",
"WGT": null,
"TIME": "202601",
"DATA_VALUE": "2.5"
},
{
"STAT_CODE": "722Y001",
"STAT_NAME": "1.3.1. 한국은행 기준금리 및 여수신금리",
"ITEM_CODE1": "0101000",
"ITEM_NAME1": "한국은행 기준금리",
"ITEM_CODE2": null,
"ITEM_NAME2": null,
"ITEM_CODE3": null,
"ITEM_NAME3": null,
"ITEM_CODE4": null,
"ITEM_NAME4": null,
"UNIT_NAME": "연%",
"WGT": null,
"TIME": "202602",
"DATA_VALUE": "2.5"
}
]
}
}Provider error codes
| INFO-100 Invalid authentication key | Invalid authentication key Action: Reissue or apply for a key (see captured JSON) |
|---|---|
| INFO-200 No data for the request | No data for the request Action: Check stat code, cycle, period and item code (see captured JSON) |
| ERROR-100 Required value missing | Required value missing Action: Check required arguments |
| ERROR-101 Cycle/date mismatch | Cycle/date mismatch Action: A=YYYY, S=YYYYS1, Q=YYYYQ1, M=YYYYMM, SM=YYYYMMS1, D=YYYYMMDD |
| ERROR-200 Invalid request type | Invalid request type Action: Check json/xml and kr/en values |
| ERROR-300 Missing row range | Missing row range Action: Provide start and end row numbers |
| ERROR-301 Invalid row range type | Invalid row range type Action: Use numeric values |
| ERROR-400 Timeout (60 seconds) | Timeout (60 seconds) Action: Retry shortly |
| ERROR-500 Server error | Server error Action: Retry, then contact the agency |
| ERROR-600 DB connection error | DB connection error Action: Retry, then contact the agency |
| ERROR-601 SQL error | SQL error Action: Check parameters, then contact the agency |
| ERROR-602 Too many calls | Too many calls Action: Increase interval and cache responses |
Auth · pricing · terms
| Auth | API key — Issued free at the ECOS portal. Stored only on the proxy server. |
|---|---|
| Pricing | Free |
| License | Public data: attribution required |
| Redistribution | Allowed (attribution required) |
| Terms checked | 2026-11-07 |
| Apply | Sign up at the ECOS portal -> Apply for an OpenAPI key (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:'ecos-bok', endpoint:'StatisticSearch', params:{stat_code:'901Y009', cycle:'D', start_dt:'20260101', end_dt:'20261010'}}
Machine-readable JSON schema
{
"service": "ecos-bok",
"name": "BOK ECOS Economic Statistics",
"provider": "BOK",
"apis": [
{
"id": "StatisticSearch",
"name": "Statistical Time-Series Lookup",
"params": [
{
"name": "stat_code",
"required": true,
"example": "901Y009",
"desc": "Statistical table code"
},
{
"name": "cycle",
"required": true,
"example": "D",
"desc": "Cycle (A=annual, Q=quarterly, M=monthly, D=daily)"
},
{
"name": "start_dt",
"required": true,
"example": "20260101",
"desc": "Search start date"
},
{
"name": "end_dt",
"required": true,
"example": "20261010",
"desc": "Search end date"
}
]
},
{
"id": "StatisticTableList",
"name": "Statistical Table List Lookup",
"params": []
},
{
"id": "KeyStatisticList",
"name": "Top-100 Key Indicators",
"params": []
}
],
"proxy_call": "POST /agencatalog/api/call",
"attribution": "Source: BOK Economic Statistics System ECOS (ecos.bok.or.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: BOK Economic Statistics System ECOS (ecos.bok.or.kr)
Last checked: 2026-11-07
AI Knowledge Hub