ClinicalTrials.gov Search (Official API) avatar

ClinicalTrials.gov Search (Official API)

Pricing

from $2.20 / 1,000 result items

Go to Apify Store
ClinicalTrials.gov Search (Official API)

ClinicalTrials.gov Search (Official API)

Search and export clinical trials from the official ClinicalTrials.gov API v2. No API key needed. Public domain U.S. government data. Filter by condition, intervention, sponsor, location, status, and phase.

Pricing

from $2.20 / 1,000 result items

Rating

0.0

(0)

Developer

Doohan Kim

Doohan Kim

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

17 hours ago

Last modified

Share

Search and export clinical trials from ClinicalTrials.gov, the U.S. government registry of clinical studies. This Actor uses the official API v2 — no scraping, no API key.

Why this Actor

  • Official API only. Calls https://clinicaltrials.gov/api/v2/studies. No page scraping.
  • No API key required. Verified 2026-09-27: the endpoint returns HTTP 200 without any credentials.
  • Public domain data. ClinicalTrials.gov is operated by the U.S. National Library of Medicine.
  • Flat output. The API returns deeply nested JSON; this Actor flattens it into one row per study.
  • Polite. Requests are paced (default 5/second) and retried with backoff on 429/5xx.

What you get

One row per study:

FieldDescription
nctIdRegistry identifier, e.g. NCT00690963
urlLink to the study page
briefTitle / officialTitleStudy titles
overallStatusRECRUITING, COMPLETED, TERMINATED, …
studyTypeINTERVENTIONAL, OBSERVATIONAL, EXPANDED_ACCESS
phasese.g. ["PHASE1","PHASE2"]
enrollmentCountTarget or actual enrollment
conditionsConditions studied
leadSponsorLead sponsor name
startDate / primaryCompletionDate / completionDateKey dates
lastUpdatePostDateWhen the record was last updated
countriesDistinct countries across all study locations
locationCountNumber of study locations
interventionsIntervention names

Input

All fields are optional — combine what you need.

InputMaps toExample
searchTermquery.termlung cancer
conditionquery.condbreast cancer
interventionquery.intrpembrolizumab
sponsorquery.sponsPfizer
locationquery.locnKorea
statusesfilter.overallStatus["RECRUITING"]
phasesadvanced filter["PHASE2","PHASE3"]
studyTypeadvanced filterINTERVENTIONAL
maxResults—100

Pricing

Pay per event: one charge per returned study (result-item). Nothing is charged for studies you do not receive. The Actor also checks your run budget before starting and reduces the result count to fit, instead of stopping partway.

Use cases

  • Pharma — competitor pipeline monitoring. Track competitor trial activity, study phases and endpoints across a therapeutic area.
  • Biotech — protocol planning and feasibility. Benchmark active study designs, enrollment targets and comparator interventions.
  • Investment — clinical catalysts and due diligence. Watch milestone dates, completion timelines and recruitment status changes for portfolio or target companies.
  • Academic research — evidence synthesis. Pull registry records, geographic distribution and historical studies for systematic reviews.
  • Regulatory and market intelligence — landscape mapping. Analyze global trial footprints, sponsor types and progression across indications.

What makes this different

  1. Official API, not scraping. Queries the ClinicalTrials.gov REST API v2 directly, so it does not break when the website layout changes, and there is no terms-of-service gray area.
  2. No credentials. Public-domain government data, no API key, no account approval.
  3. Flat, ready-to-use output. Deeply nested government JSON becomes clean rows you can open in Excel or feed straight into a pipeline.

Running locally

pip install -r requirements.txt
# Verify the client against the live API (no key, no Apify account needed)
python -m tests.test_ctgov
# Run the Actor locally with charging in test mode (nothing is billed)
ACTOR_TEST_PAY_PER_EVENT=true python -m src.main

Layout

src/ctgov.py API client + flattening. Pure Python, testable on its own.
src/main.py Apify wiring only (input, dataset, charging).
tests/ Live checks against the real API.

Data source and attribution

Data comes from ClinicalTrials.gov, a service of the U.S. National Library of Medicine. This Actor is not affiliated with or endorsed by the NIH, NLM, or ClinicalTrials.gov. Study records are provided by study sponsors and investigators; ClinicalTrials.gov does not verify their scientific validity. Always confirm details against the study record itself.

What this Actor does not do

  • It does not scrape web pages.
  • It does not provide medical advice or interpret study results.
  • It does not store or resell data — each run fetches fresh records from the official API.