ClinicalTrials.gov Scraper – Studies API
Pricing
from $3.00 / 1,000 studies
ClinicalTrials.gov Scraper – Studies API
Search ClinicalTrials.gov studies by keyword, condition, intervention, sponsor, location, status and phase, or look up NCT ids. Get title, status, phases, conditions, interventions, sponsor, enrollment, key dates, sites and summary per study. Export JSON, CSV or Excel. Unofficial.
What does ClinicalTrials.gov Scraper – Studies API do?
ClinicalTrials.gov Scraper searches the US registry of clinical studies and returns each study as one flat row: title, recruitment status, phases, conditions, interventions, sponsor, enrollment, start and completion dates, sites and summary, ready to export or call by API.
Unofficial, not affiliated with ClinicalTrials.gov.
Main features: up to 100,000 studies per run, no login needed, export to JSON, CSV or Excel, and full API and scheduling support on Apify.
What data can you get from ClinicalTrials.gov?
Each study is one row with these fields:
| Field | Description |
|---|---|
nctId | ClinicalTrials.gov study id (e.g. NCT04882293) (always filled) |
url | Study page on clinicaltrials.gov (always filled) |
briefTitle | Short study title (always filled) |
overallStatus | Recruitment status (e.g. RECRUITING, COMPLETED, TERMINATED) |
phases | Trial phases (e.g. PHASE2, PHASE3); NA for studies where phases don't apply; empty for observational studies |
studyType | INTERVENTIONAL, OBSERVATIONAL or EXPANDED_ACCESS |
conditions | Conditions or diseases studied |
interventions | Treatments studied: [{ type, name }], e.g. { type: DRUG, name: Metformin } |
leadSponsor | Lead sponsor organisation (empty when the sponsor is an individual) |
leadSponsorClass | Lead sponsor type: INDUSTRY, NIH, FED, OTHER_GOV, NETWORK, OTHER, INDIV, … |
collaborators | Collaborating organisations |
enrollment | Number of participants |
enrollmentType | Whether enrollment is ACTUAL or ESTIMATED |
startDate | Study start (YYYY-MM-DD or YYYY-MM, as registered) |
primaryCompletionDate | Primary completion (YYYY-MM-DD or YYYY-MM) |
completionDate | Study completion (YYYY-MM-DD or YYYY-MM) |
locations | Study sites: [{ facility, city, state, country }] |
briefSummary | Brief summary of the study |
officialTitle | Full protocol title |
acronym | Study acronym (e.g. SUSTAIN-6) |
keywords | Keywords the sponsor registered |
hasResults | Whether results are posted on ClinicalTrials.gov |
firstPostedAt | When the study was first posted (YYYY-MM-DD) |
lastUpdatedAt | When the record was last updated (YYYY-MM-DD) |
scrapedAt | When the study was collected (ISO 8601) |
How to scrape ClinicalTrials.gov with ClinicalTrials.gov Scraper – Studies API
- Open ClinicalTrials.gov Scraper – Studies API on Apify and go to the Input tab.
- In Search terms, enter
diabetes. - In Max studies, enter
20. - Click Start and wait for the run to finish. A small run like this one takes under a minute.
- Open the Output tab to see the results, or download them as JSON, CSV, Excel or HTML.
Input
See the Input tab for every option. The fields:
| Field | Name | What it does | Default |
|---|---|---|---|
query | Search terms | Words to find anywhere in a study, as on ClinicalTrials.gov's "Other terms" box, e.g. diabetes, GLP-1, NCT04882293 or pembrolizumab AND melanoma. | |
condition | Condition or disease | Only studies of this condition or disease, e.g. type 2 diabetes, breast cancer, long covid. Synonyms are matched too. | |
intervention | Intervention or treatment | Only studies of this drug, device, procedure or other treatment, e.g. metformin, semaglutide, CAR-T. | |
sponsor | Sponsor or collaborator | Only studies whose lead sponsor or a collaborator matches, e.g. Novo Nordisk, Pfizer, National Cancer Institute. | |
location | Location | Only studies with a site matching this place: a country, state, city or facility name, e.g. Germany, Texas, Boston or Mayo Clinic. | |
status | Recruitment status | Any of: recruiting, not yet recruiting, enrolling by invitation, active not recruiting, completed, suspended, terminated, withdrawn, unknown. | |
phases | Phases | Any of: early phase 1, phase 1, phase 2, phase 3, phase 4, not applicable. | |
sortBy | Sort by | Order of the results. With a sort by date, a run with Max studies set to 100 gets the 100 newest. Options: relevance (Relevance), lastUpdated (Last updated (newest first)), firstPosted (First posted (newest first)), startDate (Start date (latest first)). | "relevance" |
nctIds | NCT ids | NCT ids or study links, e.g. NCT04882293. | |
maxItems | Max studies | Maximum number of studies in total, across the search and the id list. You pay only for studies saved. | 100 |
Example input:
{"query": "diabetes","maxItems": 20}
Output
You can download the dataset in various formats such as JSON, HTML, CSV, or Excel. One real result:
{"nctId": "NCT07703371","url": "https://clinicaltrials.gov/study/NCT07703371","briefTitle": "Kodo Millet Porridge and Its Effects on Gut Health and Metabolic Syndrome","overallStatus": "RECRUITING","phases": ["NA"],"studyType": "INTERVENTIONAL","conditions": ["Obesity & Overweight","Metabolic Syndrome","Gut Dysbiosis","Insulin Resistance","Dyslipidemia"],"interventions": [{"type": "DIETARY_SUPPLEMENT","name": "Kodo Millet Porridge Beverage"}],"leadSponsor": "JSS MEDICAL COLLEGE, JSS ACADEMY OF HIGHER EDUCATION AND RESEARCH","leadSponsorClass": "OTHER","collaborators": [],"enrollment": 50,"enrollmentType": "ESTIMATED","startDate": "2026-06-01","primaryCompletionDate": "2026-10-16","completionDate": "2026-11-16","locations": [{"facility": "JSS Medical College, JSS Academy of Higher Education & Research(JSSAHER).","city": "Mysore","state": "Karnataka","country": "India"}],"briefSummary": "Dietary fiber are components in foods that are not digested by human gastrointestinal enzymes (alpha amylase and alpha glucosidase) but are instead broken down and fermented by gut microbes. The byproducts generated during fermentation in the large intestine, primarily short-chain fatty acids (SCFA), bile acids, indoles, and their derivatives, circulate through the circulatory system to the liver, lungs, brain, adipose tissue, and muscles, where they modulate metabolism (suppress lipogenesis and alleviate insulin resistance) and immune function. Individuals who are overweight or obese frequently exhibit gut dysbiosis, characterized by lower SCFA producing commensals. This condition predisposes them to metabolic disorders such as insulin resistance, dyslipidemia, and hypertension, and contributes to conditions including type 2 diabetes, cardiovascular disease, and metabolic dysfunction-associated steatotic liver disease. Preclinical and clinical research have demonstrated that the consumption of fiber-rich foods maintains or restores gut microbiota health and diminishes the risk of metabolic disorders. Kodo millet (Paspalum scrobiculatum), a small millet, is rich in dietary fiber and we have developed a palatable kodo millet porridge beverage enriched with polyphenols and dietary fiber. The purpose of this study is to examine the effects of consuming Kodo millet porridge beverage as a nutritional supplement for 3 months, on gut microbiome richness (composition and diversity) and metabolic health in overweight or obese people.","officialTitle": "Impact of Dietary Fiber-Rich Kodo Millet Porridge Supplementation on Gut Microbiome and Metabolic Syndrome","acronym": "KMGMS","keywords": ["Kodo Millet","Dietary Fiber","Gut Microbiome","Short-Chain Fatty Acids","16S rRNA Sequencing","Metabolic Syndrome","Obesity","Gut Dysbiosis","Dyslipidemia","Glycemia","Prebiotic","Small Millet","Porridge","Antioxidant","Inflammation"],"hasResults": false,"firstPostedAt": "2026-07-14","lastUpdatedAt": "2026-07-14","scrapedAt": "2026-10-08T22:16:41.194Z"}
How much does it cost to scrape ClinicalTrials.gov?
ClinicalTrials.gov Scraper – Studies API uses pay-per-event pricing: $3.00 per 1,000 studies (Study). You pay only for studies saved to the dataset; platform usage is included in the price. Each run also has Apify's standard start fee of a fraction of a cent.
| Studies | Price |
|---|---|
| 100 | $0.30 |
| 1,000 | $3.00 |
| 10,000 | $30.00 |
Set Max items (and the run's maximum cost in the run options) to cap what a run can spend. The run stops when either limit is reached.
Use cases
- Pharma and biotech intelligence: track a competitor's or a drug class's trials by sponsor or intervention, and see phases, status and dates change over time.
- Site and patient recruitment: list recruiting studies for a condition in a country or city, with their sites.
- Investment research: follow pipelines by phase and completion date ahead of readouts.
- Medical and academic research: build datasets of studies for a disease, e.g. every completed phase 3 diabetes trial.
- Monitoring: schedule a daily run sorted by last updated and send changes to Google Sheets, Slack or email.
Tips
- Combine fields to narrow a search: condition breast cancer, intervention pembrolizumab, status recruiting, location Germany.
- Search terms take ClinicalTrials.gov's own syntax too: AND, OR, NOT, quotes for phrases.
- Sort by last updated to get the newest changes first; with a daily schedule, a small Max studies is enough.
- Dates are as the sponsor registered them: some studies give only a month (YYYY-MM).
- NCT ids are looked up directly, in any order; ids that don't exist are skipped.
FAQ
Is it legal to scrape ClinicalTrials.gov?
ClinicalTrials.gov Scraper – Studies API collects only data that ClinicalTrials.gov shows publicly to every visitor, and it leaves out personal data such as private profiles and contact details. Our Actors are ethical and do not extract private user data. Results could still contain personal data in titles or descriptions written by uploaders. Personal data is protected by the GDPR in the European Union and by other regulations around the world. You should not scrape personal data unless you have a legitimate reason to do so. If you're unsure whether your reason is legitimate, consult your lawyers. You are responsible for how you use the data.
Can I use it through an API?
Yes. Every Apify Actor has an API: start runs, pass input and read results over HTTP, or use the JavaScript and Python clients. See the API tab on the Actor page for ready-made examples.
Can I schedule runs and connect other apps?
Yes. Use Apify Schedules to run ClinicalTrials.gov Scraper – Studies API every hour, day or week, and integrations (Make, Zapier, Google Sheets, webhooks and more) to send the results where you need them.
Why did I get fewer results than expected?
The run stops at Max items or at the run's maximum cost, whichever comes first. ClinicalTrials.gov may also return fewer results for rare search terms. Duplicates across search terms are saved once. Check the run's RUN_SUMMARY record in the key-value store for the inputs that returned nothing.
What if it stops working?
Sites change. We run a daily check of our own and fix breakages quickly. If something looks wrong, open an issue in the Issues tab with the run link and we'll look at it.
Does it include results or eligibility criteria?
No. Each study row has whether results are posted (hasResults) and a link to the study page, where the full record, eligibility criteria and posted results are.
Why are some sponsors empty?
When the lead sponsor or a collaborator is registered as an individual, the name is left out, so every row names organisations only.
How many studies can one run get?
All of a search: a search for diabetes returns about 35,000 studies. Set Max studies to the number you need; you pay only for studies saved.
Is the data free to reuse?
ClinicalTrials.gov is a US National Library of Medicine service, and its records are public. Check its terms for how to cite it.
Not included
No personal data: no contact names, emails or phone numbers, no investigators, and no sponsor or collaborator registered as an individual. Sites are listed by facility and place only. Eligibility criteria, outcome measures and posted results are not included; each study links to its full record.
More Actors from us
- AliExpress Search Scraper – Products & Prices
- BBB Scraper – Business Ratings & Accreditation
- Bilibili Scraper – Video Search & Stats API
- Bumeran Jobs Scraper – LATAM Job Listings
- Foundit Jobs Scraper – India Job Listings API
- Google Jobs Scraper – Job Listings API
- Google Play Reviews Scraper – App Reviews API
- Google Trends Scraper – Interest & Related Queries
- Idealo Scraper – Price Comparison Data
- Kleinanzeigen Scraper – Listings & Prices
- Mercari Japan Scraper – Listings & Prices API
- Resident Advisor Scraper – RA Event Listings
- Sainsbury's Scraper – UK Grocery Prices
- Tokopedia Scraper – Product Search & Prices
- Workday Jobs Scraper – Any Careers Site
- Yandex Maps Scraper – Places & Business Data