# Clinical Trials Monitor: New & Updated Studies Feed (`datacrate/clinical-trials-monitor`) Actor

Which clinical trials were just registered, updated or got results? ClinicalTrials.gov studies by condition, drug, sponsor, phase, status or country, with change detection and delta mode for daily schedules. Official free API, no contact data.

- **URL**: https://apify.com/datacrate/clinical-trials-monitor.md
- **Developed by:** [Data Crate](https://apify.com/datacrate) (community)
- **Categories:** News, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.28 / 1,000 study returneds

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

## Clinical Trials Monitor: New & Updated Studies Feed

Track what is new in clinical research: **newly registered trials, status changes, updated records and freshly posted results** from ClinicalTrials.gov, filtered by condition, drug, sponsor, phase, recruitment status or country. Built for biotech and pharma analysts, CROs, medical writers, investors and patient-advocacy teams who need a daily "what changed" feed without opening the website.

**First run costs about $0.04** (the default run returns 25 studies at $0.0016 per study, volume discounts apply). Apify gives you the first seconds of compute free.

It uses the official, free ClinicalTrials.gov API v2 (U.S. National Library of Medicine). No browser, no proxy, no login, no API key. It never reads or returns investigator names, contact people, e-mail addresses, phone numbers or facility names.

### What you get

- **Four modes:** newly registered studies, recently updated studies, studies with newly posted results, or a plain search.
- **Watchlists:** conditions, drugs, sponsors, free-text terms and countries are OR-ed together, and every filter group is AND-ed (for example `Pfizer OR Novartis` AND `phase 3` AND `recruiting`).
- **Delta mode** (`onlyNewSinceLastRun`): only studies that are new or whose record changed since your last run. Each row carries `isNew`, `previousStatus` and a human-readable `changes` list such as `status: NOT_YET_RECRUITING -> RECRUITING` or `results posted`.
- **Clean schema:** one flat row per study with phases, conditions, interventions, enrollment, key dates, countries, a shortened summary and a direct link.
- **Honest source data:** every row carries `sourceDataTimestamp` (when ClinicalTrials.gov last processed its data) and an attribution line.

### Sample output

```json
{
  "nctId": "NCT07476287",
  "url": "https://clinicaltrials.gov/study/NCT07476287",
  "title": "Symbiotic-Lung-14: A Study to Learn About the Study Medicine Called PF08634404 ...",
  "status": "RECRUITING",
  "sponsor": "Pfizer",
  "sponsorClass": "INDUSTRY",
  "studyType": "INTERVENTIONAL",
  "phases": ["PHASE2"],
  "conditions": ["Small Cell Lung Cancer", "Lung Neoplasms"],
  "interventions": [{ "type": "DRUG", "name": "PF-08634404" }, { "type": "DRUG", "name": "Chemotherapy" }],
  "enrollment": 40,
  "firstPostedDate": "2026-03-17",
  "lastUpdatePostedDate": "2026-11-20",
  "primaryCompletionDate": "2028-03-24",
  "hasResults": false,
  "countries": ["United States"],
  "isNew": false,
  "changes": ["status: NOT_YET_RECRUITING -> RECRUITING"],
  "sourceDataTimestamp": "2026-11-20T10:00:05"
}
```

### Input

| Field | What it does |
|---|---|
| `mode` | `newlyRegistered` (default), `recentlyUpdated`, `resultsPosted` or `search`. |
| `sinceDays` | Date window in days for the first three modes (default 7). |
| `conditions`, `interventions`, `sponsors`, `searchTerms`, `countries` | Watchlists. Entries inside one list are OR-ed; different lists are AND-ed. |
| `statuses`, `phases` | Keep only these recruitment statuses or trial phases. |
| `onlyWithResults` | Keep only studies with posted results. |
| `onlyNewSinceLastRun`, `stateKey` | Delta mode. Use one `stateKey` per watchlist. |
| `summaryChars` | Shorten the brief summary (default 600, 0 removes it). |
| `maxItems` | Stop after this many studies (you pay per study returned). |

Example: all phase 3 trials from Pfizer or Novartis updated in the last 3 days, only the ones that changed since the last run:

```json
{ "mode": "recentlyUpdated", "sinceDays": 3, "sponsors": ["Pfizer", "Novartis"], "phases": ["PHASE3"], "onlyNewSinceLastRun": true, "stateKey": "pharma-p3" }
```

### FAQ

**How current is it?** ClinicalTrials.gov is updated daily. Each row's `sourceDataTimestamp` shows the data timestamp the API reported at run time.

**How does change detection work?** The actor stores a small fingerprint per returned study (status, key dates, enrollment, results flag) in a named key-value store (`clinical-trials-monitor-state`). On the next run with the same mode and State name it compares and lists what changed. The first run has no baseline, so `isNew` is `null` and `changes` is empty.

**Does it include investigators or contact e-mails?** No. Those fields are not requested. This keeps the output free of personal contact data and in line with the ClinicalTrials.gov terms.

**Why are some summaries cut short?** The brief summary is shortened to `summaryChars` characters (default 600) and marked with an ellipsis. Open `url` for the full record.

**What if no studies match?** The run succeeds with an empty dataset and a clear status message (nothing is charged). Widen `sinceDays` or remove filters.

**Is this medical advice?** No. It is a data feed. Always check the official record before relying on it.

### Terms and licence evidence (checked 2026-11-20)

- Terms and Conditions (https://clinicaltrials.gov/about-site/terms-conditions): "ClinicalTrials.gov data are available to all requesters, both within and outside the United States, at no charge." and "These Terms and Conditions apply to all data obtained from ClinicalTrials.gov, independent of format and method of acquisition."
- Conditions for redistribution, which this actor follows: attribute the source as ClinicalTrials.gov, show the date the data were processed (`sourceDataTimestamp`), and state modifications (fields selected and reformatted, summaries shortened, `changes`/`isNew` are computed by this actor). The actor does not claim proprietary rights and does not extract e-mail addresses.
- Some records may carry third-party copyright (the terms say to consult those parties). Only short summaries are returned; full descriptions, eligibility text and results data are not bulk copied.
- API: the documented public ClinicalTrials.gov API v2 (https://clinicaltrials.gov/data-api/about-api). `robots.txt` lists `Disallow: /api/` with `Crawl-delay: 1` for generic crawlers, which targets website crawling; the API is the official programmatic interface for this data, and the actor uses it with a descriptive User-Agent, one request per 1.2 seconds and retries with back-off.

Not affiliated with or endorsed by the U.S. National Library of Medicine or ClinicalTrials.gov.

### Integrations

Schedule it daily (Apify Schedules) with delta mode on, then send new rows to Slack, e-mail, Google Sheets or a webhook. It also works as a tool for AI agents through the Apify MCP server.

### Pricing

Pay per event: one `study-returned` event per study row, **$0.0016** at the base tier (lower with volume discounts). Runs that return nothing cost only Apify's start event, which is covered by the free start seconds. Set `maxItems` to cap your spend.

### Changelog

- 1.0: first release.

# Actor input Schema

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

newlyRegistered = studies first posted in the last N days. recentlyUpdated = studies whose record was updated in the last N days (status changes, new dates, new sites). resultsPosted = studies whose results were posted in the last N days. search = no date window, newest updates first.

## `sinceDays` (type: `integer`):

Date window for the first three modes, counted back from today (1 to 3650). Ignored in search mode.

## `conditions` (type: `array`):

Match any of these, e.g. "lung cancer", "type 2 diabetes", "alzheimer". Synonyms are expanded by ClinicalTrials.gov. Leave empty for all conditions.

## `interventions` (type: `array`):

Match any of these drug, device or procedure names, e.g. "semaglutide", "pembrolizumab".

## `sponsors` (type: `array`):

Match any of these lead sponsors or collaborators, e.g. "Pfizer", "Novartis", "National Cancer Institute".

## `searchTerms` (type: `array`):

Match any of these words anywhere in the study record.

## `countries` (type: `array`):

Keep studies with at least one site in any of these countries, e.g. "Germany", "United States".

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

Keep only these statuses. Empty means all.

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

Keep only these phases. Empty means all.

## `onlyWithResults` (type: `boolean`):

Keep only studies that have results posted on ClinicalTrials.gov.

## `onlyNewSinceLastRun` (type: `boolean`):

Return only studies that are new, or whose record was updated, since the last run with the same mode and State name. The first run returns everything. Every row carries isNew and a changes list (status, dates, enrollment, results).

## `stateKey` (type: `string`):

Name of the saved list of already-returned studies. Use different names for different watchlists.

## `summaryChars` (type: `integer`):

Shorten the brief summary to this many characters. 0 removes it.

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

Stop after this many studies. You are charged per study returned.

## Actor input object example

```json
{
  "mode": "newlyRegistered",
  "sinceDays": 7,
  "conditions": [],
  "interventions": [],
  "sponsors": [],
  "searchTerms": [],
  "countries": [],
  "statuses": [],
  "phases": [],
  "onlyWithResults": false,
  "onlyNewSinceLastRun": false,
  "stateKey": "default",
  "summaryChars": 600,
  "maxItems": 10
}
```

# Actor output Schema

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

One row per ClinicalTrials.gov study (default dataset items), with status, sponsor, phase, conditions, interventions, dates and what changed since the last run.

# 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 = {
    "mode": "newlyRegistered",
    "sinceDays": 7,
    "maxItems": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("datacrate/clinical-trials-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 = {
    "mode": "newlyRegistered",
    "sinceDays": 7,
    "maxItems": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("datacrate/clinical-trials-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 '{
  "mode": "newlyRegistered",
  "sinceDays": 7,
  "maxItems": 10
}' |
apify call datacrate/clinical-trials-monitor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,datacrate/clinical-trials-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/aNLzNrnDFNLSUbHmO/builds/y7S1BOQB9B70YaARp/openapi.json
