# Clinical Trials Scraper: ClinicalTrials.gov Studies & Sites (`tacps126/clinical-trials`) Actor

Clinical trials from ClinicalTrials.gov by condition, drug, sponsor, location, status, phase and sponsor type: dates, enrollment, design, interventions, eligibility, central contacts (name, phone, email) and sites. New-study alerts.

- **URL**: https://apify.com/tacps126/clinical-trials.md
- **Developed by:** [Tapaswai Choudhary](https://apify.com/tacps126) (community)
- **Categories:** Lead generation, Automation
- **Security:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.40 / 1,000 studies

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
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

## Clinical Trials Scraper — ClinicalTrials.gov Studies & Sites

Clinical trials from **ClinicalTrials.gov** (500,000+ studies worldwide) by condition, drug or intervention, sponsor and location, filtered by status, phase, study type and sponsor type. Each study comes with dates, enrollment, design, interventions, primary outcomes, eligibility, **central contacts (name, phone, email)**, officials, and **sites** with city, country and coordinates.

**Built for** CROs and site networks, pharma and biotech business development, medtech and suppliers selling to trial sites, patient-recruitment firms, investors and analysts, and AI agents.

### What you get

| Field | Meaning |
|---|---|
| `nctId`, `url`, `title`, `officialTitle`, `acronym` | The study |
| `status`, `startDate`, `primaryCompletionDate`, `completionDate`, `firstPosted`, `lastUpdated`, `whyStopped` | Where it stands |
| `sponsor`, `sponsorType`, `collaborators`, `organization` | Who runs it |
| `studyType`, `phases`, `enrollment`, `allocation`, `primaryPurpose`, `masking` | Design |
| `conditions`, `keywords`, `interventions`, `primaryOutcomes`, `summary`, `eligibility` | What it tests and on whom |
| `centralContacts`, `officials` | Who to contact |
| `countries`, `locationCount`, `locations` | Where (sites with contacts and coordinates) |

### Why this Actor

- **Every filter that matters:** condition, drug, sponsor, place, status, phase, study type, industry vs academic sponsor, newly posted or recently updated.
- **Contacts and sites** in each row, ready for outreach or site mapping.
- **New-study alerts:** *Only new studies* on a weekly schedule.
- **For AI agents.** Callable as an MCP tool.

### How to use it

Recruiting industry-sponsored phase 3 obesity trials:

```json
{ "condition": "obesity", "statuses": ["RECRUITING"], "phases": ["PHASE3"], "sponsorTypes": ["INDUSTRY"] }
```

New oncology studies with a site in India, every week:

```json
{ "condition": "cancer", "location": "India", "firstPostedWithinDays": 7, "onlyNew": true }
```

### Pricing

**$3 per 1,000 studies** plus a small start fee per run. On the Apify free plan a run returns up to 100 studies.

### Good to know

- Data is as registered on ClinicalTrials.gov (U.S. National Library of Medicine). Questions: **tacps126@gmail.com**.

# Actor input Schema

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

Disease or condition, e.g. obesity, breast cancer, Alzheimer's.

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

e.g. semaglutide, pembrolizumab, device name.

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

e.g. Pfizer, Novo Nordisk, National Cancer Institute.

## `keywords` (type: `string`):

Anywhere in the study record.

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

Country, state or city of a study site, e.g. India, Texas, Boston.

## `statuses` (type: `array`):

Empty = any status.

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

Empty = any phase.

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

Kind of study.

## `sponsorTypes` (type: `array`):

Empty = any sponsor.

## `firstPostedWithinDays` (type: `integer`):

New studies only.

## `updatedWithinDays` (type: `integer`):

Studies with any update in this window.

## `maxLocationsPerStudy` (type: `integer`):

Study sites listed per row (all countries are always listed).

## `maxItems` (type: `integer`):

Most studies returned per run.

## `onlyNew` (type: `boolean`):

Schedule the Actor and each run returns only studies earlier runs did not deliver.

## `monitorName` (type: `string`):

Optional name for the “only new” history, so several monitors can run side by side.

## `tenantId` (type: `string`):

Optional label used to keep separate histories for different clients or teams.

## `debug` (type: `boolean`):

Save extra diagnostics with the run (for support requests).

## Actor input object example

```json
{
  "condition": "obesity",
  "studyType": "",
  "maxLocationsPerStudy": 25,
  "maxItems": 500,
  "onlyNew": false,
  "debug": false
}
```

# Actor output Schema

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

The produced items (default dataset items).

# 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 = {
    "condition": "obesity"
};

// Run the Actor and wait for it to finish
const run = await client.actor("tacps126/clinical-trials").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 = { "condition": "obesity" }

# Run the Actor and wait for it to finish
run = client.actor("tacps126/clinical-trials").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 '{
  "condition": "obesity"
}' |
apify call tacps126/clinical-trials --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,tacps126/clinical-trials"
        }
    }
}
```

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/3A3RCwBmHP5byFVHZ/builds/BloicZMS6VTs0456d/openapi.json
