You need to agree to share your contact information to access this dataset
This repository is publicly accessible, but you have to accept the conditions to access its files and content.
This dataset is a compilation of ClinicalTrials.gov data (a U.S. Government
database) by the dataset author. The compilation is licensed under
CC-BY-NC-4.0. As a condition of accessing these files, you agree to:
- Cite this dataset, and attribute the underlying data to ClinicalTrials.gov,
in any publication or derivative work. - Not use these files, or copies of them, for commercial purposes without a
separate commercial license from the author. Examples: ML training data
for commercial models, redistribution in a commercial product or service,
inclusion in databases offered for sale, or quantitative trading /
commercial market analysis.
These terms apply to this dataset only, not to data you obtain directly from
ClinicalTrials.gov. For commercial licensing, contact licensing@anamnesisdata.com
or visit https://anamnesisdata.com.
Log in or Sign Up to review the conditions and access this dataset content.
Clinical Trials Version History
The Clinical Trials Version History dataset by Anamnesis Data: structured medical and scientific data for biotech, pharma and healthcare research. Public trial registries show only a trial's latest state. This dataset keeps every version, so you can see what a trial said on any past date, or when a sponsor moved a completion date.
604,582 trials (4,444,543 versions), one folder of Parquet files per table (79 tables, 526,178,527 rows). Access is gated; request it above. A free sample of 20 complete trials has the same tables and columns.
Example queries
sample_queries.sql
in the sample holds ready-to-run DuckDB queries, from a trial's current record to serious adverse
event rates. They run unchanged against this dataset's
setup.sql,
which creates one view per table; on the full data, add a LIMIT to the row-level ones.
Quick start
Download the repository, then in DuckDB, from that folder:
.read setup.sql -- one view per table, named after its folder
-- the current record of every trial
SELECT nct_id, nct_version, overall_status, lead_sponsor_name
FROM core
QUALIFY row_number() OVER (PARTITION BY nct_id ORDER BY nct_version DESC) = 1;
Or read a table in place with a token from an account that has been granted access:
CREATE SECRET hf_token (TYPE huggingface, PROVIDER credential_chain); -- uses `hf auth login`
SELECT * FROM 'hf://datasets/anamnesis-data/clinical_trials_history/core/*.parquet' LIMIT 5;
from datasets import load_dataset
core = load_dataset("anamnesis-data/clinical_trials_history", "core", split="train")
What's inside
Each folder is one table. core has one row per trial version; interventions, conditions,
phases, arm_groups, locations and the results_* tables (participant flow, baseline,
outcomes, adverse events) hang off it. Tables with nct_version join to core on
(nct_id, nct_version); per-trial tables join on nct_id.
Things to know:
- Versions.
nct_versionis the source's own 0-based version number for a trial. - No "current" flag. The current record is a trial's highest
nct_version, as in the query above. It is the latest version held here, which can trail the live record. - Obsolete IDs. Every table ends with
is_obsoleteandobsolete_by, which flag registrations since merged into another (19 trials). Filter onNOT is_obsoleteto drop them. - Repeated entries. In lists keyed by name (for example
interventions,arm_groups,secondary_idsandoverall_officials), an entry that repeats another's name within one version is kept once, and entries missing that name are left out. - Raw text. Text is as collected, uncleaned. Many fields contain HTML-escaped characters
such as
&or'.
Releases
Each release is tagged vYYYY.MM.DD; pass it as revision= (or @vYYYY.MM.DD in an hf://
path) to pin one. A tag moves if the same day is republished; pin a commit hash for a fixed
snapshot. This release's newest change: 2026-09-25.
Repository move
Releases up to v2026.09.26 were published at brbk/clinical_trials_history; new releases are
published here only. Access approvals do not carry over, so request access again here.
Source and license
Trial records come from ClinicalTrials.gov, a U.S. Government
database operated by the National Library of Medicine at NIH; no proprietary rights are claimed in
them, and the site's terms apply to them.
We restructured the records into tables and a subset of fields; dates given only as a month or year
are set to its first day (a *_precision column, where present, keeps the original). Other values
are as returned.
The compilation (structure, schema, version history and documentation) is licensed CC BY-NC 4.0. Access is gated: you agree to cite this dataset and attribute the data to ClinicalTrials.gov, and not to use these files commercially without a separate license. These terms do not apply to data you obtain directly from ClinicalTrials.gov. For commercial licensing, contact licensing@anamnesisdata.com or visit anamnesisdata.com.
Citation
@misc{clinical_trials_history_2026,
title = {Clinical Trials Version History},
author = {{Anamnesis Data}},
year = {2026},
url = {https://huggingface.co/datasets/anamnesis-data/clinical_trials_history}
}
- Downloads last month
- 16