API Access
Access dataset files directly from scripts, code, or AI agents.
Browse dataset files
API Access
Access dataset files directly from scripts, code, or AI agents.
Each file has a stable URL (r-link) that you can use directly in scripts, apps, or AI agents. These URLs are permanent and safe to hardcode.
Start with these files — they give you everything you need to understand and access the dataset.
- 1. Fetch datapackage.json to inspect schema and resources
- 2. Download data resources listed in datapackage.json
- 3. Read README.md for full context
Data Files
nct00000102
Download
Download XMLAbout
- Last updated
- 9 February 2026
- Format
- XML
- File size
- 4.6 kB
- Source
- ClinicalTrials.gov
nct01101477
Download
Download XMLAbout
- Last updated
- 9 February 2026
- Format
- XML
- File size
- 30.4 kB
- Source
- ClinicalTrials.gov
About this dataset
Data and processing scripts for clinical trials information in http://ClinicalTrials.gov, a registry and results database of publicly and privately supported clinical studies of human participants conducted around the world.
Deposit in this database has been required since September 2007 for all "applicable clinical trials" as per FDAAA 801.
Getting the data
- Go to http://www.clinicaltrials.gov/
- Search (no query) to get all results
- Hit download and select all results
- Wait while 542 Mb zip file downloads
search_results.zip - unzip - you now have 2.3Gb of clinical trials xml
- Use the scripts - see below
Data Structure
It's XML. Here's the XSD: http://clinicaltrials.gov/ct2/html/images/info/public.xsd.
Sample records:
- data/NCT00000102.xml (without results)
- data/NCT01101477.xml (with results)
Data Stats
139848 XML files as of 2013-02-02.
As of Feb 1st 2013 only 8,044 trials included posted-results.
Scripts
Node.js script in extract.js - still under development.