ClinicalTrials.gov Scraper – Trials, Phases & Sponsors
Pricing
from $2.00 / 1,000 result rows
ClinicalTrials.gov Scraper – Trials, Phases & Sponsors
Scrape ClinicalTrials.gov trials by keyword. Export NCT ID, title, status, phase, conditions, sponsor, enrollment and dates. Official ClinicalTrials.gov API v2 - no key, no browser. For pharma researchers, CROs and medical writers.
ClinicalTrials.gov Scraper – Trial Records, Phases & Sponsors
Every registered clinical trial matching your keyword, straight from the official ClinicalTrials.gov API v2 — no browser, no proxy, no API key.
ClinicalTrials.gov is the world's largest trial registry: 500,000+ studies registered by sponsors in 200+ countries, including phase, conditions, interventions, enrollment and sponsor for each one.
This Actor queries the registry's own documented JSON API and returns one flat row per trial, so you can load it into a spreadsheet, a CRM or a database without touching the deeply nested protocolSection tree the raw API returns.
Why this Actor
| Typical scrapers | This Actor | |
|---|---|---|
| Data source | HTML pages and JavaScript render trees | Official clinicaltrials.gov/api/v2 JSON API |
| Breaks on redesign | Often | No — versioned, documented endpoint |
| Proxies / CAPTCHA | Usually needed | Never |
| API key | Varies | None — anonymous public access |
| Output shape | Nested modules, 10+ levels deep | One flat row per trial, fixed schema |
What you get
One dataset item per clinical trial, with the fields below.
| Field | Type | Description |
|---|---|---|
nct_id | string | Registry identifier, e.g. NCT03761914. Stable key, safe to de-duplicate on. |
title | string | Brief title of the study as registered. |
status | string | Overall recruitment status code, e.g. RECRUITING, COMPLETED. |
phase | string | Trial phase, e.g. Phase 2, Early Phase 1, Not Applicable. Multiple phases are joined with a pipe. |
conditions | string | Studied conditions/diseases, pipe separated. |
interventions | string | Drugs, devices, biologics and procedures with their type, pipe separated. |
start_date | string | Study start date, YYYY-MM-DD. May be YYYY-MM when only the month was registered. |
completion_date | string | Primary completion date, falling back to the overall completion date. |
enrollment | number | Target or actual enrollment count, as registered. |
sponsor | string | Lead sponsor name (company, university, hospital or agency). |
url | string | Public study page on clinicaltrials.gov. |
completion_date-- Uses the primary completion date when present (when the last participant was measured for the primary outcome), and falls back to the overall completion date.phase-- Multiple phases such as Phase 1 and Phase 2 are joined intoPhase 1 | Phase 2; observational studies reportNot Applicable.enrollment-- The registry mixes target and actual counts and the API labels which — this Actor preserves the number and does not guess.
Input
| Parameter | Type | Default | Description |
|---|---|---|---|
keyword | string | pembrolizumab | Required. Disease, drug, intervention, sponsor or free-text phrase sent to the registry as query.term. Single words or short phrases work best (pembrolizumab, diabetic retinopathy, CAR-T). |
maxResults | integer | 25 | Maximum number of trial records to save. The API returns 100 studies per page, so the Actor walks through pages until this number is reached. |
status | string | (empty) | Comma-separated overall status codes to keep, e.g. RECRUITING or RECRUITING,ACTIVE_NOT_RECRUITING. Leave empty for all statuses. Valid codes: RECRUITING, ACTIVE_NOT_RECRUITING, ENROLLING_BY_INVITATION, NOT_YET_RECRUITING, COMPLETED, SUSPENDED, TERMINATED, WITHDRAWN, UNKNOWN. |
Usage examples
1. Recent immunotherapy trials that are still recruiting
{"keyword": "pembrolizumab","status": "RECRUITING","maxResults": 50}
2. Everything registered for a disease, newest updates first
{"keyword": "diabetic retinopathy","maxResults": 200}
Schedule it daily with Apify Schedules and connect a webhook, Google Sheets or Airtable to track newly registered trials for a therapeutic area. Because every row carries a stable nct_id, de-duplicating across runs is a one-line operation.
Data notes
- The registry is updated by sponsors, not by the Actor: a trial's status can change between runs.
- Free-text search matches titles, conditions, interventions and summaries, so a broad keyword returns a broad set.
- Records with no registered phase, enrollment or completion date are returned with empty values instead of being dropped.
Pricing
This Actor uses pay-per-event pricing. You only pay for what you actually get.
| Event | Price | When it is charged |
|---|---|---|
| Actor start | $0.002 | Once per run |
| Result row | $0.002 per row | For every row saved to the dataset |
That works out to $2 per 1,000 rows. A typical run returning 50 rows costs about $0.10 in total.
No subscription is required. You can cap your spend with the max cost per run setting in Apify Console, and an empty or invalid input charges only the start event.
FAQ
Do I need an API key or a ClinicalTrials.gov account?
No. API v2 is public and anonymous. There is nothing to register and no key to paste.
Is this legal?
Yes. ClinicalTrials.gov is a US government registry operated by the National Library of Medicine, and its API is published for exactly this kind of reuse. The Actor makes one request per 100 records and identifies itself with a normal user agent.
Why are some phase or enrollment values empty?
Because the sponsor did not register them. The registry allows several fields to be omitted, and the Actor returns empty values rather than inventing data.
Does it include trial results?
No. This Actor exports registry metadata (identification, status, design, conditions, interventions, sponsor). Posted results tables and adverse events are a separate API area and are not included.
Related Actors
More data tools from the same publisher:
- App Store Reviews Scraper - App Store and Steam user reviews with ratings, versions and dates.
- EU Tenders Scraper - EU public procurement notices from the official TED API.
- Federal Register Scraper - US Federal Register documents, rules and notices.
- arXiv Scraper - arXiv papers with authors, abstracts and PDF links.
- Hacker News Scraper - Hacker News stories by keyword, top ranking or newest.
- Weather Scraper - Weather forecast and history for any city worldwide.
Disclaimer
All data is retrieved in real time from ClinicalTrials.gov, a service of the U.S. National Library of Medicine, via its public API v2. This Actor is an independent tool and is not affiliated with, endorsed by, or sponsored by the NIH, NLM or any government agency.
Registry records are self-reported by trial sponsors and can be incomplete, delayed or corrected after publication. Verify any record against its url before making clinical, regulatory or commercial decisions. This dataset is a research aid, not medical advice.