# Clinical Trials & PubMed Scraper — PI Emails ($0.50/1k) (`desastreger/openalex-pubmed-expert-finder-mcp`) Actor

Biotech & life-science scraper combining NIH ClinicalTrials.gov v2 and Europe PMC / PubMed. Extracts PI names, direct emails & phones, recruiting sites, NCT IDs, citations & NIH grants. Early-bird $0.50/1k (rises to $1.50/1k). +MCP.

- **URL**: https://apify.com/desastreger/openalex-pubmed-expert-finder-mcp.md
- **Developed by:** [Ignacio De Saeger](https://apify.com/desastreger) (community)
- **Categories:** Lead generation, AI, MCP servers
- **Features:** Limited permissions, Single-tenant, Server interface
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.50 / 1,000 clinical trial investigator or pubmed kol expert leads

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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 & PubMed Scraper — Principal Investigator Emails & KOL Leads

The **Clinical Trials & PubMed KOL Scraper** combines **NIH ClinicalTrials.gov REST API v2** and **EMBL-EBI Europe PMC / PubMed** into one unified life-science lead engine. For active clinical trials (`RECRUITING`, `NOT_YET_RECRUITING`, `ACTIVE_NOT_RECRUITING`), it extracts Principal Investigators (`overallOfficials`), Responsible Party investigators, unmasked `centralContacts` (`contactEmail` and `contactPhone`), `leadSponsorName`, `sponsorClass` (`INDUSTRY` vs `ACADEMIC_OR_GOV`), `trialPhases`, `locationsSummary`, and NCT `identifier`s—with optional `requireDirectContact: true` filtering. For biomedical research, it pulls peer-reviewed **PubMed / Europe PMC** papers sorted by `citationCount`, extracting corresponding KOL authors, institutional affiliations, emails, `orcid`, competitive NIH `grantIds`, `fundingAgencies`, and open-access links, scored with a deterministic `leadScore` and `leadTier`. Built in 128MB Node.js with native Standby MCP Server support. **No external API key or proxy required.**

### Use cases

- **Biotech & CRO Principal Investigator Outreach:** Pull active recruiting trial PIs and direct central contact emails/phones by indication, biomarker, or therapy (`CAR-T`, `GLP-1`, `KRAS G12C`).
- **Medical Science Liaison (MSL) KOL Mapping:** Rank peer-reviewed PubMed / Europe PMC Key Opinion Leaders by `citationCount` (`minCitations`) and active NIH grant funding.
- **Life-Science Reagent, Assay & Lab Equipment Sales:** Target grant-funded academic labs (`grantIds`) and biotech sponsors launching Phase 1–3 trials.
- **Clinical Trial Site & Sponsor Intelligence:** Identify recruiting hospital sites (`locationsSummary`) and industry sponsors (`INDUSTRY` vs `ACADEMIC_OR_GOV`) in seconds.
- **Executive Recruiting & Scientific Advisory Boards:** Source high-impact researchers with verified `orcid` IDs, affiliations, and publication provenance.
- **AI Biomedical Research Agents (MCP):** Connect Claude Desktop, Cursor, or Google Antigravity to `/mcp` for real-time trial and KOL discovery.

***

### Transparent Pay-Per-Event Launch Pricing

> \[!IMPORTANT]
> **Early-Adopter Launch Rate (`$0.50 / 1,000 leads`):** Temporary promotional pricing for early Apify Store adopters & biotech/CRO integrations.
> **Upcoming Standard Rate (`$1.50 / 1,000 leads`):** Price will step up once initial launch benchmarks are met — and even the permanent standard rate remains **75%–95% lower** than comparable Apify Store lead scrapers (`$10–$80/1k`).

Pay only per normalized clinical trial investigator or PubMed KOL lead returned—no recurring seat licenses:

| Plan Tier | Event (`research-expert-lead`) | Effective Rate |
| :--- | :--- | :--- |
| **Early-Bird Launch / Free** | `$0.00050` per lead | **$0.50 per 1,000 leads** |
| **Bronze** | `$0.00045` per lead | **$0.45 per 1,000 leads** |
| **Silver** | `$0.00040` per lead | **$0.40 per 1,000 leads** |
| **Gold** | `$0.00035` per lead | **$0.35 per 1,000 leads** |
| **Scheduled Standard Rate** | `$0.00150` per lead | **$1.50 per 1,000 leads** |

***

### 1-Click JSON Input Example

```json
{
  "mode": "all",
  "query": "CAR-T immunotherapy",
  "trialStatuses": ["RECRUITING", "NOT_YET_RECRUITING"],
  "requireDirectContact": true,
  "minCitations": 10,
  "maxResults": 50
}
```

***

### Sample Unified Output Records

```json
[
  {
    "recordType": "CLINICAL_TRIAL_INVESTIGATOR",
    "identifier": "NCT05225363",
    "expertOrContactName": "Lorna Rodriguez",
    "roleOrPosition": "PRINCIPAL_INVESTIGATOR",
    "organizationOrAffiliation": "City of Hope Medical Center",
    "sponsorClass": "ACADEMIC_OR_GOV",
    "contactEmail": "lorrodriguez@coh.org",
    "contactPhone": "626-359-8111",
    "studyOrPaperTitle": "CAR T Cells for the Treatment of Mesothelin-Expressing Cancers",
    "statusOrYear": "RECRUITING",
    "citationCount": null,
    "grantIds": [],
    "leadScore": 96,
    "leadTier": "HOT",
    "leadSponsorName": "City of Hope Medical Center",
    "trialPhases": ["PHASE1"],
    "locationsSummary": "City of Hope Medical Center (Duarte, California, United States)",
    "doi": null,
    "orcid": null,
    "fundingAgencies": ["City of Hope Medical Center"],
    "openAccessUrl": null,
    "sourceUrl": "https://clinicaltrials.gov/study/NCT05225363"
  },
  {
    "recordType": "PUBMED_RESEARCH_KOL",
    "identifier": "PMID:29567707",
    "expertOrContactName": "Carl H June",
    "roleOrPosition": "CORRESPONDING_KOL_AUTHOR",
    "organizationOrAffiliation": "Center for Cellular Immunotherapies, Perlman School of Medicine, Philadelphia, PA, USA",
    "sponsorClass": "ACADEMIC_OR_GOV",
    "contactEmail": "cjune@exchange.upenn.edu",
    "contactPhone": null,
    "studyOrPaperTitle": "CAR T cell immunotherapy for human cancer",
    "statusOrYear": "2018",
    "citationCount": 2421,
    "grantIds": ["5R01CA165206", "R01 CA165206", "1P01CA214278"],
    "leadScore": 100,
    "leadTier": "HOT",
    "leadSponsorName": "National Cancer Institute",
    "trialPhases": [],
    "locationsSummary": null,
    "doi": "10.1126/science.aar6711",
    "orcid": "0000-0003-0241-3557",
    "fundingAgencies": ["National Cancer Institute", "NCI NIH HHS"],
    "openAccessUrl": "https://doi.org/10.1126/science.aar6711",
    "sourceUrl": "https://pubmed.ncbi.nlm.nih.gov/29567707/"
  }
]
```

***

### API Quickstart (cURL, Node.js & Python)

#### cURL (Synchronous Run + Dataset Items)

```bash
curl -X POST "https://api.apify.com/v2/acts/desastreger~openalex-pubmed-expert-finder-mcp/run-sync-get-dataset-items?token=<APIFY_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{
    "mode": "all",
    "query": "GLP-1 obesity",
    "trialStatuses": ["RECRUITING"],
    "requireDirectContact": true,
    "maxResults": 25
  }'
```

#### Node.js (`apify-client`)

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('desastreger/openalex-pubmed-expert-finder-mcp').call({
  mode: 'clinical_trial_investigators',
  query: 'CRISPR gene editing',
  trialStatuses: ['RECRUITING', 'NOT_YET_RECRUITING'],
  requireDirectContact: true,
  maxResults: 50,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

#### Python (`apify-client`)

```python
import os
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("desastreger/openalex-pubmed-expert-finder-mcp").call(run_input={
    "mode": "pubmed_kol_authors",
    "query": "KRAS G12C",
    "minCitations": 20,
    "maxResults": 50,
})
items = list(client.dataset(run["defaultDatasetId"]).iterate_items())
print(items[:3])
```

***

### Model Context Protocol (MCP) Integration

Connect **Claude Desktop**, **Cursor**, or **Google Antigravity** directly to the live Standby MCP server at `/mcp`:

```json
{
  "mcpServers": {
    "clinical-trials-pubmed-kol": {
      "url": "https://desastreger--openalex-pubmed-expert-finder-mcp.apify.actor/mcp",
      "headers": {
        "Authorization": "Bearer <APIFY_TOKEN>"
      }
    }
  }
}
```

**Exposed MCP Tools:**

- `find_clinical_trial_investigators`: Query active clinical trial Principal Investigators, direct Central Contacts (emails/phones), and biotech/academic sponsors by keyword, `trialStatuses`, and `requireDirectContact`.
- `search_pubmed_kol_experts`: Query peer-reviewed PubMed / Europe PMC KOL authors by biomedical topic and `minCitations`.

***

### Data Provenance

100% of records are retrieved in real time from official public open-science endpoints: **NIH National Library of Medicine ClinicalTrials.gov REST API v2** (`clinicaltrials.gov/api/v2/studies`) and **EMBL-EBI Europe PMC REST API** (`ebi.ac.uk/europepmc/webservices/rest`).

# Actor input Schema

## `mode` (type: `string`):

Choose whether to extract both clinical trial Principal Investigators/contacts and PubMed KOL authors ('all'), only clinical trial investigators ('clinical_trial_investigators'), or only PubMed KOL authors ('pubmed_kol_authors').

## `query` (type: `string`):

Biomedical, clinical, or scientific topic query (e.g., 'CAR-T immunotherapy', 'CRISPR gene editing', 'GLP-1 obesity', 'KRAS G12C').

## `trialStatuses` (type: `array`):

ClinicalTrials.gov v2 overall recruitment statuses (e.g., RECRUITING, NOT_YET_RECRUITING, ACTIVE_NOT_RECRUITING, ENROLLING_BY_INVITATION).

## `requireDirectContact` (type: `boolean`):

When true, only emit clinical trial records that expose a direct unmasked contact email address or phone number.

## `minCitations` (type: `integer`):

Optional minimum citation impact filter for peer-reviewed PubMed / Europe PMC KOL publications.

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

Maximum total number of R\&D expert / investigator leads to return (1 to 500).

## Actor input object example

```json
{
  "mode": "all",
  "query": "CAR-T immunotherapy",
  "trialStatuses": [
    "RECRUITING",
    "NOT_YET_RECRUITING"
  ],
  "requireDirectContact": false,
  "minCitations": 0,
  "maxResults": 25
}
```

# Actor output Schema

## `leads` (type: `string`):

No description

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

No description

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("desastreger/openalex-pubmed-expert-finder-mcp").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("desastreger/openalex-pubmed-expert-finder-mcp").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 '{}' |
apify call desastreger/openalex-pubmed-expert-finder-mcp --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,desastreger/openalex-pubmed-expert-finder-mcp"
        }
    }
}
```

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/8XmkHtr9qpwAmcu9o/builds/7c06s1wGNgvTUPD4r/openapi.json
