# ClinicalTrials.gov Biotech & PI Email Scraper (`ttyan0111/clinical-trials-biotech-leads`) Actor

Zero-proxy ClinicalTrials.gov v2 B2B lead scraper for CROs, biotech BD & recruiting teams. Extracts Industry sponsor corporate emails, Principal Investigator (PI) affiliations, deduplicated clinical site contacts, phases, enrollment, agentSummary, and RUN_SUMMARY.

- **URL**: https://apify.com/ttyan0111/clinical-trials-biotech-leads.md
- **Developed by:** [Truong Truong Giang](https://apify.com/ttyan0111) (community)
- **Categories:** Lead generation, Agents
- **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 clinical trial biotech lead scrapeds

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 Biotech & PI Email Scraper

Fast **zero-proxy B2B clinical trial & biotech lead scraper** powered by the official **ClinicalTrials.gov REST API v2** (`clinicaltrials.gov/api/v2/studies`). Built for **CROs, clinical trial tech/eClinical SaaS sales, life-science recruiters, medical affairs teams, and AI agents (via Apify MCP Server)**.

### Key Capabilities

1. **Direct Biotech & Pharma Sponsor Emails:** Isolates `INDUSTRY` lead sponsors (Series A–C biotechs, mid-market biopharma, and medtech sponsors) and extracts `centralContacts[]` corporate emails, direct phone numbers, and `corporateSponsorDomain`.
2. **Principal Investigator (PI) & Clinical Site Contacts:** Extracts `overallOfficials[]` (`PRINCIPAL_INVESTIGATOR`, `STUDY_DIRECTOR`) with institutional affiliations, plus deduplicated facility-level `siteContacts[]` (cancer centers, university hospitals, VA/academic research units) with direct emails and phone numbers.
3. **96% Context-Token Reduction for AI Agents:** Projects only essential `ProtocolSection` modules, strips `100+ KB` adverse-event/outcome bloat, deduplicates multi-site contacts, and emits a 1-line `agentSummary` per study plus `RUN_SUMMARY` in the Key-Value Store (`256 MB` RAM, `$0` proxy cost).
4. **Essie Advanced Filtering & Pagination:** Natively composes `AREA[LeadSponsorClass]` and `AREA[Phase]` filters alongside `query.term`, `query.spons`, `query.locn`, `filter.overallStatus`, exact `NCT` IDs, and `nextPageToken` pagination.

### Input Parameters

| Parameter | Type | Default | Description |
| :--- | :--- | :--- | :--- |
| `queries` | `string[]` | `["oncology"]` | Conditions, interventions, keywords, or exact `NCT...` IDs |
| `sponsorName` | `string` | `""` | Optional lead sponsor filter (e.g. `"BioNTech"`, `"Nuvalent"`) |
| `location` | `string` | `"United States"` | Country, state, or city filter (empty for worldwide) |
| `statuses` | `string[]` | `["RECRUITING", "NOT_YET_RECRUITING"]` | Recruitment status filter |
| `sponsorClass` | `string` | `"INDUSTRY"` | `INDUSTRY`, `NIH`, `OTHER`, or `ANY` |
| `phases` | `string[]` | `["PHASE1", "PHASE2", "PHASE3"]` | Clinical phases filter (`[]` for all phases) |
| `onlyWithEmail` | `boolean` | `true` | Keep only studies with at least one verified direct email |
| `includeSiteContacts` | `boolean` | `true` | Extract deduplicated site-level PI/coordinator contacts |
| `maxSiteContactsPerTrial` | `integer` | `10` | Max deduplicated site contacts per trial (`1–50`) |
| `maxTrials` | `integer` | `25` | Max unique trials to export (`1–500`, prefill `20`) |

### Pricing

Pay-per-Event (`PAY_PER_EVENT`): `actor-start`, `trial-lead-scraped`, and `site-contacts-enriched`.

# Actor input Schema

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

Therapeutic areas/conditions (e.g. 'oncology', 'alzheimer'), interventions ('CAR-T', 'immunotherapy', 'GLP-1'), or exact NCT IDs ('NCT04752722'). Leave empty \[] to browse latest matching trials.

## `sponsorName` (type: `string`):

Optional biotech or pharmaceutical sponsor name filter (e.g. 'Nuvalent', 'BioNTech', 'AstraZeneca'). Leave empty for all sponsors.

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

Geographic trial site filter (e.g. 'United States', 'United Kingdom', 'Germany', 'Boston', 'California'). Leave empty for global trials.

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

ClinicalTrials.gov overall statuses to include: RECRUITING, NOT_YET_RECRUITING, ACTIVE_NOT_RECRUITING, ENROLLING_BY_INVITATION, COMPLETED.

## `sponsorClass` (type: `string`):

Filter by sponsor organization type. 'INDUSTRY' isolates commercial biotech, pharma, and medtech companies.

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

Clinical phases to target: EARLY_PHASE1, PHASE1, PHASE2, PHASE3, PHASE4, NA. Leave empty \[] for all phases.

## `onlyWithEmail` (type: `boolean`):

Keep only trials that expose at least one verified corporate central contact email or clinical site PI/coordinator email.

## `includeSiteContacts` (type: `boolean`):

Extract and deduplicate facility-level clinical site contacts (emails, phones, hospitals/universities) alongside central sponsor contacts.

## `maxSiteContactsPerTrial` (type: `integer`):

Maximum number of deduplicated site-level contacts to include per trial (1–50), prioritizing contacts with direct emails.

## `maxTrials` (type: `integer`):

Maximum number of unique deduplicated clinical trials to return (1–500).

## Actor input object example

```json
{
  "queries": [
    "oncology",
    "immunotherapy"
  ],
  "sponsorName": "",
  "location": "United States",
  "statuses": [
    "RECRUITING",
    "NOT_YET_RECRUITING"
  ],
  "sponsorClass": "INDUSTRY",
  "phases": [
    "PHASE1",
    "PHASE2",
    "PHASE3"
  ],
  "onlyWithEmail": true,
  "includeSiteContacts": true,
  "maxSiteContactsPerTrial": 10,
  "maxTrials": 20
}
```

# Actor output Schema

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

Structured ClinicalTrials.gov v2 trials with Industry biotech sponsors, corporate emails, Principal Investigators, deduplicated site contacts, phases, enrollment, and agentSummary.

## `runSummary` (type: `string`):

Aggregate biotech clinical pipeline & email summary in Key-Value Store (corporateSponsorEmails, sitePiEmails, byPhase, byStatus, and topBiotechLeads).

# 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": [
        "oncology",
        "immunotherapy"
    ],
    "sponsorName": "",
    "location": "United States",
    "statuses": [
        "RECRUITING",
        "NOT_YET_RECRUITING"
    ],
    "sponsorClass": "INDUSTRY",
    "phases": [
        "PHASE1",
        "PHASE2",
        "PHASE3"
    ],
    "maxSiteContactsPerTrial": 10,
    "maxTrials": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("ttyan0111/clinical-trials-biotech-leads").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": [
        "oncology",
        "immunotherapy",
    ],
    "sponsorName": "",
    "location": "United States",
    "statuses": [
        "RECRUITING",
        "NOT_YET_RECRUITING",
    ],
    "sponsorClass": "INDUSTRY",
    "phases": [
        "PHASE1",
        "PHASE2",
        "PHASE3",
    ],
    "maxSiteContactsPerTrial": 10,
    "maxTrials": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("ttyan0111/clinical-trials-biotech-leads").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": [
    "oncology",
    "immunotherapy"
  ],
  "sponsorName": "",
  "location": "United States",
  "statuses": [
    "RECRUITING",
    "NOT_YET_RECRUITING"
  ],
  "sponsorClass": "INDUSTRY",
  "phases": [
    "PHASE1",
    "PHASE2",
    "PHASE3"
  ],
  "maxSiteContactsPerTrial": 10,
  "maxTrials": 20
}' |
apify call ttyan0111/clinical-trials-biotech-leads --silent --output-dataset

```

## MCP server setup

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

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/eFcbJHonnspdvgqIy/builds/eU4PlXLJfCowTBqu2/openapi.json
