All API requests to KampoDB begin with
/api/. All responses are in the JSON format. The second field specifies the category, which is either
formula for kampo formula,
crude for crude drug,
protein. If a request has only two fields, IDs and names of all records in the category are returned.
Most API formats have four fields. The third field is for the ID of a record in the category. The fourth field specifies the output type, which is either
info for basic information,
formula for related kampo formulas,
crude for related crude drugs,
compound for related compounds,
protein for related proteins,
process for enriched/annotated GO biological processes,
function for enriched/annotated GO molecular functions,
pathway for enriched/annotated KEGG pathways,
disease for enriched/annotated KEGG diseases. In addition,
lbp for ligand-based prediction and
sbp for structure-based prediction can be used for compound and protein categories.
Please see the formats and example requests shown below.