> For the complete documentation index, see [llms.txt](https://help.deepsearch.com/dp/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.deepsearch.com/dp/api/func/economy/kostat/querykosiscrosssectiondata.md).

# QueryKosisCrossSectionData

### Function specification

```
QueryKosisCrossSectionData(entity_id, freq=None, date=None)
```

###

### Parameters

| Parameter  | Type   | Description                                                                                                                               |
| ---------- | ------ | ----------------------------------------------------------------------------------------------------------------------------------------- |
| entity\_id | string | 조회하고자 하는 경제 지표의 entity id 를 명시합니다.                                                                                                        |
| freq       | string | 동일 entity\_id 가 둘 이상의 주기 (freq) 에 대해 데이터 값을 가지고 있을 수 있기 때문에, 값을 가져오고자 하는 대상 주기를 명시해주어야 합니다. 따로 명시하지 않을 경우, 가장 최근 값을 가지고 있는 날짜의 주기를 사용합니다. |
| date       | date   | 데이터를 가져오고자 하는 날짜를 지정합니다. 따로 명시하지 않을 경우, 가장 최근 날짜를 사용합니다.                                                                                  |

###

### Examples

결과 값에 포함되어 있는 category id 와 item code 의 의미는 위 GetKosisTableCategoryItemFreqList 함수의 결과 값을 사용해서 재구성해야 합니다.

```
> QueryKosisCrossSectionData("KOSIS:101.DT_1011301")

...

                                         QueryKosisCrossSectionData(KOSIS:101.DT_1011301)
freq date       category_id   item_code
Y    2020-12-31 A000|B000     T10                          6674.0
                A000|B001     T10                          3783.0
                A000|B002     T10                          1694.0
                A000|B003     T10                          1197.0
                A001|B000     T10                          5674.0
...                                                           ...
                A007A166|B003 T10                             3.0
                A007|B000     T10                          1000.0
                A007|B001     T10                           312.0
                A007|B002     T10                           315.0
                A007|B003     T10                           373.0
```

```
> QueryKosisCrossSectionData("KOSIS:101.DT_1EW0004", "M", 2018-03-31)

...

                                       QueryKosisCrossSectionData(KOSIS:101.DT_1EW0004, M, 2018-03-31)
freq date       category_id item_code
M    2018-03-31 0|0|00|0    T01                      5.3777e+05
                            T02                      4.4962e+05
                            T03                      4.0411e+04
                            T04                      4.7737e+04
                            T05                      7.0947e+08
...                                                         ...
                4|4|39|0    T06                      1.2000e+05
                4|4|39|2    T01                      3.0000e+00
                            T02                      3.0000e+00
                            T05                      1.2000e+05
                            T06                      1.2000e+05
```
