# ClinicalTrials.gov Scraper — Trials Data, No API Key (`logiover/clinicaltrials-gov-scraper`) Actor

ClinicalTrials.gov data export tool. Scrape clinical trials without an API key and export trial datasets to CSV, JSON & Excel.

- **URL**: https://apify.com/logiover/clinicaltrials-gov-scraper.md
- **Developed by:** [Logiover](https://apify.com/logiover) (community)
- **Categories:** Automation, Developer tools, AI
- **Features:** Limited permissions
- **Stats:** 27 total users, 2 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 review extracteds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## ClinicalTrials.gov Scraper — Clinical Trials Data Export (Official Registry, No API Key)

![ClinicalTrials.gov Scraper](https://apify-image-uploads-prod.s3.us-east-1.amazonaws.com/GjS6nQ8qauOdq9KGy-actor-ow8ZtkB4nnnaPTbet-89Y9LWW6rT-images.jpeg)

[![Apify Actor](https://img.shields.io/badge/Apify-Actor-97D700?logo=apify\&logoColor=white)](https://apify.com/logiover/clinicaltrials-gov-scraper)
[![Official data source](https://img.shields.io/badge/Source-Official%20ClinicalTrials.gov-0071BC)](https://clinicaltrials.gov)
[![No API key required](https://img.shields.io/badge/No%20API%20key-required-brightgreen)](https://apify.com/logiover/clinicaltrials-gov-scraper)
[![Pay per result](https://img.shields.io/badge/Pricing-Pay%20per%20result-blue)](https://apify.com/logiover/clinicaltrials-gov-scraper)
[![Category: Public data](https://img.shields.io/badge/Category-Public%20data-8A2BE2)](https://apify.com/logiover/clinicaltrials-gov-scraper)
[![Export JSON/CSV/Excel](https://img.shields.io/badge/Export-JSON%20%7C%20CSV%20%7C%20Excel-orange)](https://apify.com/logiover/clinicaltrials-gov-scraper)

This **ClinicalTrials.gov scraper** pulls **structured clinical trials data** straight from the **official ClinicalTrials.gov data registry** — the world's largest database of clinical studies. It extracts **trial status, phase, sponsor, conditions, interventions, eligibility criteria and site locations** across **585,000+ studies worldwide**, with **no API key, no login and no rate-limit headaches**. Filter by condition, sponsor, keyword and status, then **export tens of thousands of trials to CSV, JSON or Excel** in a single run — clean, structured and analysis-ready.

> ### 🏆 Why this ClinicalTrials.gov Scraper?
>
> **Authoritative source** (official ClinicalTrials.gov registry) · **No API key & no login** · **585,000+ studies** searchable · **28+ fields per trial** including sites & eligibility · **Pay per result** · **Export to CSV / JSON / Excel / XML**

***

### ✨ What this Actor does / Key features

- 🔬 **Extracts full trial records** — 28+ structured fields per study: NCT ID, titles, status, phase, sponsor, conditions, interventions, enrollment, eligibility and locations.
- 🏥 **Filter the whole registry** — search by condition/disease, free-text term, lead sponsor and one or more trial statuses.
- 🌍 **Global coverage** — 585,000+ studies from sponsors, hospitals and research centers worldwide.
- 📍 **Site-level detail** — every trial site (facility, city, state, country) so you can map recruiting locations.
- 🧬 **Eligibility built in** — sex, age range and healthy-volunteer flags for patient-matching and recruitment.
- 🔑 **No API key, no login** — just set filters and run; nothing to register with ClinicalTrials.gov.
- 📤 **Export anywhere** — download as JSON, CSV, Excel (XLSX), XML or JSONLines, or pipe to Google Sheets, a database or a webhook.
- ⚡ **Bulk-ready** — one run can return tens of thousands of trials; set a cap or capture everything that matches.

### 🚀 Quick start (3 steps)

1. Click **Try for free** / **Start** on the Actor page (or call it via the Apify API).
2. Set your filters — `condition` (disease), `searchTerm` (free text), `sponsor`, and `overallStatus`. Set `maxStudies` to cap the run, or `0` for everything that matches.
3. Run the Actor and **download the results** as CSV, JSON or Excel — or connect Google Sheets, a database or a webhook.

### 📥 Input

No input is required — run with the defaults to sample the registry, or set filters to target exactly the trials you need.

#### Example — Recruiting breast-cancer trials

```json
{
  "condition": "breast cancer",
  "searchTerm": "",
  "sponsor": "",
  "overallStatus": ["RECRUITING"],
  "maxStudies": 10000
}
```

#### Example — A pharma sponsor's full pipeline

```json
{
  "condition": "",
  "searchTerm": "",
  "sponsor": "Pfizer",
  "overallStatus": [],
  "maxStudies": 5000
}
```

#### Example — Completed Phase 3 immunotherapy studies

```json
{
  "condition": "",
  "searchTerm": "immunotherapy",
  "sponsor": "",
  "overallStatus": ["COMPLETED"],
  "maxStudies": 2000
}
```

| Field | Type | Description |
|---|---|---|
| `condition` | string | Filter by condition or disease, e.g. `diabetes`, `breast cancer`, `alzheimer`. Leave empty for all. |
| `searchTerm` | string | Free-text search across the whole study record (intervention, sponsor, keyword). Leave empty for all. |
| `sponsor` | string | Filter by lead-sponsor name, e.g. `Pfizer`, `ModernaTX, Inc.`, `National Cancer Institute`. Collaborator-only matches are excluded. Leave empty for all. |
| `overallStatus` | array | Filter by trial status, e.g. `RECRUITING`, `COMPLETED`, `ACTIVE_NOT_RECRUITING`. Leave empty for all. |
| `maxStudies` | integer | Maximum studies to save. `0` = all matching (up to ~585,000 across the whole database). |

> 💡 **Tip:** Combine `condition` + `overallStatus: ["RECRUITING"]` to build a live patient-recruitment list, or set only `sponsor` to pull a competitor's entire trial portfolio across every phase and status.

#### Additional input fields

These optional fields are also available in the input form and API:

| Field | Type | Default | Description |
|---|---|---|---|
| `sort` | string | `"LastUpdatePostDate:desc"` | How results are ordered. 'Most recently updated' and 'Newest first' are ideal for browsing with no keyword. 'Best match' only makes sense together with a condition or search term. |

### 📤 Output

Each dataset item is one clinical trial study. Here is a realistic (trimmed) sample:

```json
{
  "nctId": "NCT05012345",
  "briefTitle": "A Study of Drug X in Patients With HER2-Positive Breast Cancer",
  "overallStatus": "RECRUITING",
  "phases": ["PHASE3"],
  "leadSponsor": "Example Pharmaceuticals Inc.",
  "conditions": ["Breast Cancer", "HER2-Positive Breast Carcinoma"],
  "enrollmentCount": "540",
  "startDate": "2024-03-15"
}
```

<details><summary><b>📋 Full field reference (click to expand)</b></summary>

| Field | Description |
|---|---|
| `nctId` | ClinicalTrials.gov registration number (NCT ID). |
| `briefTitle` | Short study title. |
| `officialTitle` | Full official study title. |
| `acronym` | Study acronym, if any. |
| `organization` | Organization that submitted the record. |
| `overallStatus` | Current trial status (e.g. `RECRUITING`, `COMPLETED`). |
| `studyType` | Study type (interventional, observational). |
| `phases` | Array of trial phases. |
| `enrollmentCount` | Number of participants enrolled or planned. |
| `leadSponsor` | Lead sponsor of the trial. |
| `sponsorClass` | Sponsor classification (industry, NIH, other). |
| `collaborators` | Array of collaborating organizations. |
| `conditions` | Array of conditions / diseases studied. |
| `interventions` | Array of interventions tested. |
| `briefSummary` | Short summary of the study. |
| `sex` | Eligible sex. |
| `minimumAge` | Minimum age eligibility. |
| `maximumAge` | Maximum age eligibility. |
| `healthyVolunteers` | Whether healthy volunteers are accepted. |
| `startDate` | Trial start date. |
| `completionDate` | Overall completion date. |
| `primaryCompletionDate` | Primary completion date. |
| `firstPostedDate` | When the study was first posted. |
| `lastUpdatePostedDate` | When the study was last updated. |
| `locations` | Array of trial site locations (facility, city, state, country). |
| `hasResults` | Whether study results have been posted. |
| `url` | Direct link to the study on ClinicalTrials.gov. |
| `scrapedAt` | Timestamp of when the record was scraped. |

Export every field to JSON, CSV, Excel (XLSX), XML or JSONLines via the Apify dataset and API.

</details>

### 💡 Use cases

- **Pharma & biotech competitive intelligence** — track competitor trials by phase, sponsor and condition, and watch pipelines shift in near real time.
- **CRO & patient recruitment** — find recruiting trials by condition and location at scale, with site and eligibility details built in.
- **Investor & analyst research** — monitor the clinical pipeline across the industry to inform diligence, valuations and market timing.
- **Academic & medical research** — build clean datasets from the world's largest trials registry for systematic reviews and meta-analyses.
- **Medical writing & regulatory** — pull authoritative trial metadata for protocols, publications and submissions.
- **Journalism & policy** — analyze trial trends, sponsor activity, enrollment and results-reporting across conditions and years.

### 👥 Who uses it

Pharma & biotech competitive-intelligence teams · CRAs and clinical-operations staff at CROs · patient-recruitment and site-selection teams · biotech and healthcare equity analysts · venture and private-equity investors · academic and hospital researchers · systematic-review and meta-analysis authors · medical writers and regulatory-affairs specialists · health-data scientists · epidemiologists · science and health journalists · policy and market-access researchers.

### 💰 Pricing

This Actor runs on a simple **pay-per-result** model — you pay for the trial records you extract, with no monthly subscription and no ClinicalTrials.gov API fees. See the **Pricing** tab on this page for the current rate.

### ❓ Frequently Asked Questions

**Is this an official ClinicalTrials.gov API or a scraper?**
It reads data from the official ClinicalTrials.gov data registry, so the data is authoritative and stable. This Actor turns that registry into filtered, structured, ready-to-export datasets. It is not affiliated with ClinicalTrials.gov, the NIH or the US National Library of Medicine.

**Does ClinicalTrials.gov have an API?**
Yes — ClinicalTrials.gov publishes an official public data API. It's powerful but returns deeply nested, paginated JSON that most people still have to parse, flatten and stitch together themselves. This Actor does that work for you: it queries the source, flattens every study into 28+ clean columns, handles pagination automatically, and hands you a tidy CSV/JSON/Excel dataset — no code, no rate-limit management.

**Do I need an API key or login?**
No. There is no ClinicalTrials.gov API key to register and no login — you only need an Apify account. Just set your filters and run.

**Can I use this without writing code or building an API integration?**
Absolutely. It's fully no-code: set your filters in the form, click Start, and download the results. Developers can also run it via the Apify API or schedule it, but no integration work is required.

**How do I export ClinicalTrials.gov data to CSV or JSON?**
Run the Actor with your filters, then download the dataset as CSV, JSON, Excel (XLSX), XML or JSONLines from the run page — or fetch it through the Apify API. It turns the trial registry into a clean clinical trials dataset ready for analysis.

**How much data can I get in one run?**
A single run can return tens of thousands of studies. Set `maxStudies` to `0` to capture everything matching your filters, up to the full ~585,000-study database.

**How do I find recruiting clinical trials for a specific disease?**
Set `condition` to your disease and `overallStatus` to `RECRUITING`, then export every matching study — with sites, eligibility and sponsor — to CSV or JSON.

**Can I pull all clinical trials by a specific pharma sponsor?**
Yes. Put the registered lead-sponsor name in the `sponsor` field, for example `Pfizer` or `ModernaTX, Inc.`, to export that sponsor's trial pipeline across every phase and status. The filter is scoped to the lead sponsor and does not include studies where the organization appears only as a collaborator.

**Is it legal to use this data?**
ClinicalTrials.gov study records are public information published by the US National Library of Medicine. Use the data responsibly and in line with ClinicalTrials.gov terms. See the Legal note below.

**What output formats are supported?**
JSON, CSV, Excel (XLSX), XML and JSONLines — available through the Apify dataset and API.

### 🔗 More public-data & registry scrapers by logiover

Pair this Actor with our other official-source and B2B data scrapers:

| Actor | What it does |
|---|---|
| [FDA Data Scraper](https://apify.com/logiover/fda-data-scraper) | Drugs, devices, recalls & adverse events from the FDA. |
| [NPI Registry Scraper](https://apify.com/logiover/npi-registry-scraper) | US healthcare providers & organizations by name, taxonomy or location. |
| [SEC EDGAR Form D Scraper](https://apify.com/logiover/sec-edgar-form-d-scraper) | Private-placement filings & fundraising data from SEC EDGAR. |
| [USAspending.gov Scraper](https://apify.com/logiover/usaspending-gov-scraper) | US federal contracts, grants & spending awards. |
| [GLEIF LEI Scraper](https://apify.com/logiover/gleif-lei-company-registry-scraper) | Legal Entity Identifiers & corporate reference data worldwide. |
| [Global Public Tenders Scraper](https://apify.com/logiover/global-public-tenders-scraper) | Government tenders & procurement notices across countries. |
| [UN Comtrade Trade Data Scraper](https://apify.com/logiover/comtrade-trade-data-scraper) | International import/export trade statistics. |
| [UK Companies House Bulk Scraper](https://apify.com/logiover/uk-companies-house-bulk-scraper) | UK company registrations, officers & filings in bulk. |
| [USA New York Company Registry Scraper](https://apify.com/logiover/usa-new-york-company-registry-scraper) | New York State business entity records. |
| [France Company Registry Scraper](https://apify.com/logiover/france-company-registry-scraper) | French SIREN/SIRET company data. |
| [Finland Company Registry Scraper](https://apify.com/logiover/finland-company-registry-scraper) | Finnish business registry records. |
| [Czech Company Registry Scraper](https://apify.com/logiover/czech-company-registry-scraper) | Czech ARES business register data. |
| [Australia Business Register Scraper](https://apify.com/logiover/australia-business-register-scraper) | Australian ABN/ACN business records. |
| [Norway BRREG Company Scraper](https://apify.com/logiover/brreg-norway-company-scraper) | Norwegian Brønnøysund company registry data. |
| [Allabolag Scraper](https://apify.com/logiover/allabolag-scraper) | Swedish company financials & registry data. |

👉 Browse all **[logiover scrapers on Apify Store](https://apify.com/logiover)** — 180+ actors across real estate, jobs, crypto, social media & B2B data.

### ⏰ Scheduling & integration

Schedule the Actor on Apify to keep an always-fresh clinical trials database. Export results to JSON, CSV or Excel, call it from the Apify API, or connect it to Google Sheets, Airtable, databases or Slack with webhooks and no-code tools like **Make**, **n8n** and **Zapier**. Set it to run daily or weekly and feed a dashboard, CRM or data warehouse automatically.

### 🤖 AI Agents, MCP & RAG Integration

**ClinicalTrials.gov Scraper** works natively as an on-demand data tool for AI assistants and autonomous workflows.

Connect this Actor directly to **Apify AI**, **Claude Desktop**, **Cursor**, **VS Code**, **Windsurf**, **LangChain**, or **LlamaIndex** via the official **Apify MCP Server** — no custom wrapper code needed:

```json
{
  "mcpServers": {
    "apify": {
      "type": "http",
      "url": "https://mcp.apify.com?tools=logiover/clinicaltrials-gov-scraper"
    }
  }
}
```

- **Schema-typed inputs & outputs:** Clean JSON records with explicit `.actor/input_schema.json` and `.actor/output_schema.json` definitions so LLM agents infer parameters and parse fields accurately without HTML noise.
- **Bounded & predictable runs:** Built-in volume caps and pay-per-result budget guards prevent runaway agent tool loops.
- **RAG & automation ready:** Stream run datasets straight into vector stores, n8n, Make, Zapier, or webhook pipelines.

### 💬 Support, Issues & Reviews

- **Bug reports & target-site changes:** Hit an unexpected empty result or selector change? [Open a ticket in the Issues tab](https://apify.com/logiover/clinicaltrials-gov-scraper/issues) with your **Run ID** or sample input — we actively monitor issues and ship fixes fast.
- **Feature & field requests:** Need an additional data attribute or filter? [Request it in the Issues tab](https://apify.com/logiover/clinicaltrials-gov-scraper/issues).
- **Enjoying this Actor?** If it saved you engineering time, please consider leaving an honest [review on Apify Store](https://apify.com/logiover/clinicaltrials-gov-scraper/reviews) or bookmarking [logiover/clinicaltrials-gov-scraper](https://apify.com/logiover/clinicaltrials-gov-scraper) — organic developer feedback helps others discover reliable tools and keeps maintenance prioritized.

### ⚖️ Legal

This Actor extracts publicly available information from the official ClinicalTrials.gov data registry, published by the US National Library of Medicine. It is an independent tool and is **not affiliated with, endorsed by or connected to** ClinicalTrials.gov, the NIH or the NLM. Use the data responsibly, respect ClinicalTrials.gov terms of use, and comply with all applicable laws and regulations in your jurisdiction.

***

### ClinicalTrials.gov scraping — frequently asked questions

#### Do I need a ClinicalTrials.gov API key, account or login?

No. This Actor reads publicly available pages and feeds, so there is nothing to register for and no credentials to manage.

#### How do I export ClinicalTrials.gov data to CSV, Excel, JSON or Google Sheets?

Open the **Storage** tab after a run and pick the format you want — CSV, Excel, JSON, XML or an HTML table. For Google Sheets, Airtable or a database, use the dataset URL or the Apify API so the sheet refreshes itself on every run.

#### Can I schedule this ClinicalTrials.gov scraper to run daily or hourly?

Yes. Use the **Schedules** tab and pick a cadence. Daily is enough for most tracking work; pick hourly only if the rows you care about really do change that fast.

#### How many rows can I get, and what does it cost?

See the volume section above for a measured figure. Billing is per result, so you pay for the rows you actually receive and a run that finds nothing costs nothing.

#### Is scraping ClinicalTrials.gov legal?

This Actor collects only information that ClinicalTrials.gov publishes publicly. It does not log in, does not defeat access controls and does not touch private data. You remain responsible for how you use the output, including under GDPR and similar rules where personal data is involved.

#### What happens if ClinicalTrials.gov blocks the run or changes its layout?

A refused exit IP is swapped for a fresh one within a quarter of a second and retried, and rate limiting is waited out rather than fought. If nothing gets through, the run **fails with the reason** instead of reporting success with zero rows — so an empty result always means "no matches", never "the source would not answer".

#### Can I use this with an AI agent, LangChain or an MCP client?

Yes. The Actor is callable over the Apify API and through Apify's MCP server, so an agent can run it and read the dataset back as a tool call.

### 📝 Changelog

#### 2026-11-14

- Verified live high-volume benchmark (2026-11-14): extracted **650** structured records in **69.3s** on the production build.
- Hardened internal proxy stall fallback and pay-per-event dataset instance budget protection.

#### 2026-11-11

- Added reliable terminal run status telemetry and structured Apify AI / MCP Server (`mcp.apify.com`) tool configuration.
- Added direct Issues & Reviews support links and refreshed live maintenance verification.

#### 2026-11-01

- Monthly health check (2026-11-01): a live run on the current build completed successfully and returned data. Input options, output fields and pricing are unchanged.
- README refreshed: 1 link to renamed Actors updated; documented 1 additional input field.

#### 2026-10-15

- A run that reaches its maximum cost per run now stops cleanly with its results saved and a status message, instead of ending as aborted.
- A proxy group your account cannot use no longer stops the run at start-up; it falls back to the default Apify Proxy.
- Runs with a short timeout (API and AI-agent calls) now finish inside it with what they collected, instead of being cut off.
- Memory is managed within the run's own limit, which removes a rare out-of-memory crash on large pages.

#### 2026-09-23

- Fleet-wide quality audit. Verified end to end against live data and re-checked the input schema, the output columns and the run configuration.
- Output verified on a live run: 28 columns returned, 90.2% of cells populated.
- Run reliability reviewed: 100.0% of public runs succeeded in the last 30 days.
- Input schema, output schema and pricing configuration reviewed.

#### 2026-09-01

- Fleet-wide health check. Verified against this Actor's real run history: 30-day success rate, output row counts, per-field fill rates, and peak memory against the configured memory limit.
- Reviewed for the failure patterns that have cost this fleet runs — unguarded proxy setup, retry loops that can outlast the run's own time budget, and full-page HTML parsing that can exhaust a small container.
- No change to input, output fields or scraping logic.

#### 2026-08-11

- Maintenance release: refreshed the build and dependencies.
- Re-verified live execution, non-empty structured output and dataset field/type integrity.
- Reviewed reliability (retries, pagination) and output quality as part of a full-fleet QA pass.

#### 2026-08-01

- Completed the August 2026 full health check: verified empty/programmatic default, Console UI default, and two source-informed alternative inputs on Apify.
- Confirmed successful live execution, non-empty structured output, dataset-field/type integrity, and logical sample quality within the 5-minute quality window.
- Scoped the sponsor input to ClinicalTrials.gov's lead-sponsor field, eliminating collaborator-only matches and documented the registered-name semantics; refreshed the stale Moderna variation to the verified official name ModernaTX, Inc.
- Made first-page API and dataset-write failures fail explicitly when no studies were preserved; the exact ModernaTX completed-study probe returned 30 validated rows.

#### 2026-08-01 — Health-check remediation

- August 2026 monthly health-check remediation is in progress; this build contains fixes verified from empty/default, Console-default, targeted live probes, or field-level semantic review.
- Scoped the sponsor input to ClinicalTrials.gov's lead-sponsor field, eliminating collaborator-only matches and documented the registered-name semantics; refreshed the stale Moderna variation to the verified official name ModernaTX, Inc.
- Live-verified 30 completed ModernaTX lead-sponsored studies (ordered by enrollment), and made first-page API or dataset-write failures fail explicitly instead of reporting a successful empty run.
- The final four-input matrix verdict will be appended after post-build cloud revalidation.

#### 2026-07-06

- ✨ README overhaul: richer output sample, ready-to-run example scenarios, cross-promo links, clearer quick-start and expanded FAQ.

#### 2026-07-01

- Maintenance pass: re-verified end-to-end on live data and confirmed successful runs within the 5-minute quality window on the default input.
- Sharpened Store metadata (SEO title & description) and expanded the FAQ with high-intent, long-tail questions for easier discovery in Google and Apify Store search.
- Added ready-to-run example tasks that cover common real-world use cases.

#### 2026-06-15

- Reliability pass: re-verified end-to-end on live data with real-world inputs. Routine maintenance build.

#### 2026-06-07

- Docs: added coverage for ClinicalTrials.gov API alternative, exporting trial data to CSV/JSON, and scraping clinical trials without an API key.

#### 2026-06-05

- 🛡️ Reliability fix: results are no longer dropped by strict output validation — runs now complete cleanly even at high volume (thousands of results).
- ⚡ Stability & performance hardening; fresh rebuild.

* **2026-06-01** — Maintenance & reliability pass: pulled the latest source and rebuilt the Actor on the current base image; build verified.

- **2026-05-25** — Maintenance & reliability pass: pulled the latest source and rebuilt the Actor on the current base image; build verified.

- **2026-05-20** — Maintenance pass: reviewed the input schema and default values for a smooth one-click start, and rebuilt the Actor on the latest base image.

#### 2026-06-04

- Verified live & refreshed build — reliability/maintenance pass.

***

\*Maintained: last verified 2026-11-14 — checked end-to-end against live run history (reliability, output fields and types, and time/memory budgets).

# Changelog

This Actor's version history is a separate document: https://apify.com/logiover/clinicaltrials-gov-scraper/changelog.md

# Actor input Schema

## `condition` (type: `string`):

Filter by condition or disease, e.g. 'diabetes', 'breast cancer', 'alzheimer'. Leave empty to browse all studies (most recently updated first).

## `searchTerm` (type: `string`):

Free-text search across the whole study record (intervention, sponsor, keyword). Leave empty for no term filter.

## `sponsor` (type: `string`):

Filter by lead-sponsor name, e.g. 'Pfizer', 'ModernaTX, Inc.', or 'National Cancer Institute'. The Actor scopes this to ClinicalTrials.gov's LeadSponsorName field; collaborators are not treated as lead sponsors. Leave empty for all sponsors.

## `overallStatus` (type: `array`):

Filter by one or more trial statuses. Leave empty to include every status.

## `studyType` (type: `string`):

Filter by study type. Leave empty for all types.

## `sort` (type: `string`):

How results are ordered. 'Most recently updated' and 'Newest first' are ideal for browsing with no keyword. 'Best match' only makes sense together with a condition or search term.

## `maxStudies` (type: `integer`):

Maximum studies to save. 0 = all matching (can be hundreds of thousands across the whole database). A default of 200 keeps browse runs fast & cheap — raise it to pull more.

## Actor input object example

```json
{
  "condition": "",
  "searchTerm": "",
  "sponsor": "",
  "overallStatus": [],
  "studyType": "",
  "sort": "LastUpdatePostDate:desc",
  "maxStudies": 200
}
```

# Actor output Schema

## `results` (type: `string`):

All records extracted by this run. Open the Dataset tab to browse, filter, and export as CSV, JSON, or Excel.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "overallStatus": [],
    "maxStudies": 200
};

// Run the Actor and wait for it to finish
const run = await client.actor("logiover/clinicaltrials-gov-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "overallStatus": [],
    "maxStudies": 200,
}

# Run the Actor and wait for it to finish
run = client.actor("logiover/clinicaltrials-gov-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "overallStatus": [],
  "maxStudies": 200
}' |
apify call logiover/clinicaltrials-gov-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,logiover/clinicaltrials-gov-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/ow8ZtkB4nnnaPTbet/builds/ycHZxHfEM93hKxyNy/openapi.json
