# Clinical Trials Monitor — New & Updated Studies (MCP) (`amygraphics/clinicaltrials-gov-monitor`) Actor

ClinicalTrials.gov official feed: new & updated studies with phase, enrollment, sponsor, trial sites and central contacts (emails/phones free). Filter by condition/status/phase/country. Monitor mode = daily digest of what changed yesterday. No API key. MCP-ready.

- **URL**: https://apify.com/amygraphics/clinicaltrials-gov-monitor.md
- **Developed by:** [Zakaria el bouami](https://apify.com/amygraphics) (community)
- **Categories:** Lead generation, Automation, MCP servers
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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 Monitor — New & Updated Studies (MCP)

> The full **ClinicalTrials.gov official feed**: new and updated studies, with phase, enrollment, sponsors, trial sites and — **central contact people with emails & phones, FREE**. **Monitor mode = daily digest of what changed yesterday.** No API key. MCP-ready.

***

### ✨ The 6 things ChatGPT can't do (built in)

| Ingredient | Here |
|---|---|
| 🔒 **Hard-to-get data** | Official v2 API chained: `nextPageToken` pagination, AREA-date filtering on `LastUpdatePostDate`, module-by-module extraction (designmodules, arms, eligibility, contacts). 100% completeness, zero hallucination. |
| 🛠️ **Hardest problems, solved** | Server-side condition/status/location/sponsor filters + client-side phase/enrollment/keyword/country refinement, NCT-id dedupe, totalCount bookkeeping. |
| ⚙️ **Automation** | `monitor` + daily schedule = **"every trial ever registered or updated yesterday in {your field}"** — CROs, recruiters, patient-advocacy groups and pharma BD teams pay real money for exactly this. |
| 🧠 **AI-agent cheap** | $0.001 start + $0.001 per study — **10× cheaper than the gold-label leader** (alizarin $0.01 per call), 2× cheaper than the closest (pink_comic $0.002). |

***

### 🚀 3 recipes that pay

#### #1 — Daily pipeline watch (pharma BD / investors)

```json
{ "mode": "monitor", "condition": "crohn's", "daysBack": 1, "statusesInclude": ["RECRUITING", "NOT_YET_RECRUITING"] }
```

→ Schedule 07:00 → every new Crohn's trial registered globally, 365 days a year → Slack digest.

#### #2 — CRO prospecting (win patients, win trials)

```json
{ "mode": "search", "condition": "oncology", "phases": ["PHASE2", "PHASE3"], "minEnrollment": 100, "countryIncludes": "France", "daysBack": 14, "maxResults": 300 }
```

→ All big French P2/P3 oncology trials updated in 2 weeks — **with the investigators' contact emails**.

#### #3 — Competitor intelligence

```json
{ "sponsorQuery": "Pfizer", "daysBack": 30, "statusesInclude": ["RECRUITING", "COMPLETED"] }
```

**MCP**: `https://mcp.apify.com/?actors=amygraphics/clinicaltrials-gov-monitor` — your agent answers *"any new phase-3 ALS trial posted this week?"* with the actual official record.

***

### 📦 What each row contains

`nctId` · `title`/`officialTitle` · `url` · `status` · `phase` · `studyType` · `enrollment` + estimated flag · `conditions[]` · `interventions[]` (DRUG/DEVICE/…) · `sponsor` + `collaborators[]` · `locations[]` (sites with city/country) · **contacts\[] (name, role, phone, email — free)** · `eligibility` (sex/ages/healthy) · `startDate`/`completionDate` · `firstPostedAt`/`lastUpdatePostedAt` · `isNew`/`firstSeenAt` (monitor).

***

### 🆚 Competition

| Actor | tot users | Pricing | Monitor | Emails free |
|---|---|---|---|---|
| alizarin (gold) | 12 | **$0.01 per query** ×N calls + $0.1 start | ❌ | partial |
| ryanclinton/clinical-trial-tracker | 7 | $0.002/trial | ❌ | ❌ |
| pink_comic | 5 | $0.002/item | ❌ | ❌ |
| **us** | — | **$0.001/study** | ✅ KV dedupe | ✅ always |

***

### 🧪 Input reference

| Key | Default | What it does |
|---|---|---|
| `mode` | `search` | `monitor` = only new/updated (KV `ctgov-seen`) |
| `condition` / `location` / `sponsorQuery` | — | server-side filters |
| `statusesInclude` | recruiting set | pipe-joined API-side |
| `timeFrom`/`timeTo` | rolling `daysBack` 3 | exact update window |
| `phases`, `keywords`, `sponsorIncludes`, `countryIncludes` | — | client-side refinements |
| `minEnrollment`/`maxEnrollment` | — | trial-size window |
| `maxResults`/`maxPages` | 200 / 20 | caps (100/page) |

**Fair use** — ClinicalTrials.gov is the NIH public register; the v2 API is officially open. We pace politely and respect the `LastUpdatePostDate` semantics (monitor = updated studies, not just brand-new).

***

### 💰 Pricing

- **$0.001** actor start · **$0.001** per study — contacts, sites, eligibility FREE

| Rows | Cost (us) | vs leader |
|---|---|---|
| 200 trials (2-week oncology scan) | ~$0.20 | $2+/run |
| Daily condition digest (30 days) | ~$1-3/month | $9+/month |

**Part of the AmyGraphics data empire** — 24 public actors: tenders (EU/US/UK), registers (UK companies, US funding), conferences, trade shows, jobs & real estate. Contact: morocco.uiux@gmail.com · apify.com/amygraphics

# Actor input Schema

## `mode` (type: `string`):

search = window of studies. monitor = only new/updated studies never returned before (KV dedupe) — schedule daily.

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

Server-side filter: 'cancer', 'diabetes', 'Alzheimer', 'heart failure'…

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

Server-side location filter: 'Paris', 'United States', 'Germany'…

## `sponsorQuery` (type: `string`):

Server-side sponsor filter: 'Pfizer', 'Mayo Clinic', 'Ipsen'…

## `statusesInclude` (type: `array`):

RECRUITING, NOT_YET_RECRUITING, COMPLETED, TERMINATED… — empty = all.

## `timeFrom` (type: `string`):

Studies last updated from (YYYY-MM-DD). Empty = rolling daysBack.

## `timeTo` (type: `string`):

Studies last updated until (YYYY-MM-DD). Default today.

## `daysBack` (type: `integer`):

Rolling window when From is empty (1 = yesterday+today).

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

Client-side match on title + conditions + interventions (e.g. 'NDV', 'gemcitabine').

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

PHASE1 / PHASE2 / PHASE3 / PHASE4 / NA — empty = all.

## `sponsorIncludes` (type: `string`):

Client-side sponsor substring match.

## `countryIncludes` (type: `string`):

Client-side location substring match on trial sites (e.g. 'France', 'Boston').

## `minEnrollment` (type: `integer`):

Drop trials with fewer planned participants.

## `maxEnrollment` (type: `integer`):

Drop trials above this size (0 = no cap).

## `maxResults` (type: `integer`):

Stop after this many studies.

## `maxPages` (type: `integer`):

Hard cap on API pages (100 studies/page).

## `requestDelaySecs` (type: `number`):

Politeness pacing toward the official portal.

## `proxyConfiguration` (type: `object`):

NOT needed — official API.

## Actor input object example

```json
{
  "mode": "search",
  "condition": "",
  "location": "",
  "sponsorQuery": "",
  "statusesInclude": [
    "RECRUITING",
    "NOT_YET_RECRUITING"
  ],
  "timeFrom": "",
  "timeTo": "",
  "daysBack": 3,
  "keywords": "",
  "phases": [],
  "sponsorIncludes": "",
  "countryIncludes": "",
  "minEnrollment": 0,
  "maxEnrollment": 0,
  "maxResults": 200,
  "maxPages": 20,
  "requestDelaySecs": 0.25,
  "proxyConfiguration": {}
}
```

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("amygraphics/clinicaltrials-gov-monitor").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("amygraphics/clinicaltrials-gov-monitor").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 '{}' |
apify call amygraphics/clinicaltrials-gov-monitor --silent --output-dataset

```

## MCP server setup

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

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/tNxqMXkkOC7RDbCCg/builds/lH0Xiek5RKBmKTmKJ/openapi.json
