> For the complete documentation index, see [llms.txt](https://doc.duaer.com/zh/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.duaer.com/zh/getting-started/kegg.md).

# 在 Duaer 里检索 KEGG

在 Duaer 里用 Duaer Data 经 KEGG 检索通路、疾病或化合物。一次成功查询 1 额度。本页含完整英文调用技能。
## 能拿到什么

Duaer 数据市场里的「KEGG」返回通路图、疾病或化合物条目。一次成功查询 1 额度。

从节点创建器的 [Duaer 数据分类](/zh/getting-started/duaer-data.md) 选「KEGG」，或打开 [数据市场](/zh/getting-started/data-market.md) 复制技能。Reactome 通路见 [通路](/zh/getting-started/pathways.md)。

## 在画布里检索

1. 打开节点创建器，点「Duaer 数据」，再选「KEGG」。
2. 填 Words（新节点默认 apoptosis），或 KEGG ID；Database 默认 Pathway。
3. Limit 默认 10，最大 20。点执行此步骤。

成功扣 1 额度。正式运行的交付进 [数据池](/zh/getting-started/data-pool.md)。

## 用 API 调用

- GET https://api.duaer.com/v1/data/kegg?...
- Authorization: Bearer <Duaer key>
- 必须提供 words 或 id。

密钥见 [Duaer 公开 API 的身份验证](/zh/api/authentication.md)。下方是与「复制技能」相同的英文技能。

## 调用技能（英文）

与数据市场「复制技能」一致。正文保持英文。

```
---
name: duaer-kegg
description: >-
  Search KEGG pathways, diseases, or compounds through Duaer.
  One successful search uses 1 Duaer credit.
---

# Duaer KEGG

Search KEGG pathways, diseases, or compounds through Duaer with a Duaer key.

## Call

`GET https://api.duaer.com/v1/data/kegg?words=apoptosis&db=pathway&limit=10`

Header: `Authorization: Bearer <Duaer key>`

Use an account key or a model API key.

Provide `words` or `id`.

- `words` — search text, such as apoptosis.
- `id` — optional. KEGG id such as map04210, H00409, or C01405.
- `db` — optional. pathway (default), disease, or compound. Used with words.
- `limit` — optional. From 1 to 20. Default 10.

## Result

Each item has `source`, `title`, `url`, `summary`, `keggId`, `name`, `database`, `description`, and `keggClass`.
Related pathways: https://skills.duaer.com/pathways.md.
Related diseases: https://skills.duaer.com/diseases.md.

## Credits

One successful search uses 1 credit.
An empty search, a failed search, a compound that matches nothing, or no remaining credits uses 0.
No remaining credits returns 402 and does not search.
A missing key returns 401.

```
## Questions

### 和 Pathways 有什么区别？

Pathways 走 Reactome；KEGG 是另一套通路/疾病/化合物目录，可用 Database 切换。

## 相关

- [在 Duaer 里检索通路](https://doc.duaer.com/zh/getting-started/pathways.md)
- [在 Duaer 里检索疾病](https://doc.duaer.com/zh/getting-started/diseases.md)
- [在 Duaer 里检索化合物和药物](https://doc.duaer.com/zh/getting-started/compounds.md)
- [在 Duaer 里使用数据市场](https://doc.duaer.com/zh/getting-started/data-market.md)

