ScienceBenchmarksDocsCatalogPricing
Sign inStart research
Back to catalog
Research tool·genomics·rxclass

RxClass Get Class Hierarchy

Traverse the drug-class hierarchy (ancestor chain / class tree) for a class ID in NLM RxClass via classGraph. Returns the ordered parent chain from a leaf class up to the classification root, with all nodes (classId, className, classType) and edges (child isa parent), plus a precomputed 'ancestor_path' from the requested class to the root. Default source is ATC. No API key required. Example: classId 'N02BA' ('Salicylic acid and derivatives') -> N02BA <- N02B ('OTHER ANALGESICS AND ANTIPYRETICS'…

AvailableCortexa

Overview

Traverse the drug-class hierarchy (ancestor chain / class tree) for a class ID in NLM RxClass via classGraph. Returns the ordered parent chain from a leaf class up to the classification root, with all nodes (classId, className, classType) and edges (child isa parent), plus a precomputed 'ancestor_path' from the requested class to the root. Default source is ATC. No API key required. Example: classId 'N02BA' ('Salicylic acid and derivatives') -> N02BA <- N02B ('OTHER ANALGESICS AND ANTIPYRETICS') <- N02 ('ANALGESICS') <- N ('NERVOUS SYSTEM') <- 0 ('Anatomical Therapeutic Chemical' root), 5 nodes / 4 edges.

Schema

JSON Schema the agent (or your API call) must match.

View JSON schemaExpandCollapse
JSON · 19 lines · 595 chars

Examples (1)

Default RxClass Get Class Hierarchy call

Public-safe example · rate-limited

JSON input · 3 lines · 25 chars
Expected response keys: success

Identifiers

Catalog ID
tu_RxClass_get_class_hierarchy
Tool name
RxClass_get_class_hierarchy
Added
2026-07-29 18:13Z
Tags
tooluniverse
Cortexa.

The agent for research teams. 1.8K+ research tools across scientific and professional fields, with sources attached to the claims they support.

Product

  • Cortexa for science
  • Research benchmark
  • Documentation
  • Integrations
  • Tool catalog
  • Security & privacy
  • Pricing

Get started

  • Start research
  • Sign in
  • Developer API
  • MCP server

Support

  • Help center
  • Contact us
  • Terms of Service
  • Privacy Policy

© 2026 Cortexa. All rights reserved.

TermsPrivacy·For research context only · Not medical, legal, or financial advice.