跳到正文

医学公开数据库查询与登记

使用有明确接口的公开数据库查询方法保存请求、筛选、分页与来源,可用于医学文献、临床试验及药物资料检索。

开源精选医疗业务86 个文件50,135 Stars浏览次数 0K-Dense-AI/scientific-agent-skills MIT版本 a1043ef
开始使用

下载前阅读 SKILL.md 中的使用条件,并确认所用工具支持对应能力。

输入资料
指定数据库和查询问题 实际接口、筛选条件及使用范围 阅读本节完整说明
交付内容
可复查的查询资料 请求、分页与来源记录 阅读本节完整说明
  1. 获取完整包,保留配套文件的目录结构。
  2. 按照原文准备所需工具、依赖与输入资料。
  3. 阅读对应使用步骤与输入输出说明,在自己的环境中验证结果。

使用提示摘自原文,配套文件保留来源版本;实际运行条件以各包说明为准。

正文

获取原文件

references/kegg.md

Base URL

https://rest.kegg.jp

Auth

No API key required. Free for academic use. Commercial use requires license.

Important: KEGG returns tab-delimited text and flat-file format, NOT JSON.

Key Operations (URL-path-based, no query parameters)

URL Pattern Description
/list/{database} List all entries
/list/{database}/{organism} List entries for organism
/get/{dbentries} Get entry data (flat-file)
/get/{dbentries}/image Pathway image (PNG)
/get/{dbentries}/kgml Pathway as KGML XML
/find/{database}/{query} Search by keyword
/find/{database}/{query}/formula Search by molecular formula
/find/{database}/{value}/exact_mass Search by exact mass
/link/{target_db}/{source_db} Find linked entries between databases
/link/{target_db}/{dbentries} Links for specific IDs
/conv/{target_db}/{dbentries} Cross-reference ID conversion
/ddi/{dbentries} Drug-drug interactions

Database Codes

Code Database Example ID
pathway Pathways hsa00010
compound Compounds C00001
drug Drugs D00001
enzyme Enzymes ec:1.1.1.1
genes/hsa Genes hsa:10458
disease Diseases H00001
reaction Reactions R00001
ko KO orthologs K00001

Example Calls

# List human pathways
https://rest.kegg.jp/list/pathway/hsa

# Get pathway entry
https://rest.kegg.jp/get/hsa00010

# Search compounds by name
https://rest.kegg.jp/find/compound/aspirin

# Search by molecular formula
https://rest.kegg.jp/find/compound/C9H8O4/formula

# Find pathways for a gene
https://rest.kegg.jp/link/pathway/hsa:10458

# Find diseases for a gene
https://rest.kegg.jp/link/disease/hsa:672

# Convert KEGG to PubChem IDs
https://rest.kegg.jp/conv/pubchem/C00001

# Get multiple entries (max 10, joined with +)
https://rest.kegg.jp/get/C00001+C00002+C00003

# Drug-drug interactions
https://rest.kegg.jp/ddi/D00564+D00110

Response Format

Tab-delimited text for list/find/link/conv. Flat-file text for get. No JSON support.

Rate Limits

KEGG requests at most 3 calls per second; pace below that and honor failures. Batch up to 10 IDs per /get with +. May return HTTP 403 if too many requests.

KEGG conv/pubchem/... maps to PubChem Substance IDs (SIDs), not Compound IDs (CIDs). Resolve SID to CID through PubChem before joining compound properties. Official contract: https://www.kegg.jp/kegg/rest/keggapi.html

CONTACT HAONAN

联系haonan

医疗 AI · 产品与独立开发

刘浩南

关注医疗 AI 从 demo 到真实落地,聚焦产品化、商业化与院内工作流效率提升。

12年医疗产研经验,大湾区头部医疗AI公司前产品总监,独立开发者

医疗 AI 产品化医疗 AI 商业化院内工作流效率
刘浩南的微信联系二维码
微信扫一扫,联系 haonan