# Clinical Trials Search & Monitor: ClinicalTrials.gov (`hydrocore/clinical-trials-search`) Actor

Search ClinicalTrials.gov by condition, drug, sponsor or location (or paste NCT IDs) and get flat, AI-ready study rows: status, phase, sponsor, enrollment, key dates, sites and countries, outcomes, eligibility and a summary line. Monitor mode returns only new or updated studies.

- **URL**: https://apify.com/hydrocore/clinical-trials-search.md
- **Developed by:** [Hydrocore Data](https://apify.com/hydrocore) (community)
- **Categories:** AI, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.20 / 1,000 studies

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 Search & Monitor: ClinicalTrials.gov

Search the official ClinicalTrials.gov registry by condition, drug, sponsor, free terms or location, or paste NCT IDs, and get one flat, clean row per study: status, phase, sponsor and sponsor type, enrollment, start / primary completion / completion dates, number of sites and countries, interventions, primary outcomes, design, eligibility basics, MeSH terms and a one-line summary for AI tools. Turn on monitor mode and each scheduled run returns only studies that are new or whose record changed.

### ✅ What you get

- NCT ID, title, status, phase, study type, conditions, interventions
- Lead sponsor, sponsor type, collaborators
- Enrollment (estimated or actual) and key dates
- Site count, countries and the first N sites
- Design: allocation, model, masking, purpose; age, sex, healthy volunteers
- Primary outcomes, MeSH terms, official title and brief summary
- A summary line for AI and the study link

### 🏆 Why this Actor

- **Flat and agent-ready:** the registry's deeply nested JSON becomes 38 stable columns with YYYY-MM-DD dates, readable phases ("Phase 2 / Phase 3") and "Type: name" interventions, ready for Sheets, BI or an LLM.
- **Real filters and sorting:** status, phase, "updated in the last N days", and sort by last update, newest, enrollment or start date, all applied by ClinicalTrials.gov before the cap.
- **Monitor mode built in:** schedule it with a key and get only new or changed studies, so competitive-intelligence and patient-recruitment alerts stay short. Unchanged studies are skipped before the cap and never charged.
- **Privacy-aware:** site names, cities and countries are included; personal contact names, phone numbers and emails are left out.
- **Simple pricing:** one price per study, no high start fee.

### 💡 Use cases

**Apify Store use cases:** Market research · Monitor competitors · Feed AI agents & RAG

- Pharma and biotech competitive intelligence: every Phase 3 trial for a drug class, refreshed weekly
- Investors and analysts: track trial starts, completions and terminations by sponsor
- Patient recruitment and CROs: recruiting studies by condition and location
- AI agents (ChatGPT, Claude, n8n): "which recruiting obesity trials test tirzepatide, and when do they finish?"
- Medical writers and RAG pipelines: clean study summaries with citable NCT links

### 🚀 How to use

1. Type a condition, drug, sponsor, terms and/or location, or paste NCT IDs.
2. Optional: pick statuses and phases, an "updated in the last N days" window, a sort and a cap.
3. For alerts, turn on **Only new or updated studies** with a monitor key and schedule the Actor.
4. Open **Overview**, **Design & eligibility**, **Sites** or **Summary for AI**, or export.

### ⚙️ Input

| Field | What it does |
|---|---|
| `condition / intervention / sponsor / otherTerms / location` | Search fields (combined with AND). Example prefill: obesity + tirzepatide. If everything is empty, that example search runs. |
| `nctIds` | Specific studies by NCT ID or URL. |
| `statuses` | Recruitment statuses (example prefill: Recruiting; empty = all). |
| `phases` | Phases (empty = all). |
| `updatedWithinDays` | Only records updated in the last N days (default 0 = any time). |
| `sortBy` | Last updated (default), newest, enrollment, start date or relevance. |
| `maxResults` | Most studies to save, default 50. |
| `maxSitesPerStudy` | Sites listed per study, default 20. |
| `onlyNewOrUpdated / monitorKey` | Monitor mode (default off) and the name of the watch. |

Example input:

```json
{
  "condition": "breast cancer",
  "phases": [
    "PHASE3"
  ],
  "statuses": [
    "RECRUITING",
    "NOT_YET_RECRUITING"
  ],
  "location": "Germany",
  "sortBy": "newest",
  "maxResults": 25
}
```

### ⬆️ Output

One row per study. Every row has the same 38 keys in the same order; missing values are `null`, and lists that are empty in the registry are `[]`. The example is a real row from a test run of the current build, with `sites`, `countries` and `briefSummary` shortened.

Overview fields:

| Field | Type | Example | Description |
|---|---|---|---|
| `nctId` | string | "NCT07845500" | ClinicalTrials.gov identifier. Dedupe key. |
| `briefTitle` | string | "A Study to Learn About Switching to a Monthly Study Medicin… | Brief title. |
| `overallStatus` | string | "RECRUITING" | RECRUITING, NOT_YET_RECRUITING, ACTIVE_NOT_RECRUITING, COMPLETED, TERMINATED, WITHDRAWN... |
| `phase` | string | "Phase 3" | Phase 1, Phase 2, Phase 2 / Phase 3, Phase 3, Phase 4, Not applicable. null for observational studies. |
| `leadSponsor` | string | "Pfizer" | Lead sponsor. |
| `enrollmentCount` | integer | 660 | Planned (ESTIMATED) or actual (ACTUAL) number of participants. |
| `primaryCompletionDate` | string | "2028-02-16" | Primary completion date (YYYY-MM-DD), when primary outcome data is complete. |
| `siteCount` | integer | 26 | Number of study sites listed. |
| `lastUpdatePostedDate` | string | "2026-11-05" | When the record was last updated (YYYY-MM-DD). Monitor mode uses this to detect changes. |
| `studyUrl` | string | "https://clinicaltrials.gov/study/NCT07845500" | ClinicalTrials.gov study page. |

All 38 fields (in order): `recordType`, `nctId`, `briefTitle`, `overallStatus`, `phase`, `studyType`, `conditions`, `interventions`, `leadSponsor`, `sponsorClass`, `enrollmentCount`, `enrollmentType`, `startDate`, `primaryCompletionDate`, `completionDate`, `firstPostedDate`, `lastUpdatePostedDate`, `hasResults`, `siteCount`, `countries`, `studyUrl`, `collaborators`, `minimumAge`, `maximumAge`, `sex`, `healthyVolunteers`, `allocation`, `interventionModel`, `masking`, `primaryPurpose`, `primaryOutcomes`, `meshTerms`, `sites`, `officialTitle`, `briefSummary`, `summaryText`, `searchQuery`, `scrapedAt`.

Real row from a test run of the current build:

```json
{
  "recordType": "study",
  "nctId": "NCT07845500",
  "briefTitle": "A Study to Learn About Switching to a Monthly Study Medicine Called Berobenatide (PF-08653944) to Help Keep Weight Off in People With Overweight or Obesity",
  "overallStatus": "RECRUITING",
  "phase": "Phase 3",
  "studyType": "INTERVENTIONAL",
  "conditions": [
    "Obesity",
    "Overweight and/or Obesity",
    "Overweight",
    "Treatment Of Obesity"
  ],
  "interventions": [
    "Drug: Semaglutide",
    "Drug: Berobenatide",
    "Drug: Tirzepatide"
  ],
  "leadSponsor": "Pfizer",
  "sponsorClass": "INDUSTRY",
  "enrollmentCount": 660,
  "enrollmentType": "ESTIMATED",
  "startDate": "2026-09-30",
  "primaryCompletionDate": "2028-02-16",
  "completionDate": "2028-02-16",
  "firstPostedDate": "2026-09-29",
  "lastUpdatePostedDate": "2026-11-05",
  "hasResults": false,
  "siteCount": 26,
  "countries": [
    "United States",
    "Australia"
  ],
  "studyUrl": "https://clinicaltrials.gov/study/NCT07845500",
  "collaborators": [],
  "minimumAge": "18 Years",
  "maximumAge": null,
  "sex": "ALL",
  "healthyVolunteers": false,
  "allocation": "RANDOMIZED",
  "interventionModel": "PARALLEL",
  "masking": "NONE",
  "primaryPurpose": "TREATMENT",
  "primaryOutcomes": [
    "Percent change from baseline in body weight"
  ],
  "meshTerms": [
    "Obesity",
    "Overweight",
    "Nutrition Disorders"
  ],
  "sites": [
    "University of Alabama at Birmingham, Birmingham, Alabama, United States (recruiting)",
    "San Fernando Valley Health Institute, Canoga Park, California, United States (recruiting)",
    "Velocity Clinical Research - Los Angeles, Los Angeles, California, United States (recruiting)"
  ],
  "officialTitle": "A PHASE 3 STUDY TO EVALUATE THE SWITCH TO MONTHLY BEROBENATIDE FOR MAINTAINING WEIGHT IN ADULTS WHO ARE ON WEEKLY SEMAGLUTIDE OR TIRZEPATIDE (VESPER-SWITCH)",
  "briefSummary": "The purpose of this study is to learn about the safety and effectiveness of berobenatide in adults with overweight or obesity who have already lost weight while taking semaglutide or tirzepatide. The  …",
  "summaryText": "NCT07845500: A Study to Learn About Switching to a Monthly Study Medicine Called Berobenatide (PF-08653944) to Help Keep Weight Off in People With Overweight or Obesity. Phase 3 interventional, recruiting, sponsored by Pfizer. Enrollment 660 (estimated). Primary completion 2028-02-16. 26 sites in United States, Australia.",
  "searchQuery": "condition: obesity; intervention: tirzepatide",
  "scrapedAt": "2026-11-11T21:10:45.108Z"
}
```

Views: **Overview**, **Design & eligibility**, **Sites**, **Summary for AI**, **Detailed (all fields)**. Export as JSON, CSV, Excel, XML or HTML from the Storage tab or the API (`/datasets/{id}/items?format=csv&view=overview`). The run summary (`OUTPUT` record in the key-value store) shows how many studies match the search in total, how many were fetched and saved, unchanged studies skipped in monitor mode, duplicates, NCT IDs not found and invalid IDs.

### 💰 Pricing

Competitive pricing, pay per result: **$0.004 per study** on the Free plan, less on higher plans, plus the $0.0005 Actor start. 1,000 studies cost about $4 on Free. Duplicates and, in monitor mode, unchanged studies are free.

| Event | What it is | Free | Bronze | Silver | Gold+ |
|---|---|---|---|---|---|
| Study | One clinical study saved with status, phase, sponsor, enrollment, dates, sites and eligibility. Duplicates and (in monitor mode) unchanged studies are free. | $0.004 | $0.0037 | $0.0034 | $0.0032 |
| Actor start | Once per run (Apify standard start event, per GB of memory; the default 256 MB = one fee) | $0.0005 | $0.0005 | $0.0005 | $0.0005 |

### 🔁 Integrations

Works with the Apify API, MCP (AI agents), Make, n8n, Zapier, Google Sheets and webhooks. Field names are stable camelCase, so mappings do not break between runs.

### ❓ FAQ

**Where does the data come from?**

From the official ClinicalTrials.gov API v2 run by the US National Library of Medicine. It covers studies registered from all over the world. No scraping of web pages and no login.

**How do the search fields combine?**

All filled fields must match (AND). Condition, intervention and sponsor use ClinicalTrials.gov's own field search with synonyms; Other terms searches everything and supports AND / OR / NOT and quotes.

**How does monitor mode work?**

With "Only new or updated studies" on, the Actor remembers each NCT ID with its last-update date under your monitor key. Next run, unchanged studies are skipped before the cap (free) and you get only new studies or studies whose record changed.

**Why are some dates the 1st of the month?**

Registries often give month-only dates such as 2026-03. We store them as 2026-03-01 so every date column has the same YYYY-MM-DD format.

**Why is phase null?**

Observational studies have no phase. Device or behavioral studies often use "Not applicable".

**Are contact details included?**

No personal contacts. You get facility, city, state, country and site status, plus the study link where official contact details are shown.

**Can I get results data?**

`hasResults` tells you whether results are posted. Full results tables are not included in this version.

**How many studies can I get?**

Up to 10,000 per run. A broad search such as "cancer" matches tens of thousands of studies, so use filters, a sort and a cap.

**Is it good for AI agents and MCP?**

Yes. Single-purpose inputs, field descriptions in the dataset schema, and `summaryText` gives a one-line answer with phase, status, sponsor, enrollment, completion date and sites.

**How fast is it?**

About 2 to 5 seconds for 50 studies at 256 MB (100 studies per API page).

### Ready-made examples

- [Recruiting Phase 3 breast cancer trials in Germany](https://apify.com/hydrocore/clinical-trials-search/examples/recruiting-phase-3-breast-cancer-trials-in-germany)

### 🛟 Support

Found a problem or need a field? Open an issue on the Issues tab; we read every issue.

### Changelog

- 1.0 (2026-11-11): first release.

# Actor input Schema

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

For example obesity, breast cancer, long covid. Uses ClinicalTrials.gov synonym matching. If you leave every search field and NCT IDs empty, the example search (obesity + tirzepatide, recruiting) runs.

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

For example tirzepatide, pembrolizumab, CAR-T, cognitive behavioral therapy.

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

Lead sponsor or collaborator, for example Pfizer or National Cancer Institute.

## `otherTerms` (type: `string`):

Any other words (title, summary, keywords). Supports the ClinicalTrials.gov search syntax (AND, OR, NOT, quotes).

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

City, state or country with study sites, for example Boston, Texas or Germany.

## `nctIds` (type: `array`):

Specific studies by NCT ID or study URL (NCT05556512). Fetched in addition to the search.

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

Only studies with these statuses. Empty = all statuses.

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

Only studies in these phases. Empty = all phases.

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

Only studies whose record was updated in the last N days (0 = any time).

## `sortBy` (type: `string`):

Sorting is done by ClinicalTrials.gov before the cap, so the top N really are the top N.

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

Most studies to save (and charge). Default 50.

## `maxSitesPerStudy` (type: `integer`):

How many sites to list in the sites field (siteCount and countries always cover all sites). 0 = none.

## `onlyNewOrUpdated` (type: `boolean`):

Remember studies between runs and only save (and charge) studies that are new or whose record changed since the last run with the same monitor key. Great for schedules.

## `monitorKey` (type: `string`):

Name for this watch (letters, digits, dashes). Use a different key for each saved search. Default: default.

## Actor input object example

```json
{
  "condition": "obesity",
  "intervention": "tirzepatide",
  "statuses": [
    "RECRUITING"
  ],
  "updatedWithinDays": 0,
  "sortBy": "lastUpdate",
  "maxResults": 50,
  "maxSitesPerStudy": 20,
  "onlyNewOrUpdated": false
}
```

# Actor output Schema

## `overview` (type: `string`):

Status, phase, sponsor, enrollment and dates.

## `design` (type: `string`):

Who can join and how the study is run.

## `sites` (type: `string`):

Where the study runs.

## `ai` (type: `string`):

One plain-English line per study.

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

Every field for each row.

## `summary` (type: `string`):

Run summary: total studies matching the search, fetched, saved, unchanged studies skipped in monitor mode, duplicates, NCT IDs not found, invalid IDs and errors.

# 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",
    "intervention": "tirzepatide",
    "statuses": [
        "RECRUITING"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("hydrocore/clinical-trials-search").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",
    "intervention": "tirzepatide",
    "statuses": ["RECRUITING"],
}

# Run the Actor and wait for it to finish
run = client.actor("hydrocore/clinical-trials-search").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",
  "intervention": "tirzepatide",
  "statuses": [
    "RECRUITING"
  ]
}' |
apify call hydrocore/clinical-trials-search --silent --output-dataset

```

## MCP server setup

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

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/h4czBK7hsyi1UwWMB/builds/7WK2WIrsIsvp8dwEy/openapi.json
