get_key_indicator
Retrieves explanation data for key indicators from KOSIS by indicator ID or name.
Instructions
KOSIS 통계주요지표(Key Indicator)의 설명자료를 조회합니다.
8개 KOSIS 통계주요지표 sub-service 중 설명자료 계열 두 가지를 by 인자로 구분합니다 (KOSIS dev guide §2.7).
Args: by: "id" → 지표 고유번호로 조회 (pkNumberService.do) "name" → 지표명으로 조회 (indExpService.do) value: by="id" 면 지표 ID(jipyoId), by="name" 이면 지표명(jipyoNm). page: 페이지 번호 (기본 1). limit: 페이지당 결과 수 (기본 10).
Returns: {"by": ..., "value": ..., "count": , "results": [{...}, ...]} 결과 항목은 IndicatorExplanation 의 dict 형태.
Example: >>> get_key_indicator(by="id", value="160") >>> get_key_indicator(by="name", value="실업률")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| by | Yes | ||
| page | No | ||
| limit | No | ||
| value | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||