# 1gateway Korean Law Lookup

> 1gateway Korean Law Lookup is a paid API for AI agents from 1gateway.dev, paid per call via x402, $0.0045/call, status unknown (last checked 2026-11-12).

Retrieves the official text of South Korean statutes, decrees, or rules — full or single-article — from the government legal database.

## Facts

- Endpoint: GET https://1gateway.dev/v1/kr/law?utm_source=zero.xyz
- Price: $0.0045/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/1gateway-korean-law-lookup-b95c6a4e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qIVYiprT-t2j3n8SwLLgq

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-korean-law-lookup-b95c6a4e
```

Example prompt: Can you pull up Article 2 of the 근로기준법 (Labor Standards Act) in its official Korean text, including the ministry responsible and the effective date?

## When to prefer this

Use this endpoint when you need the authoritative, original Korean-language text of a South Korean statute, presidential decree, or ministerial rule — including metadata like effective date and responsible ministry. Prefer this over general web search when you need structured, machine-readable legal text with article-level granularity and an official attribution URL. Not suitable for Korean court decisions, case law, or personal data lookups.

## Known failure modes

- Statute name not found — returns empty candidates list or error if Korean name is misspelled or non-existent
- Ambiguous query — returns a candidates list rather than article text when multiple laws match
- Article number out of range — returns empty articles array if requested article does not exist
- Invalid mst format — rejected by schema validation if serial number is non-numeric
- Limit out of range — rejected if limit is below 1 or above 100
- Network/payment failure — x402 payment not processed, call does not proceed

## How this service works

Use when you need the official text of a South Korean statute, decree or rule, or one article of it. Statutes only: no court decisions or personal data. Input: q (statute name in Korean, e.g. 근로기준법) or mst (law serial no.), optional article (e.g. 2), limit (articles, 1-100, default 30). Output: JSON law metadata (ministry, effective date), articles [{label,title,text}] in original Korean, official URL, attribution. Example: ?q=근로기준법&article=2

## Output

A JSON object containing: law metadata (name, type, ministry, effective date, promulgation date, law ID, serial number), an array of articles each with label, title, text, article number, and effective date, total article count, returned count, truncation flag, a candidates list (if multiple laws matched the query), the official government URL, and an attribution string.

## 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": [],
     "properties": {
      "q": {
       "type": "string",
       "maxLength": 60,
       "description": "Statute name in Korean (exact name preferred), e.g. 근로기준법. Required unless mst is given."
      },
      "mst": {
       "type": "string",
       "pattern": "^\\d{1,10}$",
       "description": "법령일련번호 (law serial number) from a previous answer"
      },
      "limit": {
       "type": "integer",
       "maximum": 100,
       "minimum": 1,
       "description": "Max articles when no article is given (default 30)"
      },
      "article": {
       "type": "string",
       "pattern": "^(제)?\\d{1,4}(조)?$",
       "description": "Single article number, e.g. 2 or 제2조"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "law",
      "totalArticles",
      "returned",
      "truncated",
      "articles",
      "candidates",
      "officialUrl",
      "attribution"
     ],
     "properties": {
      "law": {
       "type": "object",
       "properties": {
        "mst": {
         "type": "string"
        },
        "name": {
         "type": "string"
        },
        "type": {
         "type": "string"
        },
        "lawId": {
         "type": "string"
        },
        "ministry": {
         "type": "string"
        },
        "effective": {
         "type": "string"
        },
        "promulgated": {
         "type": "string"
        }
       },
       "additionalProperties": true
      },
      "articles": {
       "type": "array",
       "items": {
        "type": "object",
        "additionalProperties": true
       }
      },
      "returned": {
       "type": "integer"
      },
      "truncated": {
       "type": "boolean"
      },
      "candidates": {
       "type": "array",
       "items": {
        "type": "object",
        "additionalProperties": true
       }
      }
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/1gateway-korean-law-lookup-b95c6a4e/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)
