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


---

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