ClinicalTrials.gov Studies & Biotech Pipeline API avatar

ClinicalTrials.gov Studies & Biotech Pipeline API

Pricing

from $3.50 / 1,000 clinical trial extracteds

Go to Apify Store
ClinicalTrials.gov Studies & Biotech Pipeline API

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

John Erlbacher

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

2 days ago

Last modified

Features

Limited permissions

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 treatment intervention, pharmaceutical/academic sponsor, recruitment status (RECRUITING, ACTIVE_NOT_RECRUITING, COMPLETED, NOT_YET_RECRUITING, and more), trial phase (EARLY_PHASE1, PHASE1, PHASE2, PHASE3, PHASE4, NA), and study site country.
  • Freshest Updates First: Automatically sorts matching studies by LastUpdatePostDate:desc and paginates smoothly using official nextPageToken cursors up to 1,000 studies per run.
  • Biotech-Ready Normalized Schema: Flattens deeply nested protocolSection modules (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 HTTP 429 or 5xx responses.

Input Configuration

Example Input JSON

{
"condition": "oncology",
"intervention": "pembrolizumab",
"sponsor": "Merck",
"status": "RECRUITING",
"phase": "PHASE3",
"country": "United States",
"maxItems": 25
}

Input Parameters

FieldTypeDefaultDescription
conditionstring"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.
interventionstring""Optional drug, biologic, medical device, or treatment name (query.intr). Examples: "pembrolizumab", "semaglutide", "CAR-T", "mRNA".
sponsorstring""Optional lead sponsor or collaborator organization (query.spons). Examples: "Pfizer", "Moderna", "Eli Lilly", "National Cancer Institute".
statusstring"RECRUITING"Recruitment status filter (filter.overallStatus): ALL, RECRUITING, NOT_YET_RECRUITING, ACTIVE_NOT_RECRUITING, COMPLETED, ENROLLING_BY_INVITATION, SUSPENDED, TERMINATED, or WITHDRAWN.
phasestring"ALL"Clinical trial phase filter (AREA[Phase]): ALL, EARLY_PHASE1, PHASE1, PHASE2, PHASE3, PHASE4, or NA.
countrystring""Optional clinical trial site country (AREA[LocationCountry]). Examples: "United States", "Germany", "United Kingdom", "Japan".
maxItemsinteger15Maximum 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

FieldTypeDescription
nctIdstringCanonical National Clinical Trial identifier (e.g., NCT06953076).
briefTitlestringPublic summary title of the study.
officialTitlestringFull scientific protocol title.
overallStatusstringCurrent recruitment status (RECRUITING, ACTIVE_NOT_RECRUITING, COMPLETED, etc.).
phasesstring[]Trial phase list (["PHASE1"], ["PHASE2", "PHASE3"], ["NA"], or []).
studyTypestringStudy classification (INTERVENTIONAL, OBSERVATIONAL, EXPANDED_ACCESS).
leadSponsorstringPrimary sponsoring company, university, hospital, or government institute.
sponsorClassstringSponsor category (INDUSTRY, NIH, OTHER, FED, NETWORK, OTHER_GOV, INDIV).
conditionsstring[]Deduplicated list of targeted conditions and indications.
interventionsstring[]Deduplicated list of treatments formatted as TYPE: Name (e.g., DRUG: Pembrolizumab).
enrollmentCountinteger | nullActual or estimated participant enrollment count.
startDatestringStudy start date (YYYY-MM-DD or YYYY-MM).
primaryCompletionDatestringPrimary outcome completion date (YYYY-MM-DD or YYYY-MM) — key catalyst date for biotech investors.
locationsCountintegerTotal count of registered clinical trial sites.
countriesstring[]Sorted unique countries with active or registered sites.
studyUrlstringDirect 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_reached on 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:

  1. Schedule Trigger — Run every Monday at 07:00 AM.
  2. HTTP Request (Apify Run-Sync Dataset Items) — POST to:
    https://api.apify.com/v2/acts/<YOUR_USERNAME>~clinicaltrials-gov-extractor/run-sync-get-dataset-items?token={{$env.APIFY_TOKEN}}
    JSON Body:
    {
    "condition": "obesity",
    "intervention": "GLP-1",
    "status": "RECRUITING",
    "phase": "PHASE3",
    "country": "United States",
    "maxItems": 30
    }
  3. 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.