kegg3 logo  KEGG WebLinks

This is an introductory document for retrieving html files from and creating links to KEGG at https://www.kegg.jp/ or https://www.genome.jp/kegg/.

[ Top | KEGG API | KEGG WebLinks | KEGG Database Entry Format ]

General form

REST-style URL
https://www.kegg.jp/<operation>/<argument>

<operation> = entry | pathway | brite | module | network | genome New!
Database name
<database> = KEGG databases (Table 1) and KEGG databases in Japanese (Table 2)

           = pathway | brite | module | ko | <org> | vg | vp | ag | genome | compound |
             glycan | reaction | rclass | enzyme | network | variant | disease |
             drug | dgroup | <medicus>

<org> = Three or four-letter KEGG organism code

<medicus> = disease_ja | drug_ja | dgroup_ja | compound_ja
Database entry identifier
<keggid> = <prefix><number> | <database>:<entry>

<prefix> = Database dependent prefix shown in Table 1
<number> = Five-digit number
<entry> = Entry name or accession number

<keggids> = <keggid>1[+<keggid>2...]
(Note) www.kegg.jp may be replaced by www.genome.jp to access the GenomeNet mirror site.

KEGG ID naming conventions

KEGG is an integrated database consisting of sixteen databases shown in Table 1. Each entry is uniquely identified by the KEGG identifier (KEGG ID), which takes the form of <database>:<entry>. In most cases <database> may be omitted, because <entry> takes the form of a database-dependent prefix followed by a five-digit number.

Table 1. KEGG databases

DB name Prefix KEGG ID Content Web page

pathway map, <org>
ko, ec, rn
<map number> KEGG pathway maps KEGG PATHWAY
brite br, jp
ko, <org>
<br number> BRITE functional hierarchies KEGG BRITE
module M, <org>_M <M number> KEGG modules KEGG MODULE
ko K <K number> KO functional orthologs KEGG ORTHOLOGY
genes <org>:<gene>
vg:<gene>
vp:<gene-no>
ag:<protein>
Genes in KEGG organisms
Genes in viruses category
Mature peptides in viruses
Genes in addendum category
KEGG GENES
genome T <T number>, gn:<org>
gn:<vtax>
KEGG organisms KEGG GENOME
compound C <C number> Small molecules KEGG COMPOUND
glycan G <G number> Glycans KEGG GLYCAN
reaction R <R number> Biochemical reactions KEGG REACTION
rclass RC <RC number> Reaction class
enzyme ec:<ecnum> Enzyme nomenclature KEGG ENZYME
network nt
N
<ne number>
<N number>
Network variation maps
Network elements
KEGG NETWORK
variant hsa_var:<gene_vno> Human gene variants
disease H <H number> Human diseases KEGG DISEASE
drug D <D number> Drugs KEGG DRUG
dgroup DG <DG number> Drug groups
<org>
<gene>
<gene-no>
<protein>
three- or four-letter KEGG organism code
NCBI gene ID or locus_tag
Gene ID followed by peptide number
NCBI protein ID
<vtax>
<ecnum>
<gene-vno>
NCBI virus taxonomy ID
EC number
Gene ID followed by variant number

Table 2 shows Japanese version of selected KEGG databases.

Table 2. KEGG databases in Japanese

DB name KEGG ID Web page

disease_ja ds_ja:<H number> KEGG DISEASE (in Japanese)
drug_ja dr_ja:<D number> KEGG DRUG (in Japanese)
dgroup_ja dg_ja:<DG number>
compound_ja cpd_ja:<C number>


REST-style URL

ENTRY

Name
entry – retrieve database entries
URL form
https://www.kegg.jp/entry/<keggids>

<keggids> = KEGG IDs of the following <database>
<database> = pathway | brite | module | ko | <org> | vg | ag | genome | compound |
             glycan | reaction | rclass | enzyme | network | variant | disease |
             drug | dgroup | <medicus>
Description
This URL returns the KEGG database entry page(s). It is equivalent to:
    https://www.kegg.jp/dbget-bin/www_bget?<keggids>
<keggids> may contain up to 10 entries.
Examples See also
KEGG API get operation for obtaining database entries in flat-file text format.


PATHWAY

Name
pathway - display pathway map with optional marking of objects
URL form
https://www.kegg.jp/pathway/<mapid>[+<map_objects>]

<mapid> = KEGG pathway map identifier (map number)
<map_objects> = <keggid>1[+<keggid>2...]
Description
This URL returns the KEGG pathway map page. It is equivalent to:
    https://www.kegg.jp/kegg-bin/show_pathway?<mapid>[+<map_objects>]
Examples See also
Search tool in KEGG Mapper for more details of map objects that can be specified.


BRITE

Name
brite - display brite hierarchy with optional marking of objects
URL form
https://www.kegg.jp/brite/<brid>[+<br_objects>]

<brid> = KEGG brite hierarchy identifier (br number)
<br_objects> = <keggid>1[+<keggid>2...]
Description
This URL returns the KEGG BRITE hierarchy page. It is equivalent to:
    https://www.kegg.jp/kegg-bin/show_brite?<brid>[+<br_objects>]
Examples See also
Search tool in KEGG Mapper for more details of map objects that can be specified.


MODULE

URL form
module - display module diagram with optional marking of objects
URL form
https://www.kegg.jp/kegg-bin/show_module?<modid>[+<mod_objects>]

<modid> = KEGG module identifier (M number)
<mod_objects> = <keggid>1[+<keggid>2...]
Description
This URL returns the KEGG module page. It is equivalent to:
    https://www.kegg.jp/kegg-bin/show_module?<modid>[+<mod_objects>]
Examples See also
Search tool in KEGG Mapper for more details of map objects that can be specified.


NETWORK

URL form
network - display network variation map with optional marking of objects
URL form
https://www.kegg.jp/network/<ntid>[+<nt_objects>]

<ntid> = KEGG network variation map identifier (nt number)
<nt_objects> = <keggid>1[+<keggid>2...]
Description
This URL returns the KEGG network variation map page. It is equivalent to:
    https://www.kegg.jp/kegg-bin/show_network?<ntid>[+<nt_objects>]
Examples See also
Search tool in KEGG Mapper for more details of map objects that can be specified.


GENOME

Name
genome - launch KEGG genome browser with optional gene specification
URL form
https://www.kegg.jp/genome/<gnid>[+<gene>]

<gnid> = KEGG genome identifier (T number or KEGG organism code)
<gene> = Gene entry identifier
Description
This URL returns the KEGG GENOME browser page. It is equivalent to:
    https://www.kegg.jp/kegg-bin/show_genome?<gnid>[+<gene>]
Examples


Last updated: September 23, 2022