API Reference
법령 용어 사전
법령에서 사용되는 용어의 정의를 검색합니다.
법령 용어 사전
법령 용어의 정의와 출처 법령명을 반환합니다.
엔드포인트
GET /v1/law-terms
Upstream
- Base URL:
https://www.law.go.kr - Path:
/DRF/lawSearch.do
요청 파라미터
| 파라미터 | 타입 | 필수 | 기본값 | 설명 |
|---|---|---|---|---|
term | string | ✅ | - | 검색할 법률 용어명 (예: 소멸시효, 선의취득, 불법행위) |
include_related_laws | boolean | ❌ | - | 관련 법령 포함 여부 |
요청 예시
{
"term": "계약"
}응답 스키마
아래 스키마는 adapter의 Zod output schema에서 직접 생성됩니다.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"terms": {
"type": "array",
"items": {
"type": "object",
"properties": {
"term": {
"type": "string"
},
"definition": {
"type": "string"
},
"law_name": {
"type": "string"
}
},
"required": [
"term",
"definition"
],
"additionalProperties": false
}
},
"total": {
"type": "number"
}
},
"required": [
"terms",
"total"
],
"additionalProperties": false
}응답 예시
{
"data": {
"terms": [
{
"term": "계약",
"definition": "당사자 간의 법률행위로 이루어지는 합의",
"law_name": "민법"
}
],
"total": 1
},
"pagination": null,
"meta": {
"source": "law-terms",
"fetchedAt": "2026-03-24T00:00:00.000Z"
}
}