
Kegg Pathway
- 16 installs
- 869 repo stars
- Updated June 8, 2026
- beita6969/scienceclaw
kegg-pathway is a Claude skill that queries the KEGG REST API with curl for metabolic pathways, genes, compounds, drugs, and diseases.
About
kegg-pathway is a Claude skill that queries the KEGG REST API with curl for metabolic pathways, genes, compounds, drugs, and diseases. A developer uses it for pathway mapping, gene-to-pathway links, compound info, and cross-reference ID conversion directly from the command line. It matters because it documents the exact endpoints and enforces a strict rule against fabricating identifiers or results.
- Queries the KEGG REST API via curl for pathways, genes, compounds, drugs, and diseases
- Documents list, find, get, link, and conv endpoints with no authentication required
- Data-integrity rule: never fabricate database results, only use actual API responses
Kegg Pathway by the numbers
- 16 all-time installs (skills.sh)
- Ranked #1,318 of 2,065 Data Science & ML skills by installs in the Skillselion catalog
- Data as of Aug 2, 2026 (Skillselion catalog sync)
kegg-pathway capabilities & compatibility
Free; no authentication required for the KEGG REST API.
- Capabilities
- pathway mapping · gene mapping · id conversion · compound lookup
- Use cases
- data analysis · research
- Pricing
- Free
What kegg-pathway says it does
Query the KEGG REST API for metabolic pathways, genes, compounds, drugs, and diseases.
NOT for protein sequences (use UniProt), 3D structures (use PDB), or variant/SNP data (use NCBI).
NEVER fabricate database results from training data.
npx skills add https://github.com/beita6969/scienceclaw --skill kegg-pathwayAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 16 |
|---|---|
| repo stars | ★ 869 |
| Last updated | June 8, 2026 |
| Repository | beita6969/scienceclaw ↗ |
What it does
Query the KEGG REST API with curl for pathway mapping, gene-pathway links, compound info, and ID conversion.
Who is it for?
Command-line KEGG pathway mapping, gene-to-pathway links, compound info, and ID conversion.
Skip if: Protein sequences (use UniProt), 3D structures (use PDB), or variant/SNP data (use NCBI), per the docs.
When should I use this skill?
The user needs pathway mapping, gene-to-pathway links, compound info, or KEGG ID conversion.
What you get
- Pathway, gene, compound, and disease query results
- Cross-database ID conversions
- Downloaded pathway map images
By the numbers
- 5 documented endpoints (list, find, get, link, conv)
- 8 supported databases in the reference table
- 6 common organism codes documented
Files
KEGG Pathway Database REST API
Access the Kyoto Encyclopedia of Genes and Genomes (KEGG) for pathway maps, gene annotations, compound data, drug info, and disease records. No authentication required.
API Endpoints
Base: https://rest.kegg.jp
GET /list/{database} -- List all entries in a database
# List all human pathways
curl -s "https://rest.kegg.jp/list/pathway/hsa"
# List all KEGG organisms
curl -s "https://rest.kegg.jp/list/organism"GET /find/{database}/{query} -- Search by keyword
# Search pathways for "apoptosis"
curl -s "https://rest.kegg.jp/find/pathway/apoptosis"
# Search genes for BRCA1 across all organisms
curl -s "https://rest.kegg.jp/find/genes/brca1"
# Search compounds by name
curl -s "https://rest.kegg.jp/find/compound/glucose"
# Search diseases by keyword
curl -s "https://rest.kegg.jp/find/disease/diabetes"GET /get/{entry} -- Retrieve full entry details
# Get a pathway entry (human apoptosis pathway)
curl -s "https://rest.kegg.jp/get/hsa04210"
# Get a human gene entry
curl -s "https://rest.kegg.jp/get/hsa:7157"
# Get a compound entry (glucose)
curl -s "https://rest.kegg.jp/get/C00031"
# Get a KEGG Orthology entry
curl -s "https://rest.kegg.jp/get/K00001"
# Get pathway map as image
curl -s "https://rest.kegg.jp/get/hsa04210/image" -o apoptosis.pngGET /link/{target}/{source} -- Cross-reference between databases
# Find all genes in a pathway
curl -s "https://rest.kegg.jp/link/hsa/hsa04210"
# Find pathways associated with a gene
curl -s "https://rest.kegg.jp/link/pathway/hsa:7157"
# Find compounds in a pathway
curl -s "https://rest.kegg.jp/link/compound/hsa00010"
# Find diseases linked to a gene
curl -s "https://rest.kegg.jp/link/disease/hsa:672"
# Link KEGG Orthology to pathways
curl -s "https://rest.kegg.jp/link/pathway/ko:K00001"GET /conv/{target}/{source} -- Convert between ID systems
# Convert KEGG gene IDs to NCBI Gene IDs
curl -s "https://rest.kegg.jp/conv/ncbi-geneid/hsa:7157"
# Convert NCBI Gene IDs to KEGG
curl -s "https://rest.kegg.jp/conv/hsa/ncbi-geneid:7157"
# Convert KEGG compound to PubChem
curl -s "https://rest.kegg.jp/conv/pubchem/compound:C00031"
# Convert UniProt to KEGG gene IDs
curl -s "https://rest.kegg.jp/conv/hsa/uniprot:P04637"Supported Databases
| Database | Code | Description |
|---|---|---|
| Pathway | pathway | Metabolic and signaling pathway maps |
| Module | module | Functional units within pathways |
| KO | ko | KEGG Orthology (functional orthologs) |
| Genome | genome | Organism genomes |
| Genes | genes | Gene entries per organism (e.g., hsa) |
| Compound | compound | Small molecules and metabolites |
| Drug | drug | Drug and pharmaceutical entries |
| Disease | disease | Human disease entries |
Common Patterns
# Full workflow: find pathways for a gene, then get pathway details
curl -s "https://rest.kegg.jp/link/pathway/hsa:7157" # Step 1: find pathways
curl -s "https://rest.kegg.jp/get/hsa04115" # Step 2: get details
# Map between KEGG and external IDs for batch processing
curl -s "https://rest.kegg.jp/conv/ncbi-geneid/hsa"Organism Codes
Common codes: hsa (human), mmu (mouse), rno (rat), dme (fly), sce (yeast), eco (E. coli).
Best Practices
1. KEGG returns tab-separated plain text by default -- parse with cut, awk, or similar. 2. Use /link for mapping between databases and /conv for external ID conversion. 3. Prefix gene IDs with the organism code (e.g., hsa:7157 for human TP53). 4. Pathway IDs use organism prefix + number (e.g., hsa04210); use map04210 for reference. 5. No authentication is required, but KEGG limits heavy automated access -- keep requests reasonable. 6. Download pathway images with /get/{pathway_id}/image for visual reference. 7. Use /find for keyword search and /list to enumerate all entries in a database.
Data Integrity Rule
NEVER fabricate database results from training data. Every protein ID, gene name, compound property, pathway ID, structure detail, and metadata MUST come from an actual API response in this conversation. If the API returns no results, errors, or partial data, report exactly what happened. Do not "fill in" missing data from memory or make up identifiers.
Related skills
FAQ
Does the KEGG REST API need authentication?
No authentication is required, though KEGG limits heavy automated access so requests should be kept reasonable.
What must never be fabricated?
The data-integrity rule requires that every protein ID, gene name, compound property, and pathway ID come from an actual API response, never from training data.