# SearchHistoricalTopics

### Function specification

```
SearchHistoricalTopics(
                category, section, query,
                count=10, page=None, sort=None,
                date_from=None, date_to=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> |
| query      | string                   | 검색 쿼리                                                                                                                                                         |
| count      | integer                  | 한 페이지에 표시할 문서의 최대 개수                                                                                                                                          |
| page       | integer                  | 페이지 번호                                                                                                                                                        |
| sort       | string                   | <p></p><ul><li>검색시 정렬의 기준이 되는 필드</li><li>필드명 앞에 "-" 를 붙이면 내림차순으로 정렬됨</li><li>여러 필드를 지정 할 수 있으며, 나열된 순서대로 정렬</li></ul>                                         |
| date\_from | string                   | 검색 시작 시점 (YYYYMMDD)                                                                                                                                           |
| date\_to   | string                   | 검색 종료 시점(YYYYMMDD)                                                                                                                                            |
| fields     | list of string           | 결과값으로 어떤 항목을 노출한 것인지 지정한다.                                                                                                                                    |

### Result Layout&#x20;

{% content-ref url="/pages/-MX1SD-PXu5TZL0XeqMz" %}
[Result:HistoricalTopicsSearchResult(검색)](/dp/api/result_layout/result-historicaltopicssearchresult.md)
{% endcontent-ref %}

### Examples

```
핀테크 과거 토픽 검색
> SearchHistoricalTopics(["news"],["economy"],"핀테크",date_from="20200101", date_to="20201231")
{
...
        "total_matches": 1474,
        "max_score": null,
        "scroll_id": "2",
        "current_page": 1,
        "last_page": 100,
        "topics": [
            {
                "meta": {
                    "score": null,
                    "version": 3
                },
                "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": "순이익453억",
                        "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": {
                    "query_name": "핀테크",
                    "query_string": "\"핀테크\""
                }
            },

```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.deepsearch.com/dp/api/func/document/topic-search/searchhistoricaltopics.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
