# FDA Warning Letters & GMP Compliance Scraper (`gmpsignal/fda-warning-letters-scraper`) Actor

Extract official US FDA Warning Letters (CDER, CDRH, CFSAN, CBER), recipient companies, MARCS-CMS IDs, CGMP & regulatory violation clauses, response letters, and closeout status.

- **URL**: https://apify.com/gmpsignal/fda-warning-letters-scraper.md
- **Developed by:** [GMPSignal](https://apify.com/gmpsignal) (community)
- **Categories:** Lead generation, Automation, AI
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.40 / 1,000 warning letters

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/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

## FDA Warning Letters & GMP Compliance Scraper

Extract official **U.S. Food and Drug Administration (FDA) Warning Letters** (`fda.gov`) including recipient company names, MARCS-CMS IDs, issuing centers (`CDER`, `CDRH`, `CFSAN`, `CBER`, `CVM`), CGMP and regulatory violation subjects, response letters, and closeout status.

### What it does

When the FDA finds that a pharmaceutical, medical device, food, biologics, or tobacco manufacturer has significantly violated federal regulations (such as 21 CFR Part 211 / Part 820 CGMP requirements), it issues an official **Warning Letter**. This Actor fetches the official FDA Warning Letters catalog, filters and normalizes every record, and optionally extracts the full text excerpt of each letter:

- **Company & case identifiers:** `companyName`, `marcsCmsId`, `slug`, and direct `url`
- **Regulatory metadata:** `letterIssueDate`, `postedDate`, `issuingOffice`, raw `subject`, and split `violationCategories` array
- **Remediation tracking:** `hasResponseLetter`, `responseLetterUrl`, `isClosedOut`, `closeoutDate`, and `closeoutLetterUrl`
- **Optional full-text inspection:** Enable `includeLetterBody` to extract up to 4,000 characters of the official warning letter text

### Input parameters

| Field | Type | Default | Description |
|---|---|---|---|
| `keywords` | `string` | `""` | Search across company name, MARCS ID, office, or violation text (e.g. `"CGMP"`, `"sterile"`, `"API"`). |
| `issuingOffice` | `string` | `""` | Filter by FDA issuing office (e.g. `"Center for Drug Evaluation and Research"`). |
| `subjectFilter` | `string` | `""` | Filter by violation subject (e.g. `"CGMP"`, `"Adulterated"`, `"Medical Device"`). |
| `daysBack` | `integer` | `3650` | Look-back window in days (`1` to `7300`). |
| `onlyWithoutCloseout` | `boolean` | `false` | Return only unresolved warning letters that have not yet been closed out. |
| `includeLetterBody` | `boolean` | `false` | Fetch individual letter HTML pages on `fda.gov` to extract a text excerpt. |
| `maxItems` | `integer` | `100` | Maximum number of warning letters to return. |

### Example output

```json
{
  "companyName": "Suzhou Pharmaceutical Technology Co.,Ltd",
  "marcsCmsId": "508490",
  "slug": "suzhou-pharmaceutical-technology-coltd-508490-01062017",
  "letterIssueDate": "2017-01-06",
  "postedDate": "2017-01-17",
  "issuingOffice": "Center for Drug Evaluation and Research",
  "subject": "CGMP/Active Pharmaceutical Ingredient (API)/Adulterated",
  "violationCategories": ["CGMP", "Active Pharmaceutical Ingredient (API)", "Adulterated"],
  "hasResponseLetter": false,
  "responseLetterUrl": null,
  "isClosedOut": false,
  "closeoutDate": null,
  "closeoutLetterUrl": null,
  "url": "https://www.fda.gov/inspections-compliance-enforcement-and-criminal-investigations/warning-letters/suzhou-pharmaceutical-technology-coltd-508490-01062017",
  "scrapedAt": "2026-11-08T11:00:00.000Z"
}
```

### Use cases

- **GMP Quality & Regulatory Intelligence:** Monitor new CGMP, data integrity, and sterile manufacturing citations across global suppliers.
- **CDMO & Consulting Lead Generation:** Identify pharmaceutical and medical device facilities with open warning letters that require remediation consulting or contract manufacturing support.
- **Supply Chain Due Diligence:** Screen vendor facilities against FDA enforcement history.

### AI Agent, MCP Server & LLM / RAG Integration

This Actor is **AI-Agent and Model Context Protocol (MCP) ready**. Connect it directly to **Claude Desktop, Cursor, Windsurf, LangChain, CrewAI, n8n, Make, and Clay** via the official Apify MCP Server:

```json
{
  "mcpServers": {
    "apify": {
      "command": "npx",
      "args": [
        "-y",
        "@apify/actors-mcp-server",
        "--actors",
        "gmpsignal/fda-warning-letters-scraper"
      ],
      "env": {
        "APIFY_TOKEN": "<YOUR_APIFY_API_TOKEN>"
      }
    }
  }
}
```

- **Hosted MCP Endpoint:** `https://mcp.apify.com?actors=gmpsignal/fda-warning-letters-scraper`
- **Deterministic JSON Output:** Structured dataset views designed for zero-hallucination RAG pipelines, autonomous AI agents, and automated B2B workflows.

### Related Actors by GMPSignal

| Category | Actor | Apify Slug |
|---|---|---|
| **Crypto & DeFi** | DEX Token Scanner & Rugpull Security Auditor | `gmpsignal/dex-token-scanner-security-auditor` |
| **Crypto & Quant** | Crypto Order Book, Slippage & Funding Arbitrage | `gmpsignal/crypto-orderbook-arbitrage-scanner` |
| **Web3 Compliance** | Multi-Chain Wallet Portfolio & AML Risk Screener | `gmpsignal/multichain-wallet-aml-risk-screener` |
| **DeFi Analytics** | DeFi Yield Farming, Protocol TVL & Stablecoin Monitor | `gmpsignal/defi-yield-tvl-stablecoin-monitor` |
| **Prediction Markets** | Polymarket, Kalshi & Manifold Prediction Markets API | `gmpsignal/prediction-markets-polymarket-kalshi-scanner` |
| **B2B Lead Enrichment** | B2B Domain Tech Stack, Contacts, DNS & SSL Enricher | `gmpsignal/b2b-company-techstack-contacts-enricher` |
| **Corporate KYB** | Global Corporate KYB, GLEIF LEI & Sanctions Screen | `gmpsignal/global-sanctions-pep-gleif-kyb-screener` |
| **Cybersecurity** | CVE Vulnerability, CISA KEV, EPSS & Exploit Scanner | `gmpsignal/cyber-cve-kev-epss-vulnerability-scanner` |
| **VC & Startups** | YC Startups, GitHub Trending & HN DealFlow Radar | `gmpsignal/startup-vc-dealflow-yc-github-radar` |
| **Science & R\&D** | OpenAlex Scientific Papers, Citations & R\&D Monitor | `gmpsignal/academic-patent-research-citation-intelligence` |

# Actor input Schema

## `keywords` (type: `string`):

Filter by company name, MARCS-CMS ID, issuing office, or violation keyword (e.g. "CGMP", "sterile", "API", "medical device").

## `issuingOffice` (type: `string`):

Optional substring filter on the FDA issuing office (e.g. "Center for Drug Evaluation and Research", "CDRH", "CFSAN").

## `subjectFilter` (type: `string`):

Optional substring filter on violation subject (e.g. "CGMP", "Adulterated", "Misbranded", "Foodborne").

## `daysBack` (type: `integer`):

Return warning letters issued within the last N days (e.g. 365 = last year, 3650 = last 10 years).

## `onlyWithoutCloseout` (type: `boolean`):

When enabled, excludes warning letters that have already received an FDA closeout letter.

## `includeLetterBody` (type: `boolean`):

When enabled, fetches each individual warning letter page on fda.gov and extracts up to 4,000 characters of the letter text (up to 50 letters per run).

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

Maximum number of warning letters to return.

## `proxyConfiguration` (type: `object`):

Optional proxy configuration.

## Actor input object example

```json
{
  "keywords": "",
  "issuingOffice": "",
  "subjectFilter": "",
  "daysBack": 3650,
  "onlyWithoutCloseout": false,
  "includeLetterBody": false,
  "maxItems": 100
}
```

# Actor output Schema

## `results` (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 = {
    "keywords": "",
    "issuingOffice": "",
    "subjectFilter": "",
    "daysBack": 3650,
    "maxItems": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("gmpsignal/fda-warning-letters-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 = {
    "keywords": "",
    "issuingOffice": "",
    "subjectFilter": "",
    "daysBack": 3650,
    "maxItems": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("gmpsignal/fda-warning-letters-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 '{
  "keywords": "",
  "issuingOffice": "",
  "subjectFilter": "",
  "daysBack": 3650,
  "maxItems": 100
}' |
apify call gmpsignal/fda-warning-letters-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,gmpsignal/fda-warning-letters-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/ObFzCMZox7Zft7MyK/builds/UM7RZfurkLKdjGU7D/openapi.json
