# Clinical Trials Intelligence — ClinicalTrials.gov + AI (`noniner/clinicaltrials-intelligence`) Actor

Search clinical trials from the official ClinicalTrials.gov registry. Give it conditions, drugs or keywords; get back trial status, phases, sponsors and eligibility.

- **URL**: https://apify.com/noniner/clinicaltrials-intelligence.md
- **Developed by:** [Fredrik Hansson](https://apify.com/noniner) (community)
- **Categories:** AI, Business, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $66.00 / 1,000 query analyzeds

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 Intelligence — ClinicalTrials.gov + AI

**Turn any drug, disease or sponsor into a read on the clinical pipeline.** Give it a condition (`glioblastoma`), a drug (`semaglutide`) or a company (`Moderna`) and this Actor searches the official **ClinicalTrials.gov** registry, pulls every matching trial — phase, status, enrollment, sponsor, interventions — and uses OpenAI to summarise the **research landscape**: who's leading, where the pipeline sits, which trials matter, and what's emerging.

You bring a search term. It hands back a structured trial table plus an analyst's one-page read.

***

### The flow

```
1. You give a query                2. ClinicalTrials.gov API v2          3. Get trials + an AI landscape
   condition · drug · sponsor  →      (official registry, free,      →      phases · status · sponsors ·
   · keyword                           no key)                               enrollment · AI summary
```

1. **You give one or more queries** — conditions, drugs, sponsors or keywords.
2. **The Actor queries ClinicalTrials.gov** (the official U.S. registry) via its public v2 API, sorted by most-recently-updated, optionally filtered by recruitment status.
3. **You get back** one record per trial, plus a **landscape record per query** with aggregate metrics and an AI read of the research field.

***

### What you get per query

For every query the Actor:

1. **Pulls matching trials** from ClinicalTrials.gov (up to `maxTrialsPerQuery`), each mapped to: `nctId`, `title`, `overallStatus`, `phases`, `studyType`, `enrollment`, `leadSponsor`, `conditions`, `interventions`, `startDate`, `completionDate`, and a direct `url`.
2. **Aggregates the set** into `totalTrials` (registry-wide count), `phaseDistribution`, `statusDistribution`, `topSponsors` and `recruitingCount`.
3. **Runs one AI pass** (OpenAI `gpt-4o-mini`, a fast and low-cost model) over the trial set to produce:
   - **`landscapeSummary`** — 2-3 sentences on the overall state of research for the query.
   - **`activePhaseFocus`** — one sentence on where the pipeline sits across phases.
   - **`leadingSponsors`** — the most active sponsors.
   - **`emergingInterventions`** — drug / approach names seen across the trials.
   - **`notableTrials`** — 3-6 standout trials, each with `{ nctId, title, phase, sponsor, why }`.
   - **`signalForInvestors`** — one neutral, grounded sentence on research momentum.

The AI is grounded **only** in the trials pulled — it never invents NCT ids, sponsors or phases.

> **Not medical or financial advice.** This Actor surfaces and summarises public registry data for research and business-intelligence purposes. Nothing it outputs is clinical guidance or an investment recommendation.

***

### Three ways people use it

- **Pharma / biotech competitive intelligence** — track a competitor's **drug pipeline**, watch a disease area fill with trials, and see which **sponsors** own which phases. A living **clinical trials API** feed for your BD and strategy teams, built on **ClinicalTrials.gov**.
- **Investor / BD due diligence** — before a deal or a thesis, pull every trial for an asset or an indication, read the phase mix and the enrollment, and get a grounded landscape summary — **biotech intelligence** without a Bloomberg terminal.
- **Clinical research monitoring** — CROs, sites and med-affairs teams run standing **trial monitoring** on conditions and interventions to catch new recruiting studies, terminations and completions the moment the registry updates.

Keywords this covers: clinical trials API, ClinicalTrials.gov, drug pipeline, biotech intelligence, trial monitoring.

***

### Input

| Field | Type | Notes |
|---|---|---|
| `queries` | array | **Required.** Conditions, drugs, sponsors or keywords. One per line. |
| `statusFilter` | array | Optional. Only return trials in these statuses: `RECRUITING`, `ACTIVE_NOT_RECRUITING`, `COMPLETED`, `TERMINATED`. Omit for all. |
| `maxTrialsPerQuery` | integer | Trials to pull per query. Default `25`. |
| `maxResults` | integer | Cap how many queries to process. Default `100`. |
| `maxConcurrency` | integer | Queries processed in parallel. Default `3`. |
| `model` | string | Override the OpenAI model. Default `gpt-4o-mini`. |

#### Minimal input example

```json
{
  "queries": ["glioblastoma", "semaglutide", "Moderna"],
  "maxTrialsPerQuery": 25
}
```

***

### Output example

A **trial** record (one per trial):

```json
{
  "query": "glioblastoma",
  "recordType": "trial",
  "nctId": "NCT07862647",
  "title": "TMZ + RT + 5-ALA + LIDU SDT System for Newly Diagnosed Butterfly Glioma",
  "overallStatus": "RECRUITING",
  "phases": ["PHASE1"],
  "studyType": "INTERVENTIONAL",
  "enrollment": 30,
  "leadSponsor": "Alpheus Medical, Inc.",
  "conditions": ["Glioblastoma", "GBM", "Butterfly GBM"],
  "interventions": [
    { "type": "DRUG", "name": "5-ALA" },
    { "type": "DEVICE", "name": "LIDU ultrasound" }
  ],
  "startDate": "2026-10-29",
  "completionDate": "2028-03-30",
  "url": "https://clinicaltrials.gov/study/NCT07862647"
}
```

A **landscape** record (one per query):

```json
{
  "query": "glioblastoma",
  "recordType": "landscape",
  "totalTrials": 2468,
  "phaseDistribution": { "PHASE1": 9, "PHASE2": 11, "PHASE3": 2, "NA": 3 },
  "statusDistribution": { "RECRUITING": 14, "COMPLETED": 7, "TERMINATED": 1 },
  "topSponsors": [
    { "name": "National Cancer Institute (NCI)", "count": 3 },
    { "name": "Alpheus Medical, Inc.", "count": 1 }
  ],
  "recruitingCount": 14,
  "landscapeSummary": "Glioblastoma research remains highly active, dominated by early-phase interventional trials testing novel drug-device and immunotherapy combinations alongside standard temozolomide + radiotherapy.",
  "activePhaseFocus": "The pipeline sits mostly in Phase 1/2, with few Phase 3 confirmatory studies.",
  "leadingSponsors": ["National Cancer Institute (NCI)", "Alpheus Medical, Inc."],
  "emergingInterventions": ["5-ALA sonodynamic therapy", "CAR-T", "oncolytic virus"],
  "notableTrials": [
    { "nctId": "NCT07862647", "title": "TMZ + RT + 5-ALA + LIDU SDT", "phase": "PHASE1", "sponsor": "Alpheus Medical, Inc.", "why": "Novel sonodynamic drug-device approach for inoperable butterfly GBM." }
  ],
  "signalForInvestors": "Momentum is concentrated in early-phase novel modalities rather than late-stage confirmatory trials; not medical or financial advice."
}
```

***

### Pay-per-event pricing

This Actor uses **pay-per-event** billing with a single event:

| Event | Charged when | Price |
|---|---|---|
| `query-analyzed` | Once per condition/drug/sponsor searched across ClinicalTrials.gov and summarized with AI. | **$0.15** |

The Actor logs its OpenAI token usage and the estimated AI cost at the end of every run, so the event price always stays safely above the model cost.

***

### Data source

Data comes from the official **[ClinicalTrials.gov](https://clinicaltrials.gov)** registry via its public **API v2** — a free, U.S. National Library of Medicine service listing publicly and privately supported clinical studies worldwide. No registry key is required.

***

### Setup

The AI layer calls the OpenAI API. Set the environment variable / secret **`OPENAI_API_KEY`** on the Actor. Without it, the run stops before processing — the AI landscape read is core to the output.

***

### Use it from an AI agent (Apify MCP server)

This Actor is available through the [Apify MCP server](https://mcp.apify.com), so AI agents (Claude, ChatGPT, or anything that speaks MCP) can call it as a tool — hand it a list of `queries`, and read back the trials and landscape — with no custom integration code.

***

### Run it locally

```bash
npm install
## put your input in storage/key_value_stores/default/INPUT.json
export OPENAI_API_KEY=sk-...
apify run -p
```

***

### Related actors

- [Research Paper Intelligence](https://apify.com/noniner/research-paper-intelligence) — Search and summarise academic papers with AI.
- [SEC Filings Extractor](https://apify.com/noniner/sec-filings-extractor) — Pull structured data from SEC filings.
- [Google News Scraper](https://apify.com/noniner/google-news-scraper) — Track news coverage across any topic or company.
- [AI Company Enrichment](https://apify.com/noniner/ai-company-enrichment) — Turn domains into structured company profiles with AI.

***

**Part of the [No Niner](https://noniner.io) toolkit** — no-code web scraping, enrichment & AI data tools, all pay-per-use. Browse the full set at **[noniner.io](https://noniner.io)**.

# Actor input Schema

## `queries` (type: `array`):

Conditions, drugs, sponsors or keywords — e.g. "glioblastoma", "semaglutide", "Moderna". One per line.

## `statusFilter` (type: `array`):

Only return trials with these recruitment statuses (RECRUITING, ACTIVE_NOT_RECRUITING, COMPLETED, TERMINATED). Leave empty for all statuses.

## `maxTrialsPerQuery` (type: `integer`):

How many trials to pull from ClinicalTrials.gov for each query.

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

Max queries to process. One pay-per-event charge per query analyzed.

## `maxConcurrency` (type: `integer`):

How many queries to process in parallel.

## `model` (type: `string`):

Override the model (default gpt-4o-mini).

## Actor input object example

```json
{
  "queries": [
    "glioblastoma",
    "Alzheimer's disease"
  ],
  "maxTrialsPerQuery": 25,
  "maxResults": 100,
  "maxConcurrency": 3
}
```

# Actor output Schema

## `trials` (type: `string`):

All trial and landscape records in the default dataset.

# 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 = {
    "queries": [
        "glioblastoma",
        "Alzheimer's disease"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("noniner/clinicaltrials-intelligence").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 = { "queries": [
        "glioblastoma",
        "Alzheimer's disease",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("noniner/clinicaltrials-intelligence").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 '{
  "queries": [
    "glioblastoma",
    "Alzheimer'\''s disease"
  ]
}' |
apify call noniner/clinicaltrials-intelligence --silent --output-dataset

```

## MCP server setup

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

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/xQ4wQKOnse3gE4GRS/builds/5MHCVSL2v9evohPDy/openapi.json
