# Clinical Trials Scraper (`scrapers_lat/clinicaltrials-scraper`) Actor

Scrape clinical trial studies with title, recruitment status, phase, conditions, interventions, sponsor, enrollment, start and completion dates, study type and location countries. Search by keyword. Export to JSON, CSV or Excel.

- **URL**: https://apify.com/scrapers\_lat/clinicaltrials-scraper.md
- **Developed by:** [Scrapers Lat](https://apify.com/scrapers_lat) (community)
- **Categories:** Business, Developer tools, Other
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $6.80 / 1,000 results

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Clinical Trials Scraper

> Search and export clinical trial studies as clean structured data: official title, recruitment status, phase, conditions, interventions, lead sponsor and collaborators, enrollment, start/completion/primary-completion and last-update dates, study design (allocation, model, purpose, masking), eligibility (sex, min/max age, healthy volunteers), brief summary, results availability, and full site detail. Includes study contacts and investigators with names, phone numbers and emails, plus every trial location with facility, city, state, country and coordinates.

**📥 [Input](https://apify.com/scrapers_lat/clinicaltrials-scraper/input-schema) · 📤 [Output](https://apify.com/scrapers_lat/clinicaltrials-scraper/output-schema) · 💰 [Pricing](https://apify.com/scrapers_lat/clinicaltrials-scraper/pricing) · ▶️ [Examples](https://apify.com/scrapers_lat/clinicaltrials-scraper/examples)**

![Apify](https://img.shields.io/badge/Platform-Apify-1CE1CE?logo=apify\&logoColor=white)
![Clinical trials](https://img.shields.io/badge/Data-Clinical%20trials-blue)
![Output](https://img.shields.io/badge/Output-JSON%20%7C%20CSV%20%7C%20Excel-orange)

<table><tr>
<td align="center"><strong>Study details</strong><br>status, phase, design, eligibility</td>
<td align="center"><strong>Contacts & sites</strong><br>investigator names, phones, emails, locations</td>
<td align="center"><strong>JSON / CSV / Excel</strong><br>output formats</td>
</tr></table>

<br>

### Who is it for

| Use case | Who benefits |
|---|---|
| Medical research | Researchers tracking studies by condition or intervention |
| Patient recruitment | Teams finding recruiting trials by location and phase |
| Competitive intelligence | Analysts monitoring sponsors and pipelines |
| Data science | Builders feeding trial metadata into their own models |

### How to use it

1. Enter a **keyword**, or use the structured filters: **condition/disease**, **intervention/drug**, **sponsor**, **location**, **recruitment status**, **phase**, **study type**, **eligible sex**, **healthy volunteers**, **results available**, **funder type**, a **geo point + radius**, and **start / completion date ranges**. All filters are optional and combine.
2. Set **Max studies** and run.
3. Export as JSON, CSV or Excel, or pull it through the Apify API.

### Frequently Asked Questions

**Can I search by condition or drug?**
Yes. Use the dedicated condition and intervention filters (for example condition `diabetes`, intervention `semaglutide`), or the free-text keyword for a broad match like `cancer immunotherapy`. You can also filter by sponsor and location.

**Can I get only recruiting Phase 3 trials in a country?**
Yes. Combine the recruitment status, phase, study type and location filters (for example status `Recruiting` + phase `Phase 3` + location `United States`). Each record still includes the status, phase and location fields so you can refine further after the run.

**What locations are covered?**
Studies from around the world are included. Each record lists the number of study locations and the countries involved.

**How fresh is the data?**
Records are read live at run time, so each reflects the registry at the moment of the run (see observedAt).

### Example use cases

Ready-to-run example tasks, each preconfigured for a common scenario. Open one and press run, or use it as a template:

- [Clinical trials for cancer immunotherapy](https://apify.com/scrapers_lat/clinicaltrials-scraper/examples/ctgov-trials-cancer-immunotherapy): Collect clinical trials studying cancer immunotherapy including status, phase, sponsor, locations and enrollment counts for medical research teams.
- [Clinical trials for type 2 diabetes](https://apify.com/scrapers_lat/clinicaltrials-scraper/examples/ctgov-trials-type-2-diabetes): Collect clinical trials studying type 2 diabetes including status, phase, sponsor, locations and enrollment counts for medical research teams.
- [Clinical trials for alzheimer disease](https://apify.com/scrapers_lat/clinicaltrials-scraper/examples/ctgov-trials-alzheimer-disease): Collect clinical trials studying alzheimer disease including status, phase, sponsor, locations and enrollment counts for medical research teams.
- [Clinical trials for obesity](https://apify.com/scrapers_lat/clinicaltrials-scraper/examples/ctgov-trials-obesity): Collect clinical trials studying obesity including status, phase, sponsor, locations and enrollment counts for medical research teams.
- [Clinical trials for depression](https://apify.com/scrapers_lat/clinicaltrials-scraper/examples/ctgov-trials-depression): Collect clinical trials studying depression including status, phase, sponsor, locations and enrollment counts for medical research teams.
- [Clinical trials for asthma](https://apify.com/scrapers_lat/clinicaltrials-scraper/examples/ctgov-trials-asthma): Collect clinical trials studying asthma including status, phase, sponsor, locations and enrollment counts for medical research teams.
- [Clinical trials for HIV prevention](https://apify.com/scrapers_lat/clinicaltrials-scraper/examples/ctgov-trials-hiv-prevention): Collect clinical trials studying HIV prevention including status, phase, sponsor, locations and enrollment counts for medical research teams.
- [Clinical trials for parkinson disease](https://apify.com/scrapers_lat/clinicaltrials-scraper/examples/ctgov-trials-parkinson-disease): Collect clinical trials studying parkinson disease including status, phase, sponsor, locations and enrollment counts for medical research teams.
- [Clinical trials for rheumatoid arthritis](https://apify.com/scrapers_lat/clinicaltrials-scraper/examples/ctgov-trials-rheumatoid-arthritis): Collect clinical trials studying rheumatoid arthritis including status, phase, sponsor, locations and enrollment counts for medical research teams.
- [Clinical trials for breast cancer](https://apify.com/scrapers_lat/clinicaltrials-scraper/examples/ctgov-trials-breast-cancer): Collect clinical trials studying breast cancer including status, phase, sponsor, locations and enrollment counts for medical research teams.

### Export, API and AI agents (x402 + MCP)

Export the scraped data to **JSON, CSV or Excel**, pull it as a **dataset** through the Apify **API**, or wire it into your app with **no code**. This web scraper and data extractor also works for bulk data extraction and scheduled runs.

For AI agents: this Actor is available on **x402**, Apify's agentic payment standard built with Coinbase. An AI agent can discover, pay for and run it on its own with a funded wallet and a single HTTP request: no account, no subscription, no API key and no human in the loop. It also runs as an **MCP** tool inside Claude, Cursor and other AI clients out of the box. Learn more about [x402 agentic payments on Apify](https://docs.apify.com/platform/integrations/x402).

### Related scrapers

- [PubMed Articles Scraper](https://apify.com/scrapers_lat/pubmed-scraper)
- [OpenAlex Scholarly Works Scraper](https://apify.com/scrapers_lat/openalex-scraper)
- [Crossref Scholarly Metadata Scraper](https://apify.com/scrapers_lat/crossref-scraper)

### More scrapers at scrapers.lat

This actor is built and maintained by [scrapers.lat](https://scrapers.lat), where we publish scrapers for public platforms: finance, news, real estate, jobs, e-commerce and government data. Browse the full catalog or ask us for a custom scraper at [scrapers.lat](https://scrapers.lat).

***

> This actor is an independent tool and has no affiliation with ClinicalTrials.gov. It only accesses publicly available data. Use the results in accordance with the source's terms.

# Actor input Schema

## `searchQuery` (type: `string`):

Free-text keyword matched across the whole study record (condition, intervention, sponsor, title, NCT id and more). Example: 'cancer immunotherapy'. Leave empty to browse all studies and refine with the filters below.

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

Filter by medical condition or disease. Example: 'type 2 diabetes', 'breast cancer', 'alzheimer'.

## `intervention` (type: `string`):

Filter by intervention, drug or treatment name. Example: 'pembrolizumab', 'semaglutide', 'vaccine'.

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

Filter by lead sponsor or collaborator organization. Example: 'Pfizer', 'Merck', 'National Cancer Institute'.

## `location` (type: `string`):

Filter by a study location term such as a country, state, city or facility name. Example: 'United States', 'Texas', 'Boston'.

## `studyStatus` (type: `array`):

Keep only studies in the selected recruitment statuses. Leave empty for all statuses.

## `phases` (type: `array`):

Keep only studies in the selected trial phases. Leave empty for all phases.

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

Restrict to interventional or observational studies.

## `sex` (type: `string`):

Restrict to studies enrolling a specific sex.

## `acceptsHealthyVolunteers` (type: `boolean`):

Keep only studies that accept healthy volunteers.

## `resultsAvailable` (type: `string`):

Restrict by whether posted study results are available.

## `funderTypes` (type: `array`):

Keep only studies funded by the selected funder types. Leave empty for all.

## `geoLatitude` (type: `integer`):

Latitude of a point to search near (use together with longitude and radius). Example: 40 for New York.

## `geoLongitude` (type: `integer`):

Longitude of a point to search near (use together with latitude and radius). Example: -74 for New York.

## `geoRadiusMiles` (type: `integer`):

Search radius in miles around the latitude/longitude point. Defaults to 50 miles when a point is set.

## `startDateFrom` (type: `string`):

Keep only studies whose start date is on or after this date (YYYY-MM-DD). Example: 2023-01-01.

## `completionDateTo` (type: `string`):

Keep only studies whose completion date is on or before this date (YYYY-MM-DD). Example: 2026-12-31.

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

Maximum number of clinical trial studies to collect.

## Actor input object example

```json
{
  "searchQuery": "cancer immunotherapy",
  "studyType": "",
  "sex": "",
  "acceptsHealthyVolunteers": false,
  "resultsAvailable": "",
  "maxStudies": 50
}
```

# Actor output Schema

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

No description

# 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 = {
    "searchQuery": "cancer immunotherapy",
    "maxStudies": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapers_lat/clinicaltrials-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 = {
    "searchQuery": "cancer immunotherapy",
    "maxStudies": 50,
}

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

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

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

```

## CLI example

```bash
echo '{
  "searchQuery": "cancer immunotherapy",
  "maxStudies": 50
}' |
apify call scrapers_lat/clinicaltrials-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=scrapers_lat/clinicaltrials-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

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