# GetHistoricalTopic

### Function specification

```
GetHistoricalTopic(
                category, section, topic_uid,
                sorts=None, count=10,
                summary=True,
                highlight_query=None,
                fields=None
)
```

### Parameters

| Parameter        | Type                     | Description                                                                                                                                                   |
| ---------------- | ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| category         | string or list of string | 국내뉴스: news                                                                                                                                                    |
| section          | string or list of string | <p>정치: politics </p><p>경제: economy </p><p>사회: society </p><p>문화: culture </p><p>세계: world </p><p>기술/IT: tech </p><p>연예: entertainment </p><p>사설: opinion </p> |
| topic\_uid       | integer                  | 토픽의 ID                                                                                                                                                        |
| sorts            | string                   | <p></p><ul><li>검색시 정렬의 기준이 되는 필드</li><li>필드명 앞에 "-" 를 붙이면 내림차순으로 정렬됨</li><li>여러 필드를 지정 할 수 있으며, 나열된 순서대로 정렬</li></ul>                                         |
| count            | integer                  | 한 페이지에 표시할 문서의 최대 개수                                                                                                                                          |
| summary          | bool                     | 연관 뉴스 content 를 요약할 것인지 설정                                                                                                                                    |
| highlight\_query | string                   | 검색 결과에 하이라이트 할 키워드를 지정                                                                                                                                        |
| fields           | list of string           | 결과값으로 어떤 항목을 노출한 것인지 지정한다.                                                                                                                                    |

### Result Layout

{% content-ref url="../../../result\_layout/result-historicaltopicssearchresult-1" %}
[result-historicaltopicssearchresult-1](https://help.deepsearch.com/dp/api/result_layout/result-historicaltopicssearchresult-1)
{% endcontent-ref %}

### Examples

```
핀테크 과거 토픽 문서 결과 
> GetHistoricalTopic(["news"],["economy"],942667530709897216)
{
    "found": true,
    "data": {
        "topics": {
            "news": {
                "economy": [
                    {
                        "meta": {
                            "score": 0.0,
                            "version": 1
                        },
                        "uid": 942667530709897216,
                        "uid_str": "942667530709897216",
                        "revision": 1,
                        "date": "2020-08-05",
                        "category": "news",
                        "section": "economy",
                        "rank": 5,
                        "score": 0.63194,
                        "topic": "파죽지세 카카오뱅크 상반기 순익 372%↑",
                        "tags": [],
                        "keywords": [
                            {
                                "keyword": "카카카오뱅크",
                                "freq": 30
                            },
                            {
                                "keyword": "268억원",
                                "freq": 12
                            },
                            {
                                "keyword": "아파트담보대출",
                                "freq": 8
                            },
                            
...
                            
                            {
                                "keyword": "IPO본격화",
                                "freq": 1
                            }
                        ],
                        "securities": [
                            {
                                "type": "company",
                                "exchange": "KRX",
                                "market": "KOSPI",
                                "symbol": "005940",
                                "name": "NH투자증권",
                                "company_rid": "110111-0098130",
                                "business_rid": "116-81-03693",
                                "freq": 19
                            },
                            {
                                "type": "company",
                                "exchange": "KRX",
                                "market": "KOSPI",
                                "symbol": "030200",
                                "name": "KT",
                                "company_rid": "110111-1468754",
                                "business_rid": "102-81-42945",
                                "freq": 4
                            },
                            {
                                "type": "company",
                                "exchange": "KRX",
                                "market": "KOSDAQ",
                                "symbol": "035720",
                                "name": "카카오",
                                "company_rid": null,
                                "business_rid": null,
                                "freq": 1
                            },
                            {
                                "type": "company",
                                "exchange": "KRX",
                                "market": "KOSPI",
                                "symbol": "039490",
                                "name": "키움증권",
                                "company_rid": "110111-1867948",
                                "business_rid": "107-81-76756",
                                "freq": 1
                            }
                        ],
                        "entities": [
                            {
                                "type": "company",
                                "name": "KT",
                                "freq": 10
                            },
                            {
                                "type": "company",
                                "name": "NAVER",
                                "freq": 1
                            },
                            {
                                "type": "company",
                                "name": "NH투자증권",
                                "freq": 21
                            },
                            {
                                "type": "company",
                                "name": "세틀뱅크",
                                "freq": 4
                            },
                            {
                                "type": "company",
                                "name": "카카오",
                                "freq": 2
                            },
                            {
                                "type": "company",
                                "name": "키움증권",
                                "freq": 1
                            }
                        ],
                        "attributes": {},
                        "docs": [
                            {
                                "meta": {
                                    "score": 0.0,
                                    "version": 1
                                },
                                "uid": 942289009080668208,
                                "uid_str": "942289009080668208",
                                "revision": 1,
                                "category": "news",
                                "section": "economy",
                                "publisher": "중앙일보",
                                "author": "성지원",
                                "title": "K뱅크 비대면 아파트담보대출…금리는 1.64%",
                                "content": "서류심사·대출까지 이틀만에 끝 KT 대리점서 계좌도 쉽게 개설 케이뱅크가 이달 중 ‘100% 비대면 아파트 담보대출’을 출시한다.\n\n또 이번 주부터 KT 대리점에서 QR코드를 이용해 바로 케이뱅크 계좌를 개설할 수 있는 제휴 서비스를 출시한다고 4일 밝혔다.\n\n이 행장은 “전국 2500개 KT 대리점에서 QR코드를 찍으면 쉽게 케이뱅크 계좌를 만들 수 있을 예정”이라며 “계좌를 개설하고 휴대폰을 개통하면 통신비 할인 혜택을 주는 ‘통신결합 상품’을 준비 중”이라고 밝혔다.",
                                "highlight": null,
                                "securities": [],
                                "entities": [
                                    {
                                        "type": "company",
                                        "name": "KT"
                                    },
                                    {
                                        "type": "company",
                                        "name": "NH투자증권"
                                    }
                                ],
                                "named_entities": [
                                    {
                                        "type": "organization",
                                        "name": "K뱅크",
                                        "count": 1
                                    }
                                ],
                                "tags": [],
                                "industry": {
                                    "label": "K64",
                                    "name": "금융업",
                                    "score": 0.865
                                },
                                "polarity": null,
                                "customized_ml": null,
                                "patent": null,
                                "content_url": "https://news.joins.com/article/olink/23435830",
                                "image_urls": [
                                    "https://haystack-attachments.s3-ap-northeast-1.amazonaws.com/news/economy/2020/08/05/942289009080668208/000-c9bca87400723df6c490383e8443e7c5b038828a.jpg"
                                ],
                                "attachments": [],
                                "attributes": {},
                                "created_at": "2020-08-05T00:03:00.000000",
                                "updated_at": "2020-08-05T00:03:00.000000"
                            },


...

```
