> 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/document/topic-search/gettrendingtopic.md).

# GetTrendingTopic

### Function specification

```
GetTrendingTopic(
                category, section, topic_uid,
                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                                                                                                                                                        |
| count            | integer                  | 결과로 나타나는 docs의 문서 수                                                                                                                                           |
| summary          | bool                     | 연관 뉴스 content 를 요약할 것인지 설정                                                                                                                                    |
| highlight\_query | string                   | 검색 결과에 하이라이트 할 키워드를 지정                                                                                                                                        |
| fields           | list of string           | 결과값으로 어떤 항목을 노출한 것인지 지정한다.                                                                                                                                    |

### Result Layout&#x20;

{% content-ref url="/pages/-MX1ICtAAPHftFxv-30G" %}
[Result:TrendingTopicResult](/dp/api/result_layout/result-trendingtopicresult.md)
{% endcontent-ref %}

### Examples

```
트랜딩 토픽 문서 결과
> GetTrendingTopic(["news"],["economy"],54469154)
{
    "found": true,
    "data": {
        "scroll_id": null,
        "current_page": 0,
        "last_page": 0,
        "topics": {
            "news": {
                "economy": [
                    {
                        "uid": 54469154,
                        "uid_str": "54469154",
                        "timestamp": "2020-08-07T16:20:00.000000",
                        "category": "news",
                        "section": "economy",
                        "rank": 1,
                        "score": 7.7828,
                        "topic": "국내증시 연고점 재경신 코스피 2350선 마감",
                        "keywords": [
                            {
                                "keyword": "2350선",
                                "freq": 16
                            },
                            {
                                "keyword": "1만1000선",
                                "freq": 10
                            },
                            {
                                "keyword": "뉴욕증시",
                                "freq": 9
                            },
                            {
                                "keyword": "2360선",
                                "freq": 6
                            },
                            {
                                "keyword": "1만1000돌파",
                                "freq": 5
                            }
                        ],
                        "doc_uids": [
                            942897253075521663,
                            942897253075521670,
...
                            943258339578614137
                        ],
                        "docs": [
                            {
                                "meta": {
                                    "score": 0.0,
                                    "version": 1
                                },
                                "uid": 943258339578614137,
                                "uid_str": "943258339578614137",
                                "revision": 1,
                                "category": "news",
                                "section": "economy",
                                "publisher": "파이낸셜뉴스",
                                "author": "김서연",
                                "title": "[fn마감시황] 코스피, 2350선 돌파.. 나흘 연속 연고점 경신",
                                "content": "7일 코스피는 전거래일 대비 9.06포인트(0.39%) 오른 2351.67로 장을 마쳤다.\n\n이날 코스피는 전거래일 대비 전거래일 대비 6.64포인트(0.28%)오른 2349.25로 개장했다.\n\n지난 4일 이후 4거래일 연속 장중 고가 기준 연고점을 갈아치웠다.",
                                "highlight": null,
                                "securities": [],
                                "entities": [
                                    {
                                        "type": "company",
                                        "name": "LG화학"
                                    },
                                    {
                                        "type": "company",
                                        "name": "NAVER"
                                    },
                                    {
                                        "type": "company",
                                        "name": "SK하이닉스"
                                    },
                                    {
                                        "type": "company",
                                        "name": "삼성SDI"
                                    },
                                    {
                                        "type": "company",
                                        "name": "삼성전자"
                                    },
                                    {
                                        "type": "company",
                                        "name": "셀트리온"
                                    }
                                ],
                                "named_entities": [],
                                "tags": [],
                                "industry": {
                                    "label": "100",
                                    "name": "분류 제외, 기타",
                                    "score": 0.978
                                },
                                "polarity": null,
                                "customized_ml": null,
                                "patent": null,
                                "content_url": "http://www.fnnews.com/news/202008071613437663",
                                "image_urls": [],
                                "attachments": [],
                                "attributes": {},
                                "created_at": "2020-08-07T16:15:00.000000",
                                "updated_at": "2020-08-07T16:15:00.000000"
                            }
                        ],
                        "statistics": {
                            "doc_count": 70,
                            "securities": [
                                {
                                    "type": "company",
                                    "exchange": "KRX",
                                    "market": "KOSPI",
                                    "symbol": "051910",
                                    "name": "LG화학",
                                    "company_rid": "110111-2207995",
                                    "business_rid": "107-81-98139",
                                    "doc_count": 2
                                },
                                {
                                    "type": "company",
                                    "exchange": "KRX",
                                    "market": "KOSPI",
                                    "symbol": "039490",
                                    "name": "키움증권",
                                    "company_rid": "110111-1867948",
                                    "business_rid": "107-81-76756",
                                    "doc_count": 1
                                },
                                {
                                    "type": "company",
                                    "exchange": "KRX",
                                    "market": "KOSDAQ",
                                    "symbol": "267790",
                                    "name": "배럴",
                                    "company_rid": "110111-4256924",
                                    "business_rid": "105-87-39951",
                                    "doc_count": 1
                                }
                            ],
                            "industries": [
                                {
                                    "label": "B06",
                                    "name": "금속 광업",
                                    "min": 0.837,
                                    "max": 1.0,
                                    "mean": 0.97664,
                                    "stddev": 0.04943,
                                    "doc_count": 11
                                },
                                {
                                    "label": "C14",
                                    "name": "의복, 의복 액세서리 및 모피제품 제조업",
                                    "min": 0.528,
                                    "max": 0.835,
                                    "mean": 0.6815,
                                    "stddev": 0.1535,
                                    "doc_count": 2
                                },
...
                                {
                                    "label": "C24",
                                    "name": "1차 금속 제조업",
                                    "min": 0.336,
                                    "max": 0.336,
                                    "mean": 0.336,
                                    "stddev": 0.0,
                                    "doc_count": 1
                                }
                            ],
                            "polarities": [
                                {
                                    "label": "0",
                                    "name": "중립",
                                    "min": 0.985,
                                    "max": 0.99,
                                    "mean": 0.9875,
                                    "stddev": 0.0025,
                                    "doc_count": 2
                                },
                                {
                                    "label": "1",
                                    "name": "긍정",
                                    "min": 0.756,
                                    "max": 0.89,
                                    "mean": 0.823,
                                    "stddev": 0.067,
                                    "doc_count": 2
                                }
                            ]
                        }
...

```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
