ApiFuseApiFuse
API Reference

법령 조문 조회

법령명으로 조문 목록과 시행일 등 상세 정보를 조회합니다.

법령 조문 조회

법령명으로 전체 조문 목록과 시행일, 법령 ID를 반환합니다.

엔드포인트

GET /v1/law-detail

Upstream

  • Base URL: https://www.law.go.kr
  • Path: /DRF/lawService.do

요청 파라미터

파라미터타입필수기본값설명
law_namestring-법령명
article_numberstring-조문 번호 (예: 제1조)
include_historyboolean-연혁 포함 여부
include_englishboolean-영문 포함 여부
include_relatedboolean-관련 법령 포함 여부

요청 예시

{
  "law_name": "민법"
}

응답 스키마

아래 스키마는 adapter의 Zod output schema에서 직접 생성됩니다.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "law_name": {
      "type": "string"
    },
    "law_id": {
      "type": "string"
    },
    "enforcement_date": {
      "type": "string"
    },
    "articles": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "number": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "content": {
            "type": "string"
          }
        },
        "required": [
          "number",
          "content"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "law_name",
    "articles"
  ],
  "additionalProperties": false
}

응답 예시

{
  "data": {
    "law_name": "민법",
    "law_id": "001234",
    "enforcement_date": "20260101",
    "articles": [
      {
        "number": "1",
        "title": "목적",
        "content": "이 법은 권리와 의무에 관한 사항을 규정함을 목적으로 한다."
      }
    ]
  },
  "pagination": null,
  "meta": {
    "source": "law-detail",
    "fetchedAt": "2026-03-24T00:00:00.000Z"
  }
}

On this page