跳到正文

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

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

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

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

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

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

正文

获取原文件

references/chembl.md

Base URL

https://www.ebi.ac.uk/chembl/api/data

Auth

No API key required. Fully open and free.

Key Endpoints

Endpoint Description
/molecule/{chembl_id} Get molecule by ChEMBL ID
/molecule/search?q={query} Free-text molecule search
/target/{chembl_id} Get target by ChEMBL ID
/target/search?q={query} Free-text target search
/activity?molecule_chembl_id={id} Activities for a molecule
/activity?target_chembl_id={id} Activities for a target
/mechanism?molecule_chembl_id={id} Mechanism of action
/drug_indication?molecule_chembl_id={id} Drug indications
/similarity/{smiles}/{threshold} Similarity search (threshold 40-100)
/substructure/{smiles} Substructure search

Common Parameters

  • format=json or .json — request JSON explicitly; do not assume the default negotiated format
  • limit — results per page (default 20, max 1000)
  • offset — pagination offset
  • order_by — sort field (prefix - for descending)
  • only — return only specified fields (comma-separated)

Filtering operators (append to field names)

__exact, __icontains, __gt, __gte, __lt, __lte, __in, __isnull, __startswith, __range, __regex

Example Calls

# Get molecule by ID
/molecule/CHEMBL25.json

# Search molecules by name
/molecule/search?q=aspirin&format=json

# Activities for a target with potency filter
/activity?target_chembl_id=CHEMBL240&pchembl_value__gte=6&format=json&limit=100

# Similarity search (80% threshold)
/similarity/CC(%3DO)Oc1ccccc1C(%3DO)O/80.json

# Approved drugs only
/molecule?max_phase=4&format=json

# Mechanism of action
/mechanism?molecule_chembl_id=CHEMBL25&format=json

Response Format (molecule collection)

{
  "page_meta": {"limit": 20, "offset": 0, "total_count": 150},
  "molecules": [{
    "molecule_chembl_id": "CHEMBL25",
    "pref_name": "ASPIRIN",
    "max_phase": 4,
    "molecule_properties": {
      "full_mwt": 180.16, "full_molformula": "C9H8O4",
      "alogp": 1.31, "hba": 3, "hbd": 1, "psa": 63.60
    },
    "molecule_structures": {
      "canonical_smiles": "CC(=O)Oc1ccccc1C(=O)O",
      "standard_inchi_key": "BSYNRYMUTXBXSQ-UHFFFAOYSA-N"
    }
  }]
}

Rate Limits

No strict limit. Keep under ~10 req/sec. No auth required.

Single /molecule/{id}.json returns the molecule object directly, while list/search responses include page_meta and molecules. Follow page_meta.next. Molecular weights can be numeric strings; retain activity units, relation qualifiers and assay type rather than treating every reported value as comparable binding affinity.

CONTACT HAONAN

联系haonan

医疗 AI · 产品与独立开发

刘浩南

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

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

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