본문 바로가기

국가법령정보 공동활용 LAW OPEN DATA

마이페이지 로그인

법제처 사이트에서 제공되는 검색에 대한 결과를 XML로 받아볼 수 있는 대화형 서비스입니다.

맞춤형 법령 목록 조회 API

- 요청 URL : http://www.law.go.kr/DRF/lawSearch.do?target=couseLs
요청 변수 (request parameter)
요청변수 안내
요청변수 설명
OC string(필수) 사용자 이메일의 ID(g4c@korea.kr일경우 OC값=g4c)
target string : couseLs(필수) 서비스 대상
type char(필수) 출력 형태 HTML/XML
vcode string(필수) 분류코드
법령은 L로 시작하는 14자리 코드(L0000000000001)
display int 검색된 결과 개수 (default=20 max=100)
page int 검색 결과 페이지 (default=1)
popYn string 상세화면 팝업창 여부(팝업창으로 띄우고 싶을 때만 'popYn=Y')
샘플 URL
1. 분류코드가 L0000000003384인 맞춤형 분류 목록 검색
http://www.law.go.kr/DRF/lawSearch.do?OC=test&target=couseLs&type=XML&vcode=L0000000003384
2. 분류코드가 L0000000003384인 맞춤형 분류 목록 HTML 검색
http://www.law.go.kr/DRF/lawSearch.do?OC=test&target=couseLs&type=HTML&vcode=L0000000003384
출력 결과 필드(response field)
출력 결과 필드 안내
필드 설명
target string 검색서비스 대상
vcode string 분류코드
section string 검색범위
totalCnt int 검색건수
page int 결과페이지번호
law id int 결과 번호
법령일련번호 int 법령일련번호
법령명한글 string 법령명한글
법령ID int 법령ID
공포일자 int 공포일자
공포번호 int 공포번호
제개정구분명 string 제개정구분명
소관부처명 string 소관부처명
소관부처코드 string 소관부처코드
법령구분명 string 법령구분명
시행일자 int 시행일자
법령상세링크 string 법령상세링크
법제처