# Clinical Trials & Pharma Sponsors Scraper (NIH Intelligence) (`apexscrapers/clinical-trials-pharma-scraper`) Actor

Scrape global clinical trials, pharmaceutical sponsors (Pfizer, Novartis, biotechs), study phases, recruitment status, conditions, and principal investigators directly from ClinicalTrials.gov (NIH API).

- **URL**: https://apify.com/apexscrapers/clinical-trials-pharma-scraper.md
- **Developed by:** [Isara Siri](https://apify.com/apexscrapers) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$3.00 / 1,000 clinical trial records

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

### What does Clinical Trials & Pharma Sponsors Scraper do?

The **Clinical Trials & Pharma Sponsors Scraper** extracts real-time, comprehensive intelligence on global medical studies, pharmaceutical sponsors (e.g., Pfizer, Novartis, Roche, Moderna, emerging BioTech startups), investigative drug pipelines, clinical phases, study conditions, and recruitment status directly from the official United States **ClinicalTrials.gov** registry operated by the **National Institutes of Health (NIH)**.

It provides healthcare intelligence firms, Contract Research Organizations (CROs), life sciences B2B marketers, medical recruiters, and biotechnology investors with structured data to track drug development pipelines, clinical recruitment, and research sponsorship.

***

### Why scrape ClinicalTrials.gov data?

Accessing official clinical trial records provides tremendous strategic intelligence for the pharmaceutical and life sciences industries:

- **Pharma & BioTech Competitive Intelligence:** Monitor which pharmaceutical giants and biotech startups are launching new Phase 1, Phase 2, or Phase 3 trials for targeted therapeutic areas (oncology, rare diseases, immunology, neurology).
- **High-Value B2B Leads for CROs & Vendors:** Clinical trial sponsors frequently contract specialized service providers for patient recruitment, lab analytics, cold-chain logistics, decentralized trial software, and regulatory compliance.
- **Patient Recruitment & Healthcare Marketing:** Identify active trials currently recruiting patients across medical centers and university research hospitals worldwide.
- **Investment & Market Research:** Track drug development pipelines, novel molecule indications, and target completion dates for equity research and pharma M\&A.

***

### What clinical trial data can you extract?

This Actor outputs clean, structured records ready for immediate analysis, reporting, or CRM integration:

| Field Name | Type | Description | Example |
|---|---|---|---|
| `nct_id` | String | Unique ClinicalTrials.gov identifier | `"NCT06085755"` |
| `brief_title` | String | Official study title | `"Trastuzumab Deruxtecan(T-DXd) and Afatinib Combination..."` |
| `overall_status` | String | Recruitment status (`RECRUITING`, `COMPLETED`, `ACTIVE`) | `"RECRUITING"` |
| `phases` | String | Clinical trial phases (`PHASE1`, `PHASE2`, `PHASE3`, `PHASE4`) | `"PHASE1, PHASE2"` |
| `lead_sponsor` | String | Primary sponsor, pharmaceutical company, or institution | `"Jeeyun Lee"` |
| `collaborators` | String | Secondary sponsors, university partners, or pharma collaborators | `"AstraZeneca, Daiichi Sankyo"` |
| `conditions` | String | Target diseases, symptoms, or medical indications | `"Stomach Neoplasm, Gastric Cancer"` |
| `interventions` | String | Investigational drugs, biologics, therapies, or devices tested | `"DRUG: Trastuzumab deruxtecan; DRUG: Afatinib"` |
| `study_type` | String | Type of study (`INTERVENTIONAL`, `OBSERVATIONAL`) | `"INTERVENTIONAL"` |
| `start_date` | String | Clinical study start date | `"2024-09-30"` |
| `completion_date` | String | Estimated or actual primary completion date | `"2026-12"` |
| `locations_count` | Integer | Total number of hospital/clinic trial sites globally | `1` |
| `url` | String | Direct link to the official trial study page | `"https://clinicaltrials.gov/study/NCT06085755"` |

***

### How to scrape ClinicalTrials.gov

1. Click **Try for free** or open the Actor in your Apify Console.
2. Enter your **Condition / Disease / Keyword** (e.g. `oncology`, `diabetes`, `alzheimer`, `weight loss`, `asthma`, `immunotherapy`).
3. Select your desired **Clinical Study Phase** (`All Phases`, `Phase 1`, `Phase 2`, `Phase 3`, or `Phase 4`).
4. Select the **Recruitment Status** (`Recruiting patients`, `All statuses`, `Completed studies`, or `Active not recruiting`).
5. Choose your **Max Items** limit (e.g. `100`, `500`, `2000`).
6. Click **Save & Start** to begin extraction.
7. Export your dataset in **CSV**, **JSON**, **Excel**, or sync via Apify Webhooks and REST API.

***

### How much will it cost to scrape Clinical Trials?

- **Ultra-Fast API Extraction:** Directly interfaces with the official NIH API v2 with zero browser overhead, consuming minimal memory (256 MB – 512 MB).
- **Zero Expensive Proxy Costs:** Does not require costly residential proxies because NIH endpoints are open and developer-friendly.
- **High Throughput:** Scrapes **1,000 detailed trial records in less than 30 seconds**.

***

### Input parameters

| Input Key | Type | Default / Prefill | Description |
|---|---|---|---|
| `conditionQuery` | String | `"oncology"` | Disease condition or therapeutic area (e.g. oncology, diabetes, cardiology). |
| `studyPhase` | String | `"ALL"` | Clinical phase filter (`ALL`, `PHASE1`, `PHASE2`, `PHASE3`, `PHASE4`). |
| `overallStatus` | String | `"RECRUITING"` | Recruitment status (`RECRUITING`, `ALL`, `COMPLETED`, `ACTIVE_NOT_RECRUITING`). |
| `maxItems` | Integer | `100` | Maximum number of clinical study records to extract. |

***

### Sample JSON output

```json
{
  "nct_id": "NCT06085755",
  "brief_title": "Trastuzumab Deruxtecan(T-DXd) and Afatinib Combination in HER2-low Advanced Gastric Cancer",
  "overall_status": "RECRUITING",
  "phases": "PHASE1, PHASE2",
  "lead_sponsor": "Jeeyun Lee",
  "collaborators": "Daiichi Sankyo Inc.",
  "conditions": "Stomach Neoplasm",
  "interventions": "DRUG: Trastuzumab deruxtecan; DRUG: Afatinib",
  "study_type": "INTERVENTIONAL",
  "start_date": "2024-09-30",
  "completion_date": "2026-12",
  "locations_count": 1,
  "url": "https://clinicaltrials.gov/study/NCT06085755"
}
```

# Actor input Schema

## `conditionQuery` (type: `string`):

Disease, condition, or drug target keyword (e.g. oncology, diabetes, alzheimer, asthma, lymphoma, cardiology).

## `studyPhase` (type: `string`):

Filter by clinical trial phase (Phase 1, Phase 2, Phase 3, Phase 4, or All).

## `overallStatus` (type: `string`):

Filter by trial recruitment status.

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

Maximum number of clinical study records to extract.

## Actor input object example

```json
{
  "conditionQuery": "oncology",
  "studyPhase": "ALL",
  "overallStatus": "RECRUITING",
  "maxItems": 100
}
```

# Actor output Schema

## `dataset` (type: `string`):

Dataset containing scraped clinical trials and sponsors

# 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 = {
    "conditionQuery": "oncology",
    "studyPhase": "ALL",
    "overallStatus": "RECRUITING",
    "maxItems": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("apexscrapers/clinical-trials-pharma-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 = {
    "conditionQuery": "oncology",
    "studyPhase": "ALL",
    "overallStatus": "RECRUITING",
    "maxItems": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("apexscrapers/clinical-trials-pharma-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 '{
  "conditionQuery": "oncology",
  "studyPhase": "ALL",
  "overallStatus": "RECRUITING",
  "maxItems": 100
}' |
apify call apexscrapers/clinical-trials-pharma-scraper --silent --output-dataset

```

## MCP server setup

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