# Pharma / Biotech Pack — FDA, ClinicalTrials, Genetics (`cynix_dev/pharma-biotech-pack`) Actor

Map a therapeutic area, compound, or gene in one pull — pulling from the official US government and open biomedical APIs: FDA drug labels (openFDA), ClinicalTrials.gov studies, and MedlinePlus / NCBI Gene summaries.

- **URL**: https://apify.com/cynix\_dev/pharma-biotech-pack.md
- **Developed by:** [Cynix Dev](https://apify.com/cynix_dev) (community)
- **Categories:** AI, Developer tools, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 results

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?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Pharma / Biotech Intelligence Pack

Map a therapeutic area, compound, or gene in one pull — pulling from the official US government and open biomedical APIs: **FDA drug labels (openFDA)**, **ClinicalTrials.gov studies**, and **MedlinePlus / NCBI Gene** summaries. One flat, typed dataset. Free government open data — no API key, no proxy.

### What it does

Drug and biotech intelligence is scattered across three federal systems that don't talk to each other. This Actor queries all three from a single input and returns flat, unified records you can drop into a pipeline, spreadsheet, or research note.

- Search by **drug / compound** (`pembrolizumab`, `keytruda`) to pull FDA labeling and matching ClinicalTrials.gov studies.
- Add a **gene symbol** (`BRCA1`) to pull the MedlinePlus gene summary.
- Toggle each source independently.

### Features

- **FDA labels (openFDA)** — brand/generic/ingredient search across drug labeling: indications, warnings, adverse events.
- **ClinicalTrials.gov v2** — studies by condition or intervention, with status and phase.
- **MedlinePlus Genetics (NCBI Gene)** — gene summaries linked to MedlinePlus.
- **Per-source coverage summary** — every run emits a `RUN_SUMMARY` row listing what was checked and how many hits each source returned, so an empty result is explicit, not silent.
- **No API key, no proxy** — all sources are free US government / open endpoints.

### What people use it for

- **Competitive intelligence** — map the trial + label landscape for a compound or indication.
- **Investor / BD diligence** — frame a pipeline before a deal.
- **Academic groundwork** — gather structured context for a study.
- **Drug-safety monitoring** — track indications and adverse-event language.

### Understanding the fields

| Field | Meaning |
| --- | --- |
| `source` | Which API the row came from (FDA / ClinicalTrials.gov / MedlinePlus Genetics / RUN\_SUMMARY) |
| `title` | Brand name, study title, or gene name |
| `status` | Trial recruitment status (for ClinicalTrials rows) |
| `phase` | Trial phase (for ClinicalTrials rows) |
| `detail` | Indications, conditions, or gene description |
| `attribution` | Source credit (required for open-data reuse) |

### Input

All fields optional; sensible defaults produce a working run.

| Field | Type | Default | What it does |
| --- | --- | --- | --- |
| `drug` | string | `pembrolizumab` | Drug or compound name for FDA + ClinicalTrials search. |
| `gene` | string | — | Gene symbol for MedlinePlus lookup (e.g. `BRCA1`). |
| `includeFda` | boolean | `true` | Pull FDA drug labels. |
| `includeClinicalTrials` | boolean | `true` | Pull ClinicalTrials.gov studies. |
| `includeGenetics` | boolean | `true` | Pull MedlinePlus gene summary. |
| `maxResultsPerSource` | integer | `10` | Cap per source (1–50). |

#### Input example

```json
{
  "drug": "pembrolizumab",
  "gene": "BRCA1",
  "includeFda": true,
  "includeClinicalTrials": true,
  "includeGenetics": true,
  "maxResultsPerSource": 10
}
```

### Output

One record per source hit, plus a `RUN_SUMMARY` row.

```json
{
  "query": "pembrolizumab + BRCA1",
  "source": "ClinicalTrials.gov",
  "title": "A Study to Investigate the Safety of Pembrolizumab",
  "status": "RECRUITING",
  "phase": "PHASE1",
  "detail": "Neoplasms",
  "sourceUrl": "https://clinicaltrials.gov",
  "attribution": "ClinicalTrials.gov (NLM, public domain)"
}
```

Export the dataset as JSON, CSV, Excel, XML or JSONL from the Console, or pull it programmatically through the Apify API.

### How to use it

1. Click **Try for free** (or **Start** if you already have an Apify account).
2. Fill in the input fields above — the defaults already produce a working run.
3. Press **Start** and watch the log; results stream into the dataset as they are found.
4. When the run finishes, open the **Output** tab and export as JSON, CSV or Excel.

Runs can be scheduled (hourly, daily, weekly) and wired into Slack, Google Sheets, Zapier, Make, webhooks or your own backend. Everything the Console does is also available over the [Apify API](https://docs.apify.com/api/v2).

### Proxy configuration

Not needed. All sources are free public US government / open endpoints that do not block datacenter IPs.

### Pricing

This Actor is billed on Apify's **pay-per-event** model: a small charge when a run starts, plus a charge for each result written to the dataset. You only pay for records you actually receive. Current rates are shown on the **Pricing** tab.

### FAQ

#### Do I need an API key?

No. openFDA, ClinicalTrials.gov, and NCBI Gene are free US government / open services.

#### Is the data authoritative?

Yes — it comes directly from FDA, NIH/NLM, and NCBI.

#### Why a coverage summary row?

So you can tell "no matches" from "a source failed" — the `RUN_SUMMARY` row reports per-source hit counts explicitly.

### Other Actors by cynix\_dev

| Actor | What it does |
| --- | --- |
| [Security / CTI Enrichment Pack](https://apify.com/cynix_dev/security-cti-pack) | NVD, CIRCL and URLhaus CVE / malware enrichment in one actor. |
| [FDA Drug Database Extractor](https://apify.com/cynix_dev/fda-drug-database) | OpenFDA + Drugs@FDA as typed records. |
| [ClinicalTrials.gov Extractor](https://apify.com/cynix_dev/clinicaltrials-scraper) | ClinicalTrials.gov v2 API as typed study records. |

### Legal and responsible use

This Actor collects only publicly available information. You are responsible for how you use the data, including compliance with the target site's Terms of Service, robots directives, copyright, and data protection law such as GDPR and CCPA. Do not use it to gather personal data without a lawful basis.

### Support and feedback

Found a bug, hit a site change, or need an extra field? Open a ticket on the **Issues** tab of this Actor — issues are read and fixed. Feature requests and custom-scraper enquiries are welcome through the same channel.

# Actor input Schema

## `drug` (type: `string`):

Active ingredient or brand name, e.g. 'pembrolizumab'.

## `gene` (type: `string`):

Gene symbol for MedlinePlus lookup, e.g. 'BRCA1'.

## `includeFda` (type: `boolean`):

Pull FDA labeling from openFDA.

## `includeClinicalTrials` (type: `boolean`):

Pull studies from ClinicalTrials.gov v2 API.

## `includeGenetics` (type: `boolean`):

Pull gene summary from MedlinePlus / NCBI Gene.

## `maxResultsPerSource` (type: `integer`):

Cap on records per source (1-50).

## Actor input object example

```json
{
  "drug": "pembrolizumab",
  "gene": "",
  "includeFda": true,
  "includeClinicalTrials": true,
  "includeGenetics": true,
  "maxResultsPerSource": 10
}
```

# Actor output Schema

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

One record per source hit: FDA label, ClinicalTrials study, or gene summary. Each row carries its source.

# 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 = {
    "drug": "pembrolizumab"
};

// Run the Actor and wait for it to finish
const run = await client.actor("cynix_dev/pharma-biotech-pack").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 = { "drug": "pembrolizumab" }

# Run the Actor and wait for it to finish
run = client.actor("cynix_dev/pharma-biotech-pack").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 '{
  "drug": "pembrolizumab"
}' |
apify call cynix_dev/pharma-biotech-pack --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,cynix_dev/pharma-biotech-pack"
        }
    }
}

```

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/UUbwnmowuDANGLfj1/builds/D0FGVQ4kBCRP3qEsI/openapi.json
