ClinicalTrials.gov Studies & Biotech Pipeline API
Pricing
from $3.50 / 1,000 clinical trial extracteds
ClinicalTrials.gov Studies & Biotech Pipeline API
Extract structured clinical trials from the official U.S. NIH ClinicalTrials.gov REST API v2. Filter by condition, drug/intervention, sponsor, recruitment status, phase, and country for biotech VCs, pharma intelligence, n8n workflows, and AI agents (MCP).
Pricing
from $3.50 / 1,000 clinical trial extracteds
Rating
0.0
(0)
Developer
John Erlbacher
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
2 days ago
Last modified
Categories
Features
Share
Extract clean, normalized clinical trial records directly from the official U.S. National Institutes of Health (NIH) ClinicalTrials.gov REST API v2 (https://clinicaltrials.gov/api/v2/studies).
Built for biotech venture capital & life-sciences investors, pharmaceutical competitive intelligence teams, clinical research organizations (CROs), patient recruitment platforms, automated n8n monitoring pipelines, and AI agents (MCP).
Because this Actor queries the official NIH ClinicalTrials.gov JSON API v2 rather than scraping brittle web pages, runs complete in seconds with zero API key required, zero proxy costs, zero CAPTCHAs, and deterministic structured output.
Key Capabilities
- Official NIH ClinicalTrials.gov v2 Coverage: Access over 500,000 global clinical studies updated daily directly from the National Library of Medicine (NLM).
- Precision Multi-Facet Filtering: Filter by medical
condition, drug or treatmentintervention, pharmaceutical/academicsponsor, recruitmentstatus(RECRUITING,ACTIVE_NOT_RECRUITING,COMPLETED,NOT_YET_RECRUITING, and more), trialphase(EARLY_PHASE1,PHASE1,PHASE2,PHASE3,PHASE4,NA), and study sitecountry. - Freshest Updates First: Automatically sorts matching studies by
LastUpdatePostDate:descand paginates smoothly using officialnextPageTokencursors up to 1,000 studies per run. - Biotech-Ready Normalized Schema: Flattens deeply nested
protocolSectionmodules (identificationModule,statusModule,sponsorCollaboratorsModule,designModule,conditionsModule,armsInterventionsModule,contactsLocationsModule) into 16 clean fields ready for SQL warehouses, Airtable, Google Sheets, n8n, or LLM reasoning. - Built-In Resilience: Gracefully handles empty result sets, deduplicates studies by
nctId, and automatically backs off and retries transient HTTP429or5xxresponses.
Input Configuration
Example Input JSON
{"condition": "oncology","intervention": "pembrolizumab","sponsor": "Merck","status": "RECRUITING","phase": "PHASE3","country": "United States","maxItems": 25}
Input Parameters
| Field | Type | Default | Description |
|---|---|---|---|
condition | string | "oncology" | Medical condition, disease, or therapeutic area (query.cond). Examples: "oncology", "Alzheimer disease", "non-small cell lung cancer". Pass "" to query exclusively by drug, sponsor, or country. |
intervention | string | "" | Optional drug, biologic, medical device, or treatment name (query.intr). Examples: "pembrolizumab", "semaglutide", "CAR-T", "mRNA". |
sponsor | string | "" | Optional lead sponsor or collaborator organization (query.spons). Examples: "Pfizer", "Moderna", "Eli Lilly", "National Cancer Institute". |
status | string | "RECRUITING" | Recruitment status filter (filter.overallStatus): ALL, RECRUITING, NOT_YET_RECRUITING, ACTIVE_NOT_RECRUITING, COMPLETED, ENROLLING_BY_INVITATION, SUSPENDED, TERMINATED, or WITHDRAWN. |
phase | string | "ALL" | Clinical trial phase filter (AREA[Phase]): ALL, EARLY_PHASE1, PHASE1, PHASE2, PHASE3, PHASE4, or NA. |
country | string | "" | Optional clinical trial site country (AREA[LocationCountry]). Examples: "United States", "Germany", "United Kingdom", "Japan". |
maxItems | integer | 15 | Maximum number of clinical trials to return (1–1000), paginated automatically in chunks of 100. |
Running with empty input {} automatically extracts the 15 most recently updated Recruiting Oncology studies so you can verify output structure immediately.
Normalized Output Schema
Every dataset record contains the same 16 consistent fields:
Example Output JSON
{"nctId": "NCT06953076","briefTitle": "Phase 3 Study of EIK1001 and Pembrolizumab With Chemotherapy in Stage 4 NSCLC","officialTitle": "A Phase 2/3 Randomized, Double-Blind, Placebo-Controlled Study of EIK1001 in Combination With Pembrolizumab and Standard of Care Chemotherapy in Patients With Stage 4 Non-Small Cell Lung Cancer","overallStatus": "RECRUITING","phases": ["PHASE2", "PHASE3"],"studyType": "INTERVENTIONAL","leadSponsor": "Eikon Therapeutics","sponsorClass": "INDUSTRY","conditions": ["Non Small Cell Lung Cancer (Squamous or Non Squamous)","Stage 4 NSCLC"],"interventions": ["DRUG: EIK1001","DRUG: Pembrolizumab (KEYTRUDA®)","DRUG: Placebo","DRUG: Paclitaxel + Carboplatin"],"enrollmentCount": 750,"startDate": "2025-05-02","primaryCompletionDate": "2026-11-30","locationsCount": 64,"countries": ["Canada", "Germany", "United States"],"studyUrl": "https://clinicaltrials.gov/study/NCT06953076"}
Field Reference
| Field | Type | Description |
|---|---|---|
nctId | string | Canonical National Clinical Trial identifier (e.g., NCT06953076). |
briefTitle | string | Public summary title of the study. |
officialTitle | string | Full scientific protocol title. |
overallStatus | string | Current recruitment status (RECRUITING, ACTIVE_NOT_RECRUITING, COMPLETED, etc.). |
phases | string[] | Trial phase list (["PHASE1"], ["PHASE2", "PHASE3"], ["NA"], or []). |
studyType | string | Study classification (INTERVENTIONAL, OBSERVATIONAL, EXPANDED_ACCESS). |
leadSponsor | string | Primary sponsoring company, university, hospital, or government institute. |
sponsorClass | string | Sponsor category (INDUSTRY, NIH, OTHER, FED, NETWORK, OTHER_GOV, INDIV). |
conditions | string[] | Deduplicated list of targeted conditions and indications. |
interventions | string[] | Deduplicated list of treatments formatted as TYPE: Name (e.g., DRUG: Pembrolizumab). |
enrollmentCount | integer | null | Actual or estimated participant enrollment count. |
startDate | string | Study start date (YYYY-MM-DD or YYYY-MM). |
primaryCompletionDate | string | Primary outcome completion date (YYYY-MM-DD or YYYY-MM) — key catalyst date for biotech investors. |
locationsCount | integer | Total count of registered clinical trial sites. |
countries | string[] | Sorted unique countries with active or registered sites. |
studyUrl | string | Direct permalink to the official study page on https://clinicaltrials.gov/study/<nctId>. |
Pay-Per-Event Pricing (trial-extracted)
This Actor uses transparent Apify Pay-Per-Event (PPE) billing so you only pay for delivered study records:
- Event name:
trial-extracted— charged once per normalized study pushed to the dataset, protected by a deterministic idempotency key (nct-<nctId>). - Zero-match queries cost $0 in event fees when no studies match your filters.
- Automatic spend-cap enforcement: Checks
event_charge_limit_reachedon every study and exits cleanly the moment your configured run budget is reached.
Automate Biotech Pipeline Monitoring in n8n
Build an automated Weekly Phase 3 Catalyst & Competitor Tracker in n8n:
- Schedule Trigger — Run every Monday at 07:00 AM.
- HTTP Request (Apify Run-Sync Dataset Items) —
POSTto:
JSON Body:https://api.apify.com/v2/acts/<YOUR_USERNAME>~clinicaltrials-gov-extractor/run-sync-get-dataset-items?token={{$env.APIFY_TOKEN}}{"condition": "obesity","intervention": "GLP-1","status": "RECRUITING","phase": "PHASE3","country": "United States","maxItems": 30} - Airtable / Slack / Webhook Node — Upsert rows keyed on
{{ $json.nctId }}or alert your investment team on upcoming{{ $json.primaryCompletionDate }}readouts,{{ $json.enrollmentCount }}targets, and{{ $json.leadSponsor }}activity.
Use with AI Agents & Model Context Protocol (MCP)
Connect this Actor directly to Claude Desktop, Cursor, Windsurf, or custom LangGraph / OpenAI agents using the official Apify MCP Server so AI analysts can query live NIH clinical trial registries in real time:
{"mcpServers": {"apify-clinicaltrials": {"command": "npx","args": ["-y","@apify/actors-mcp-server","--actors","<YOUR_USERNAME>/clinicaltrials-gov-extractor"],"env": {"APIFY_TOKEN": "<YOUR_APIFY_API_TOKEN>"}}}}
Example Agent Prompts:
- "Find 20 recruiting Phase 3 oncology clinical trials in the United States sponsored by industry and rank them by enrollment size and primary completion date."
- "Pull active and recruiting clinical trials testing semaglutide or tirzepatide and compare lead sponsors, trial phases, and global site counts."
- "Monitor completed Phase 2 Alzheimer's disease trials and summarize all interventions tested alongside their sponsor classes and direct ClinicalTrials.gov URLs."
Data Source & Compliance Notice
All study records are retrieved directly from the public U.S. National Library of Medicine ClinicalTrials.gov REST API v2 (https://clinicaltrials.gov/api/v2/studies). ClinicalTrials.gov data is provided for informational, research, and competitive intelligence purposes only and does not constitute medical advice or clinical guidance.