API Documentation
← API overview

Diseases

2 endpoints · every section below is generated from the API catalog

GET/api/v1/diseases/:key/family-tree

Family Tree

Available on FreeFull reference →

Returns the ancestor and descendant branches of a disease in the disease hierarchy, up to the requested depth, along with counts and whether the root key resolved. Call it to explore parent/child relationships around a disease. Returns 400 for invalid query parameters, 503 when the disease hierarchy is unavailable on this deployment, and 500 on internal failure.

Rate limit: disease-family-tree · Free plan: 10/day

Parameters

ParameterTypeRequiredDescription
depthintegerNoRange 1-8; default 3 (range 1-8; default 3)
Range: 1 to 8
key(path)stringYes

Example request

curl -H "x-api-key: YOUR_API_KEY" \
  "https://app.caelrith.com/api/v1/diseases/{key}/family-tree"
GET/api/v1/diseases/autocomplete

Disease Autocomplete

Available on FreeFull reference →

Resolve a partial or full disease name to canonical disease entries carrying an ontology CURIE (efo_id, e.g. EFO:0003767). Returns up to 10 name/efo_id matches. Use this to convert a disease name into the exact CURIE expected by the disease_id / efo_id filters on trial search, regulatory approvals and Medicare drug spending, instead of guessing an ontology id.

Rate limit: diseaseAutocompleteApiCallsPerDay · Free plan: 10/day

Parameters

ParameterTypeRequiredDescription
qstringYesPartial or full disease name to autocomplete (e.g. 'breast cancer', 'sickle cell disease').

Example request

curl -H "x-api-key: YOUR_API_KEY" \
  "https://app.caelrith.com/api/v1/diseases/autocomplete?q=your_q"