How to get ClinicalTrials.gov study records into pandas
Short answer
ClinicalTrials.gov publishes study registrations through a public API. The Trialtide dataset snapshots them into one "studies" table; load it and filter by condition, phase and overall status. It is registry data for research, not medical advice.
- pip install datasets
- Load the default config (studies).
- Filter by condition, phase and overall status.
- Check the snapshot date in the dataset card before citing numbers.
Copy-paste code
Data: CyberMax dataset on Hugging Face; load it with the datasets library (pip install datasets)
from datasets import load_dataset
ds = load_dataset("CyberMax-tools/trialtide-clinicaltrials-registry", "default", split="train")
df = ds.to_pandas()
print(len(df), "rows")
print(df.head())Good to know
General information only; not medical advice and not a substitute for ClinicalTrials.gov itself.
Swellmeter Trending API: Every Google trending search, all day, 30 countries
from $5Track what people search about a condition or drug as it trends: the Swellmeter API returns Google trending searches in 30 countries, $5 for 1,500 calls.
Secure checkout · 14-day fix-or-refund if it doesn't work as described (terms)Free: the Free API Starter Kit
Copy-paste calls for 4 APIs with free daily tiers (CVE priority, VIN recalls, US duty rates, email checks), then 5 short emails on KEV/EPSS, MCP and free data.