/drugbank/categories

POST /api/drugbank/categories

Price: 10 credits

Get one DrugBank therapeutic category by its accession number. Returns the category name, its description, any accession numbers merged into it, its ATC classification codes, every drug DrugBank files under it with accession number, name and description, and the drug-target pairs the category page publishes for those drugs, each with the target's own bio-entity accession number.

How to use it

The way to turn a therapeutic class into drug ids in one call: `drugs` is the full membership list, not a first page, so a category with thousands of members returns all of them and the response can run to megabytes — `drug_count` from drugbank/categories/search tells you which before you call. `drug_targets` is the one place on this platform that exposes drug-target pairs at all; on an individual drug they are behind a paid account. Where the category page publishes the block the list is that table in full, one entry per published pair, and each entry carries the target's own `target_id` bio-entity accession, which is what separates two targets that share a display name. Read it against `target_count` from drugbank/categories/search: the two agree except for the odd row of drift, since the index count and the page table are refreshed independently, and where the page does not publish the block the list comes back empty against a non-zero `target_count` — so an empty list means the pairs were not published on that page rather than that the class has none. Category ids come from drugbank/categories/search or from the `categories` field of drugbank/drugs. Member rows carry only an id, a name and a description — the rest of each drug needs drugbank/drugs. `atc_classes` gives the WHO ATC codes from the broadest level down to the most specific, where DrugBank has mapped the category at all. DrugBank merges duplicate categories: `alternative_ids` lists the accession numbers folded into this one, and each of them resolves here to this same record.

Parameters

Request body

Response

Errors

Response headers