> 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/topic/insight.md).

# Insight

```
GET {DEEPSEARCH_API_URL}/v1/topic-insight/insight?type={type}&section={section}&topicId={topic_id}&stream={stream}
```

#### Parameter:

`type` : 토픽 type. One of  `trending` or `historical`

`section`: 토픽 섹션. One of:

* top
* economy
* world
* tech
* entertainment
* politics
* society
* culture
* sports

`topic_id`: 토픽 ID

`stream`: client에서 결과 stream 여부

**Examples**

```
/v1/topic-insight/insight?type=trending&section=top&topicId=150973073&stream=false
```

{% code fullWidth="true" %}

```
/v1/topic-insight/insight?type=historical&section=top&topicId=1313406091740188672&stream=true
```

{% endcode %}

#### Response

* `stream=True` response

<pre><code><strong>data: 이번에는 마약류와 향정신성의약품 처방 시 환자의 투약내역 확인이 의무화된다는 소식입니다. 
</strong><strong>
</strong><strong>data: 이전에는 의사의 재량으로 확인하도록 되어 있었으나, 이제부터는 의무적으로 확인해야 합니다. 단, 긴급한 사유가 있거나 오남용 우려가 없는 경우는 예외로 두었습니다. 이러한 개정안은 마약류 오남용을 예방하는 데 큰 역할을 할 것으로 기대됩니다. 이와 함께 동물성 식품까지 수입위생평가를 확대한다는 내용도 전해졌습니다. 이번 개정안으로 인해 보다 안전하고 건강한 의료환경이 조성될 것으로 기대됩니다.
</strong>...
...

data: [DONE]

</code></pre>

* `stream=False`

```
{
    "success": true,
    "data": "이번에는 마약류와 향정신성의약품 처방 시 환자의 투약내역 확인이 의무화된다는 소식입니다. 이전에는 의사의 재량으로 확인하도록 되어 있었으나, 이제부터는 의무적으로 확인해야 합니다. 단, 긴급한 사유가 있거나 오남용 우려가 없는 경우는 예외로 두었습니다. 이러한 개정안은 마약류 오남용을 예방하는 데 큰 역할을 할 것으로 기대됩니다. 이와 함께 동물성 식품까지 수입위생평가를 확대한다는 내용도 전해졌습니다. 이번 개정안으로 인해 보다 안전하고 건강한 의료환경이 조성될 것으로 기대됩니다."
}
```
