API Documentation
← API overview

Clinical Trial Registry

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

GET/api/v1/clinical-trials

Clinical Trial Registry Search

Available on FreeFull reference →

Paginated search over registry trial DOCUMENTS with full-text phrase search and field filters (all AND-combined). Returns rich per-trial records (title, status, phase, enrollment, dates, sponsors, conditions, interventions, targets, facilities). Use this for registry-level listings, full-text lookups and filter-only searches; use clinical.search-composite when you need aggregated graph counts or status breakdowns.

Rate limit: clinicalTrialsApiCallsPerDay · Free plan: 50/day

Parameters

ParameterTypeRequiredDescription
searchstringNoFull-text PHRASE match (English-analyzed) over title/summary text; single words or exact phrases only (no fuzzy matching). When present and sort is left at the default 'updated', sorting silently becomes relevance.
querystringNo
pagenumberNoPage number (default 1). (min 1; default 1)
Range: 1 to ∞
limitnumberNoResults per page (1-100, default 20). (range 1-100; default 20)
Range: 1 to 100
statusstring (comma-separated)No[comma-separated list] array parameter - sent as a single comma-separated string; value is parsed from the raw query string and coerced server-side
phasestring (comma-separated)No[comma-separated list] array parameter - sent as a single comma-separated string; value is parsed from the raw query string and coerced server-side
sponsorstringNoExact match against resolved sponsor names (no fuzzy matching).
sponsor_typestring (comma-separated)No[comma-separated list] array parameter - sent as a single comma-separated string; value is parsed from the raw query string and coerced server-side
mentionstringNo
sponsor_querystringNorepeatable; send one &sponsor_query= per line, do NOT comma-join (sponsor names contain commas); free-form value; value transformed server-side
trial_idsstring (comma-separated)No[comma-separated list] array parameter - sent as a single comma-separated string; value is parsed from the raw query string and coerced server-side
conditionstringNoExact match against resolved condition names (no fuzzy matching).
disease_idstringNoDisease CURIE with uppercase prefix (e.g. EFO:0003767, MONDO:0004992). Values without a colon are silently ignored by the server (filter dropped). Get CURIEs from the Disease Autocomplete tool.
enrollment_minnumberNoMinimum enrollment (inclusive).
enrollment_maxnumberNoMaximum enrollment (inclusive).
start_date_afterstringNoYYYY-MM-DD; matches trials with start_date >= this date.
completion_date_beforestringNoYYYY-MM-DD; matches trials with completion_date <= this date.
updated_sincestringNo
last_update_posted_afterstringNo
sortstringNoSort order (default updated). 'updated' returns only trials with an update timestamp; 'enrollment' only trials with non-null enrollment; 'relevance' is only meaningful together with search. (default updated)
Allowed values: updated, enrollment, relevance
orderstringNoSort direction (default desc); applies to updated/enrollment. (default desc)
Allowed values: asc, desc
sexstringNoEligible sex, e.g. ALL, FEMALE, MALE.
min_age_yearsnumberNoMinimum participant age in years.
max_age_yearsnumberNoMaximum participant age in years.
healthy_volunteersbooleanNoAccepts healthy volunteers (true/false).
design_allocationstringNoAllocation methodology pass-through (e.g. Randomized).
design_maskingstringNoMasking methodology pass-through (e.g. Double, Single).
design_primary_purposestringNoPrimary purpose pass-through (e.g. Treatment).
sponsor_trial_count_maxnumberNoOnly trials having some sponsor (resolved or raw) with a total trial count below this number - finds small/emerging sponsors.
pi_author_idstringNoOpenAlex author id for a principal investigator. Accepts A#######, openalex_A####### or the full https://openalex.org/... URL. Invalid ids return HTTP 400. Obtain a real id from the user or from the Trial Full Record endpoint's data.researchers[].author_key - there is no name-to-id resolution, so never invent one.
pi_match_tagstringNoRestrict PI links by resolution confidence: verified = institution gate passed (safe), shortcut = name-only match (provisional), llm = LLM-arbiter accepted. Only meaningful together with pi_author_id; on its own it does NOT filter (the full corpus total is returned).
Allowed values: verified, shortcut, llm

Example request

curl -H "x-api-key: YOUR_API_KEY" \
  "https://app.caelrith.com/api/v1/clinical-trials"
GET/api/v1/clinical-trials/:trialId

Trial Full Record

Available on FreeFull reference →

Retrieve one complete registry trial document by its registry id, including ALL update_logs, eligibility criteria, officials, contacts, facilities, resolved entities, and the resolved PI -> OpenAlex researcher links in data.researchers (each row has author_key, name, match_tag, h_index; author_key is directly usable as pi_author_id in the registry search). For a graph-enriched lookup by NCT id you can also use clinical.trial-details. List and sample responses never include researcher links - this endpoint is how you close the trial -> its PI -> that PI's other trials chain. If data.researchers is empty, this trial's PI is not resolved yet: report the gap or use another trial / a user-supplied id; do not fetch more trials hunting for an id.

Rate limit: clinicalTrialsApiCallsPerDay · Free plan: 50/day

Parameters

ParameterTypeRequiredDescription
trialId(path)stringYesTrial registry identifier, e.g. NCT05679999 or an EU CT number like 2025-521742-15-00.

Example request

curl -H "x-api-key: YOUR_API_KEY" \
  "https://app.caelrith.com/api/v1/clinical-trials/{trialId}"
GET/api/v1/clinical-trials/sample

Trial Registry Sample

Available on FreeFull reference →

Return up to 5 recently updated trial documents from the registry. Cheap way to inspect the real document shape or to fetch exact OpenAlex topic-name strings to reuse with the topic search. Available on all workspace tiers. Researcher (OpenAlex PI) links are NOT included here - use Trial Full Record on one of the returned trial ids to get a trial's resolved PI author_key.

Rate limit: clinicalTrialsApiCallsPerDay · Free plan: 50/day

Parameters

ParameterTypeRequiredDescription
limitnumberNoNumber of trials to return (1-5, default 1). (range 1-5; default 1)
Range: 1 to 5

Example request

curl -H "x-api-key: YOUR_API_KEY" \
  "https://app.caelrith.com/api/v1/clinical-trials/sample"
GET/api/v1/clinical-trials/topics

Clinical Trials by Topic

Available on FreeFull reference →

Search trials by OpenAlex topic name (exact PHRASE match over openalex_topics[].topic_name; relevance-sorted by default). Accepts every optional filter from the registry search. Get exact topic_name strings from the sample endpoint or from trial documents - fuzzy strings will not match.

Rate limit: clinicalTrialsApiCallsPerDay · Free plan: 50/day

Parameters

ParameterTypeRequiredDescription
searchstringNoAdditional full-text PHRASE match over title/summary text (same semantics as the registry search).
querystringNo
pagenumberNoPage number (default 1). (min 1; default 1)
Range: 1 to ∞
limitnumberNoResults per page (1-100, default 20). (range 1-100; default 20)
Range: 1 to 100
statusstring (comma-separated)No[comma-separated list] array parameter - sent as a single comma-separated string; value is parsed from the raw query string and coerced server-side
phasestring (comma-separated)No[comma-separated list] array parameter - sent as a single comma-separated string; value is parsed from the raw query string and coerced server-side
sponsorstringNoExact match against resolved sponsor names (no fuzzy matching).
sponsor_typestring (comma-separated)No[comma-separated list] array parameter - sent as a single comma-separated string; value is parsed from the raw query string and coerced server-side
mentionstringNo
sponsor_querystringNorepeatable; send one &sponsor_query= per line, do NOT comma-join (sponsor names contain commas); free-form value; value transformed server-side
trial_idsstring (comma-separated)No[comma-separated list] array parameter - sent as a single comma-separated string; value is parsed from the raw query string and coerced server-side
conditionstringNoExact match against resolved condition names (no fuzzy matching).
disease_idstringNoDisease CURIE with uppercase prefix (e.g. EFO:0003767, MONDO:0004992). Values without a colon are silently ignored by the server (filter dropped). Get CURIEs from the Disease Autocomplete tool.
enrollment_minnumberNoMinimum enrollment (inclusive).
enrollment_maxnumberNoMaximum enrollment (inclusive).
start_date_afterstringNoYYYY-MM-DD; matches trials with start_date >= this date.
completion_date_beforestringNoYYYY-MM-DD; matches trials with completion_date <= this date.
updated_sincestringNo
last_update_posted_afterstringNo
sortstringNoSort order (server default for topic search: relevance). 'updated' returns only trials with an update timestamp; 'enrollment' only trials with non-null enrollment. (default updated)
Allowed values: updated, enrollment, relevance
orderstringNoSort direction (default desc); applies to updated/enrollment. (default desc)
Allowed values: asc, desc
sexstringNoEligible sex, e.g. ALL, FEMALE, MALE.
min_age_yearsnumberNoMinimum participant age in years.
max_age_yearsnumberNoMaximum participant age in years.
healthy_volunteersbooleanNoAccepts healthy volunteers (true/false).
design_allocationstringNoAllocation methodology pass-through (e.g. Randomized).
design_maskingstringNoMasking methodology pass-through (e.g. Double, Single).
design_primary_purposestringNoPrimary purpose pass-through (e.g. Treatment).
sponsor_trial_count_maxnumberNoOnly trials having some sponsor (resolved or raw) with a total trial count below this number - finds small/emerging sponsors.
pi_author_idstringNoOpenAlex author id for a principal investigator. Accepts A#######, openalex_A####### or the full https://openalex.org/... URL. Invalid ids return HTTP 400. Obtain a real id from the user or from the Trial Full Record endpoint's data.researchers[].author_key - there is no name-to-id resolution, so never invent one.
pi_match_tagstringNoRestrict PI links by resolution confidence: verified = institution gate passed (safe), shortcut = name-only match (provisional), llm = LLM-arbiter accepted. Only meaningful together with pi_author_id; on its own it does NOT filter (the full corpus total is returned).
Allowed values: verified, shortcut, llm
topicstringYesOpenAlex topic name, phrase-matched exactly (e.g. 'CAR-T cell therapy research'). Prefer exact topic_name strings seen in trial documents.

Example request

curl -H "x-api-key: YOUR_API_KEY" \
  "https://app.caelrith.com/api/v1/clinical-trials/topics?topic=your_topic"