# ClinicalTrials.gov Study Results Scraper — NIH API Data (`risimwell/clinicaltrials-gov-study-results-scraper`) Actor

Extract clinical trial metadata, recruitment status, sponsor details, and intervention types from the official NIH ClinicalTrials.gov API. Ideal for pharma research and competitive intelligence.

- **URL**: https://apify.com/risimwell/clinicaltrials-gov-study-results-scraper.md
- **Developed by:** [Ricardo Enriquez](https://apify.com/risimwell) (community)
- **Categories:** Developer tools, MCP servers, Automation
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.50 / 1,000 items extracted

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/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

## ClinicalTrials.gov Study Results Scraper — NIH API Data

### Why use this Actor?

Unlock structured medical intelligence instantly. The **ClinicalTrials.gov Study Results Scraper** allows researchers, pharmaceutical companies, healthcare analysts, and AI agents to extract robust metadata, recruitment statuses, sponsor details, and intervention types directly from the primary NIH database. Eliminate manual lookups, accelerate clinical research, and power your healthcare intelligence pipelines effortlessly.

#### Dataset Overview

| Field | Type | Description |
| :--- | :--- | :--- |
| `nctId` | String | Unique ClinicalTrials.gov identifier (e.g., NCT05766774) |
| `briefTitle` | String | Concise title of the clinical trial study |
| `officialTitle` | String | Full official title registered with the NIH |
| `organization` | String | Lead sponsor or responsible institution |
| `orgClass` | String | Organization classification (e.g., OTHER, INDUSTRY) |
| `status` | String | Current recruitment status (e.g., RECRUITING, COMPLETED) |
| `startDate` | String | Trial study start date |
| `primaryCompletionDate` | String | Estimated or actual primary completion date |
| `phases` | Array | Clinical trial phases (e.g., PHASE1, PHASE2, NA) |
| `studyType` | String | Type of study (INTERVENTIONAL, OBSERVATIONAL, etc.) |
| `conditions` | Array | Medical conditions or diseases targeted |
| `interventions` | Array | Drugs, devices, or procedures tested |
| `url` | String | Direct link to the study record on ClinicalTrials.gov |

### Use Cases

- **Pharma Competitive Intelligence:** Monitor competing clinical trials, drug pipelines, and active recruitment phases globally.
- **AI Agents via MCP:** Connect this actor to Model Context Protocol servers to let AI assistants query live trial registries on demand.
- **No-Code & Low-Code Automation:** Seamlessly pipe clean dataset items into Make, n8n, or Zapier workflows to trigger alerts or CRM updates.
- **Academic & Clinical Research:** Aggregate large volumes of trials for meta-analyses, systematic reviews, and trend identification.

### Input JSON Example

```json
{
  "queries": [
    "Diabetes",
    "NCT02546635"
  ],
  "status": [
    "RECRUITING"
  ],
  "maxItems": 10,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

### Verified Output JSON Example

```json
[
  {
    "nctId": "NCT05766774",
    "briefTitle": "FEED-Cystic Fibrosis (FEED-CF)",
    "officialTitle": "Feeding Study to Optimize Endocrine Dysfunction in Cystic Fibrosis",
    "organization": "Emory University",
    "orgClass": "OTHER",
    "status": "RECRUITING",
    "hasExpandedAccess": false,
    "startDate": "2023-06-28",
    "primaryCompletionDate": "2028-06-30",
    "phases": [
      "NA"
    ],
    "studyType": "INTERVENTIONAL",
    "conditions": [
      "Cystic Fibrosis",
      "Cystic Fibrosis-related Diabetes"
    ],
    "interventions": [
      "Low-added sugar, high-fat diet",
      "High-added sugar, high-fat CF diet"
    ],
    "url": "https://example.com/study/NCT05766774"
  }
]
```

### Quick Automation (n8n, Make, cURL & MCP Server)

Integrate this actor directly into your tech stack using standard API endpoints or AI contexts.

#### Run Sync via cURL / HTTP API

```bash
curl -X POST https://api.apify.com/v2/acts/YOUR_ACTOR_ID/run-sync-get-dataset-items?token=YOUR_API_TOKEN \
  -H "Content-Type: application/json" \
  -d '{"queries": ["Diabetes"], "maxItems": 5}'
```

#### MCP Server Integration

Expose this tool to your AI models through the Model Context Protocol. Point your MCP client to `https://mcp.apify.com` with your Apify token to let large language models query clinical trials autonomously.

### Pay-Per-Event Pricing

This Actor operates on a transparent Pay-Per-Event (PPE) model:

- **ACTOR_START:** $0.001 per run initialization.
- **ITEM_EXTRACTED:** $0.0025 per clinical trial study successfully extracted and processed.

*Estimated cost for 1,000 extracted studies:* ~$2.50 (plus the initial actor start fee). Enjoy high-speed data extraction with zero maintenance overhead.

# Actor input Schema

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

List of keywords (e.g., 'Diabetes') or specific NCT IDs (e.g., 'NCT02546635').

## `status` (type: `array`):

Filter by study status.

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

Maximum number of studies to extract.

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

Use Apify Proxy for high-volume requests.

## Actor input object example

```json
{
  "queries": [
    "Diabetes",
    "NCT02546635"
  ],
  "status": [
    "RECRUITING"
  ],
  "maxItems": 10,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

Structured records extracted by this Actor.

# 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": [
        "Diabetes",
        "NCT02546635"
    ],
    "status": [
        "RECRUITING"
    ],
    "maxItems": 10,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("risimwell/clinicaltrials-gov-study-results-scraper").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": [
        "Diabetes",
        "NCT02546635",
    ],
    "status": ["RECRUITING"],
    "maxItems": 10,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("risimwell/clinicaltrials-gov-study-results-scraper").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": [
    "Diabetes",
    "NCT02546635"
  ],
  "status": [
    "RECRUITING"
  ],
  "maxItems": 10,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call risimwell/clinicaltrials-gov-study-results-scraper --silent --output-dataset

```

## MCP server setup

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

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/EL17F0T3U4CltcdpB/builds/MkgFpCiuoQzftxd4A/openapi.json
