# 1gateway Bank of Korea ECOS Statistics API

> 1gateway Bank of Korea ECOS Statistics API is a paid API for AI agents from 1gateway.dev, paid per call via x402, $0.0045/call, status unknown (last checked 2026-10-16).

Fetches official Bank of Korea (BOK) time-series data from ECOS tables — including base rate, money supply, and key macro indicators — as clean JSON with English labels

## Facts

- Endpoint: GET https://1gateway.dev/v1/macro/ecos?utm_source=zero.xyz
- Price: $0.0045/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/1gateway-bank-of-korea-ecos-statistics-api-0fb41863
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_mNpX17r3V8BpkitvwbMQT

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability 1gateway-bank-of-korea-ecos-statistics-api-0fb41863
```

Example prompt: Can you pull the Bank of Korea base rate data from ECOS table 722Y001 monthly from January 2024 to December 2024, item 0101000?

## When to prefer this

Use this endpoint when you need official, BOK-authored macro time-series data from South Korea's ECOS database — specifically when you need English-labeled, normalized JSON output without having to interface with the raw ECOS API directly. Prefer this over general web scraping or third-party aggregators when data provenance and official sourcing matter. Best for base rate, money supply, trade, or any BOK-published statistical table.

## Known failure modes

- Non-BOK ECOS table code returns 403 (not charged)
- Invalid stat code format returns validation error
- Invalid cycle/period combination returns error
- Period format mismatch (e.g. monthly format with annual cycle) causes query failure
- Result truncated at 1,000 rows if date range is too wide
- Missing required parameters (stat, cycle, start, end) returns 400

## How this service works

Use when you need official Bank of Korea statistics (base rate, money supply, key indicators) as a time series. Input: stat (ECOS table code, e.g. 722Y001), cycle (A/S/Q/M/SM/D), start, end (period format of cycle), optional item (e.g. 0101000). Output: JSON series with English labels, units, observations [{period,value}] (max 1,000 rows) and source attribution. Only BOK-authored tables are served. Example: ?stat=722Y001&cycle=M&start=202401&end=202412&item=0101000

## Output

Returns a JSON object containing the ECOS stat code, Korean and English stat names, cycle type, a series array with item codes, English/Korean names, units, and an observations array of {period, value, periodRaw} objects (up to 1,000 rows), plus truncation flag, source attribution, license, and cache metadata.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "stat",
      "cycle",
      "start",
      "end"
     ],
     "properties": {
      "end": {
       "type": "string",
       "pattern": "^[0-9A-Z]{4,8}$",
       "examples": [
        "202412"
       ],
       "description": "End period, same format as start"
      },
      "item": {
       "type": "string",
       "pattern": "^[0-9A-Za-z?]+$",
       "examples": [
        "0101000"
       ],
       "description": "Item code 1 (e.g. 0101000). Optional item2..item4 also accepted."
      },
      "stat": {
       "type": "string",
       "pattern": "^[0-9A-Z]{7}$",
       "examples": [
        "722Y001"
       ],
       "description": "ECOS statistic table code, e.g. 722Y001 (base rate). Non-BOK tables → 403 (not charged)."
      },
      "cycle": {
       "enum": [
        "A",
        "S",
        "Q",
        "M",
        "SM",
        "D"
       ],
       "type": "string",
       "examples": [
        "M"
       ],
       "description": "A annual, S semi-annual, Q quarterly, M monthly, SM semi-monthly, D daily"
      },
      "start": {
       "type": "string",
       "pattern": "^[0-9A-Z]{4,8}$",
       "examples": [
        "202401"
       ],
       "description": "Start period in ECOS format (A: YYYY, Q: YYYYQn, M: YYYYMM, D: YYYYMMDD)"
      }
     },
     "additionalProperties": true
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "statCode",
      "statNameKo",
      "statNameEn",
      "cycle",
      "cycleEn",
      "series",
      "totalRows",
      "rowLimit",
      "truncated",
      "attribution",
      "license",
      "cache"
     ],
     "properties": {
      "cache": {
       "type": "string"
      },
      "cycle": {
       "type": "string"
      },
      "series": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "items": {
          "type": "array",
     
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/1gateway-bank-of-korea-ecos-statistics-api-0fb41863/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 1gateway.dev](https://www.zero.xyz/host/1gateway.dev/llms.txt)
