# ClinicalTrials.gov & FDA Drug Scraper | 2Space (`2space/fda-clinical-trials-radar`) Actor

Fast ClinicalTrials.gov and openFDA scraper. Scrapes active clinical trials, phase/status filters, sponsor pipelines, FDA drug approvals (Drugs@FDA), and FAERS adverse event reports into flat CSV/JSON.

- **URL**: https://apify.com/2space/fda-clinical-trials-radar.md
- **Developed by:** [2Space Group](https://apify.com/2space) (community)
- **Categories:** Lead generation, Automation
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 1,000 trial or fda filings extracted

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

> **Built by 2Space Group** — Fast, lightweight AI & B2B data Actors on Apify. Zero browser bloat, predictable Pay-Per-Event pricing, and 1-step MCP support for ChatGPT, Claude Code, Cursor, Antigravity & n8n.

### What does FDA & Clinical Trials Radar do?

**FDA & Clinical Trials Radar** (`reminiscent_medaka/fda-clinical-trials-radar`) is a fast, zero-LLM-cost **ClinicalTrials.gov scraper**, **FDA drug approvals API**, **biotech pipeline tracker**, and **pharma adverse events** extractor. Built directly on official U.S. government REST APIs (`clinicaltrials.gov/api/v2/studies`, `api.fda.gov/drug/drugsfda.json`, and `api.fda.gov/drug/event.json`), it normalizes trials, NDA/BLA/ANDA approvals, and FAERS safety reports into a single flat scalar schema ready for competitive intelligence, regulatory teams, and AI agents.

***

### Features

- **3 Official Government Sources in 1 Actor**: Switch seamlessly between `clinical_trials` (ClinicalTrials.gov v2), `fda_approvals` (Drugs@FDA), and `adverse_events` (openFDA FAERS).
- **Zero-LLM & Zero-Browser Execution**: Pure HTTP JSON queries with exponential-backoff retries on `429`/`5xx` responses—completes typical runs in seconds with minimal memory.
- **Granular Clinical Filters**: Filter studies by `query`, `sponsorOrCompany`, `phases` (`PHASE1`–`PHASE4`), and `overallStatus` (`RECRUITING`, `ACTIVE_NOT_RECRUITING`, `COMPLETED`, etc.).
- **Optional Sponsor Pipeline Summary**: Enable `includeSponsorSummary` to append an aggregated `sponsor_summary` record summarizing total studies, enrollment, and conditions when matching records exist.
- **Flat Scalar Schema**: Every field is clean and normalized (`string | number | null`) for effortless CSV, Excel, SQL, and BI dashboard ingestion.
- **No Data, No Charge Guardrail**: Empty searches (`0` results, including openFDA `404 NOT_FOUND`) never trigger a charge, and `maxItems` + `maxCostUsd` enforce hard budget caps.

***

### What data can this Actor extract?

| Field | Type | Description |
| --- | --- | --- |
| `recordType` | `string` | `"clinical_trial"`, `"fda_approval"`, `"adverse_event"`, or `"sponsor_summary"` |
| `id` | `string` | NCT ID (`NCT...`), FDA application number (`NDA...`), or FAERS report ID |
| `title` | `string` | Study brief title, FDA product title, or FAERS summary title |
| `sponsorName` / `leadSponsorClass` | `string` | Lead sponsor/manufacturer and sponsor class (`INDUSTRY`, `NIH`, etc.) |
| `overallStatus` | `string` | Recruitment status, FDA approval status (`AP`), or FAERS seriousness |
| `phases` | `string` | Clinical phases, FDA review priority, or FAERS severity flags |
| `conditions` / `interventions` | `string` | Conditions/MedDRA reactions and drugs/interventions |
| `enrollmentCount` | `integer \| null` | Participant enrollment count |
| `startDate` / `primaryCompletionDate` / `approvalDate` | `string \| null` | Standardized `YYYY-MM-DD` dates |
| `productBrandName` / `genericName` / `applicationNumber` | `string \| null` | Brand name, active ingredient, and NDA/BLA/ANDA number |
| `studyUrl` | `string \| null` | Canonical ClinicalTrials.gov, FDA label PDF, or openFDA link |

***

### How much does it cost?

This Actor uses transparent **Pay-Per-Event (PPE)** pricing with strict **No Data, No Charge** enforcement:

- **`study-or-filing-extracted`**: Charged once (`count: 1`) only after a validated trial, approval, or adverse event record is pushed to the dataset.
- **`sponsor-pipeline-summary`**: Optional add-on event (`count: 1`) charged only when `includeSponsorSummary` is `true` and at least one matching sponsor record was pushed.

Zero-match queries cost **$0.00**.

***

### Input & Output Examples

#### Input Example

```json
{
  "mode": "clinical_trials",
  "query": "obesity",
  "sponsorOrCompany": "Novo Nordisk",
  "phases": ["PHASE2", "PHASE3"],
  "overallStatus": ["RECRUITING", "ACTIVE_NOT_RECRUITING"],
  "includeSponsorSummary": false,
  "maxItems": 25,
  "maxCostUsd": 2.0
}
```

#### Output Example

You can download the dataset in various formats such as **JSON, HTML, CSV, or Excel** from Apify Console or via API.

```json
{
  "recordType": "clinical_trial",
  "id": "NCT05551234",
  "title": "A Study of Semaglutide in Participants With Obesity",
  "sponsorName": "Novo Nordisk A/S",
  "leadSponsorClass": "INDUSTRY",
  "overallStatus": "RECRUITING",
  "phases": "PHASE3",
  "conditions": "Obesity, Overweight",
  "interventions": "Semaglutide, Placebo",
  "enrollmentCount": 450,
  "startDate": "2024-03-15",
  "primaryCompletionDate": "2026-11-30",
  "studyUrl": "https://clinicaltrials.gov/study/NCT05551234",
  "productBrandName": null,
  "genericName": null,
  "approvalDate": null,
  "applicationNumber": null,
  "extractedAt": "2026-11-30T07:00:00.000Z"
}
```

***

### Connect Permanently to Your AI Agent (1 Step)

#### ChatGPT

Open **ChatGPT -> Settings -> Apps & Connectors -> Create -> Apify MCP OAuth**, sign in to Apify, and attach `reminiscent_medaka/fda-clinical-trials-radar` (`https://mcp.apify.com?tools=reminiscent_medaka/fda-clinical-trials-radar`).

#### Claude Code

```bash
claude mcp add 2space "https://mcp.apify.com?tools=reminiscent_medaka/fda-clinical-trials-radar" -t http
```

#### Cursor / Antigravity

Add to `.cursor/mcp.json` or your Antigravity MCP config:

```json
{
  "mcpServers": {
    "2space": {
      "url": "https://mcp.apify.com?tools=reminiscent_medaka/fda-clinical-trials-radar",
      "headers": {
        "Authorization": "Bearer YOUR_APIFY_TOKEN"
      }
    }
  }
}
```

#### n8n, Make & Zapier

- **n8n**: Import [`n8n/biotech-clinical-trials-radar.json`](./n8n/biotech-clinical-trials-radar.json) or use the **Apify** node to monitor competitor trials and FDA approvals on a schedule.
- **Make**: Connect **Apify -> Run an Actor** (`reminiscent_medaka/fda-clinical-trials-radar`) and route new approvals or Phase 3 updates to Slack or Airtable.
- **Zapier**: Trigger **Apify -> Run Actor** on a weekly schedule and log extracted biotech pipeline rows into Google Sheets or Notion.

***

### Troubleshooting & Support

- **0 records returned on `fda_approvals` or `adverse_events`?** openFDA returns HTTP `404` when exact search terms do not match; try broader generic/brand drug names and inspect `RUN_DIAGNOSTICS` in Key-Value Store.
- **Need additional fields or found a bug?** Please open an **Issue** in the **Issues** tab on Apify Store. Visit the **API** tab for synchronous REST, JS, and Python examples.
- **Ethical Data Notice**: This Actor retrieves strictly public government registry records from ClinicalTrials.gov and openFDA. Ensure any downstream medical or commercial analytics comply with applicable regulations.

***

### More Tools by 2Space Group

Explore the full suite of fast, zero-bloat AI & B2B data Actors at **[2Space Group on Apify](https://apify.com/reminiscent_medaka)**:

- [B2B Domain Enricher](https://apify.com/reminiscent_medaka/b2b-domain-enricher) (`b2b-domain-enricher`)
- [SaaS Pricing Extractor](https://apify.com/reminiscent_medaka/saas-pricing-extractor) (`saas-pricing-extractor`)
- [ATS Career & Jobs API](https://apify.com/reminiscent_medaka/ats-career-jobs-api) (`ats-career-jobs-api`)
- [Shopify Store Intel](https://apify.com/reminiscent_medaka/shopify-store-intel) (`shopify-store-intel`)
- [SEC EDGAR Intelligence](https://apify.com/reminiscent_medaka/sec-edgar-intelligence) (`sec-edgar-intelligence`)
- [Gov Grants & Contracts Radar](https://apify.com/reminiscent_medaka/gov-grants-contracts-radar) (`gov-grants-contracts-radar`)
- [Sitemap & llms.txt Precision AI Docs Crawler](https://apify.com/reminiscent_medaka/llms-sitemap-rag-mcp) (`llms-sitemap-rag-mcp`)
- [Tech Stack, DNS, SSL & WHOIS/RDAP Auditor](https://apify.com/reminiscent_medaka/tech-stack-dns-whois-mcp) (`tech-stack-dns-whois-mcp`)
- [GitHub Repo & Maintainer B2B Signals](https://apify.com/reminiscent_medaka/github-repo-b2b-signals) (`github-repo-b2b-signals`)
- [JSON-LD & AI SEO (GEO) Auditor](https://apify.com/reminiscent_medaka/jsonld-ai-seo-auditor) (`jsonld-ai-seo-auditor`)
- [YouTube Transcript & Metadata MCP](https://apify.com/reminiscent_medaka/youtube-transcript-metadata-mcp) (`youtube-transcript-metadata-mcp`)
- [Google News Article Scraper MCP](https://apify.com/reminiscent_medaka/google-news-article-scraper-mcp) (`google-news-article-scraper-mcp`)
- [Universal Web Extractor MCP](https://apify.com/reminiscent_medaka/universal-web-extractor-mcp) (`universal-web-extractor-mcp`)

# Actor input Schema

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

Select which official public API to query: ClinicalTrials.gov v2 studies, openFDA Drugs@FDA approvals, or openFDA FAERS adverse event reports.

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

Search term across conditions, drugs/interventions, brand or generic names, or study titles (e.g., 'obesity', 'semaglutide', 'wegovy').

## `sponsorOrCompany` (type: `string`):

Optional lead sponsor, pharmaceutical company, or manufacturer filter (e.g., 'Novo Nordisk', 'Eli Lilly', 'Pfizer').

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

Optional phase filter applied in 'clinical_trials' mode (leave empty to include all phases).

## `overallStatus` (type: `array`):

Optional recruitment/completion status filter applied in 'clinical_trials' mode (leave empty to include all statuses).

## `includeSponsorSummary` (type: `boolean`):

When enabled and at least 1 matching record is found for a sponsor, appends an aggregated sponsor pipeline summary record and triggers the 'sponsor-pipeline-summary' add-on event.

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

Hard cap on the maximum number of primary study or regulatory filing records extracted and pushed.

## `maxCostUsd` (type: `number`):

Pre-charge spending cap in USD. The Actor stops producing billable work before exceeding this budget or when the platform charge limit is reached.

## Actor input object example

```json
{
  "mode": "clinical_trials",
  "query": "obesity",
  "sponsorOrCompany": "Novo Nordisk",
  "includeSponsorSummary": false,
  "maxItems": 25,
  "maxCostUsd": 2
}
```

# Actor output Schema

## `overview` (type: `string`):

Dataset items containing extracted clinical trials, FDA drug approvals, or adverse event reports.

# 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 = {
    "query": "obesity"
};

// Run the Actor and wait for it to finish
const run = await client.actor("2space/fda-clinical-trials-radar").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 = { "query": "obesity" }

# Run the Actor and wait for it to finish
run = client.actor("2space/fda-clinical-trials-radar").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 '{
  "query": "obesity"
}' |
apify call 2space/fda-clinical-trials-radar --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,2space/fda-clinical-trials-radar"
        }
    }
}
```

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/wV5h7GmjahUORzbdu/builds/eS2dFVr5lH1Dlffxa/openapi.json
