# FDA OPDP Untitled Letters Scraper (`viktorov_aa/fda-untitled-letters`) Actor

Export FDA OPDP untitled letters with date, company, product, issue and the PDF link. Optional PDF text. Monitor new letters. No API key is needed.

- **URL**: https://apify.com/viktorov_aa/fda-untitled-letters.md
- **Developed by:** [Andrey Viktorov](https://apify.com/viktorov_aa) (community)
- **Categories:** Other, Lead generation
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.50 / 1,000 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/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 OPDP Untitled Letters Scraper

Export the FDA's untitled letters on prescription-drug promotion as a clean table. Untitled letters come from the FDA Office of Prescription Drug Promotion (OPDP) and raise concerns with a drug maker about a promotional piece. The FDA publishes them on one web page, one row per letter, with PDFs behind each row. This Actor reads that [official page](https://www.fda.gov/drugs/warning-letters-and-notice-violation-letters-pharmaceutical-companies/untitled-letters) and gives you the rows as a dataset you can filter, download as CSV or Excel, or call from code.

These are OPDP untitled letters about prescription-drug promotion. They are not the separate FDA Warning Letters database. No API key and no login.

### What does it do?

- Issue date, company and the product or issue as FDA publishes it.
- A direct link to the untitled-letter PDF, plus links to the promotional material, the company response and the close-out letter when the row has them.
- Optional: the text of the first pages of each letter PDF in `pdfText`.
- A monitor mode (`onlyNew`) that returns only letters you have not stored before for the same filter.

### Why use it

Regulatory, medical-affairs and brand teams follow these letters to see which claims the FDA objects to. The web page is easy to read one row at a time but hard to search, sort or diff. A dataset lets you answer questions such as "which companies got a letter this year" or "which products keep coming back" without copying from the page.

### Who is it for

- **Regulatory affairs and promotional-review teams:** track new letters for your own company, your competitors or a product class.
- **Pharma competitive-intelligence analysts:** build a dated archive of letters and look for patterns in the claims FDA challenges.
- **Law firms and consultants:** pull the letters for a client and collect the PDFs in one place.
- **Researchers and journalists:** count letters per company or per year from the official list.

### How to use it

1. Open the Actor and keep the prefill (25 newest letters, no PDF download), or set a `company` or `product` filter.
2. Click **Start**. The prefilled input is a real, small example, so the first run finishes in seconds.
3. Open the **Output** tab and view the table, or download the dataset as CSV, Excel, JSON or HTML. To use the data in other tools, see the integrations below.

### Input

| Field | What it does |
| --- | --- |
| `company` | Keep letters whose company name contains this text. |
| `product` | Keep letters whose product or issue contains this text. |
| `dateFrom` / `dateTo` | Inclusive bounds on the issued date, `YYYY-MM-DD`. |
| `maxLetters` | Cap after filters. The page is newest first. Prefill is 25. Default is 200. The public table is about 120 rows, so the default returns the full table. |
| `extractPdfText` | When true, download the untitled-letter PDF and store the first pages of text in `pdfText`. A PDF that cannot be read is noted in `pdfError`. The letter row is still stored. |
| `onlyNew` | When true, skip letter PDFs already stored for this filter. State lives in the named key-value store `monitor`. |

The form prefill keeps 25 letters and does not download PDFs.

Example input:

```json
{
  "maxLetters": 20
}
```

### Output

One dataset row per result. This is a real row from one of our runs:

```json
{
  "issuedDate": "2026-11-17",
  "company": "Janssen Biotech, Inc.",
  "product": "INLEXZO™ (gemcitabine intravesical system)",
  "issue": "INLEXZO™ (gemcitabine intravesical system)",
  "letterUrl": "https://www.fda.gov/media/196913/download?attachment",
  "promotionalMaterialUrls": [
    "https://www.fda.gov/media/196912/download?attachment"
  ],
  "responseLetterUrl": null,
  "closeoutLetterUrl": null,
  "pdfText": null,
  "sourceUrl": "https://www.fda.gov/drugs/warning-letters-and-notice-violation-letters-pharmaceutical-companies/untitled-letters"
}
```

FDA publishes one column titled Product / Issue. `product` and `issue` both carry that text. `pdfText` is empty unless `extractPdfText` is on.

All output fields:

| Field | What it contains |
| --- | --- |
| `issuedDate` | Date the letter was issued. |
| `company` | Company or individual named on the row, as FDA writes it. |
| `normalizedCompany` | The same name without spelling noise: legal forms (Inc, LLC, L.P., Corporation), generic words (Pharmaceuticals, USA), notes in brackets and ", a ... subsidiary" tails are removed, and "&" and hyphens are unified. "Pfizer Inc.", "Pfizer, Inc" and "Pfizer, Inc." all give "Pfizer". Use it to count letters per company. Subsidiaries stay separate, and a product name that FDA puts in the company cell stays as written. |
| `product` | Product / Issue column published by FDA. |
| `issue` | Same Product / Issue text. FDA does not publish a separate issue column. |
| `letterUrl` | Untitled letter PDF. |
| `closeoutLetterUrl` | Close-out letter URL when the row has one. |
| `sourceUrl` | FDA untitled-letters page. |
| `error` | Reason on error rows. |

### How much does it cost?

You pay per result, not for compute time. The Actor uses pay-per-event pricing with the event **`letter`**: $0.005 for each untitled letter that is stored in the dataset. Failed or error rows are not charged. On top of that, every run is charged a tiny start fee of $0.00005 per start event. Apify counts the events by the memory of the run, so a small run is one event and a memory-heavy run is a few.

| Run size | Calculation | Cost for results |
| --- | --- | --- |
| The prefill | 25 × $0.005 | $0.125 |
| The whole public table at the time of our test run | 121 × $0.005 | $0.605 |

Reading PDF text (`extractPdfText`) does not add a charge. Leave it off for a cheap monitor and turn it on for a small `maxLetters` when you need the wording. The exact prices, including the Apify platform fee, are shown on the Pricing tab of the Actor and apply to your plan. Apify's free plan includes monthly platform credits, so you can try a small run without paying. To cap spending, set **Maximum cost per run** in the run options. The Actor stops adding results when that limit is reached. If a run hits that limit, it stops and says so: the log gets a warning, the run status message starts with `INCOMPLETE`, and `SUMMARY.complete` is false. To get a full download, raise **Maximum cost per run**, or split the work (for example with dateFrom/dateTo or tighter filters) and merge the datasets.

### Monitor new letters on a schedule

1. Run the Actor once with your filter (for example `company`: `Pfizer`) and `onlyNew` set to `true`. The first run stores every match.
2. Create an Apify schedule that starts the same input every week.
3. From then on, each run returns only letters that were not stored by an earlier run of the same filter. State lives in the named key-value store `monitor`, so add a webhook or an integration step to be notified when a run returns rows.

### Integrations

You can run this Actor from the Apify Console, on a schedule, or from your own code and tools. Results land in a standard Apify dataset, so every integration below reads the same rows.

#### API

Run the Actor and get the rows back in one HTTP call. Replace `<YOUR_APIFY_TOKEN>` with your token from Apify Console, Settings, Integrations:

```bash
curl -X POST "https://api.apify.com/v2/acts/viktorov_aa~fda-untitled-letters/run-sync-get-dataset-items?token=<YOUR_APIFY_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"maxLetters": 20}'
```

The synchronous endpoint waits for the run to finish and Apify limits it to 5 minutes. For bigger runs, start the Actor with `POST /v2/acts/viktorov_aa~fda-untitled-letters/runs`, then read the dataset when the run has finished (or let a webhook tell you).

Python, with the [Apify client](https://docs.apify.com/api/client/python):

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("viktorov_aa/fda-untitled-letters").call(run_input={
    "maxLetters": 20
})
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(row)
```

JavaScript, with the [Apify client](https://docs.apify.com/api/client/js):

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

const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });
const run = await client.actor('viktorov_aa/fda-untitled-letters').call({
    "maxLetters": 20
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

#### AI agents and MCP

The Actor works as a tool for AI agents through the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp). Point an MCP client that supports remote servers at this URL, sign in with your Apify account, and the agent can call the Actor with the input fields above:

```text
https://mcp.apify.com?tools=viktorov_aa/fda-untitled-letters
```

Ask the agent in plain language, for example: "Use FDA OPDP Untitled Letters Scraper with my filter and summarize the rows." The agent sees the input schema and the output fields, so it fills the fields for you.

#### Make, Zapier, n8n and Google Sheets

Apify has official apps for Make, Zapier and n8n. In each one, choose the action that runs an Actor, select `viktorov_aa/fda-untitled-letters`, paste the input JSON, then map the dataset items to the next step. The Apify integration for Google Sheets can send a finished dataset to a spreadsheet. Webhooks on the Actor let you start your own process as soon as a run succeeds, and Apify schedules start it daily or weekly with no code.

### FAQ

#### Are these the same as FDA warning letters?

No. This Actor reads the OPDP untitled-letters page only. FDA Warning Letters are a separate database and are not included.

#### How many letters are there, and how fresh is the data?

The public table lists about 120 letters, newest first, and our test run of the whole table returned 121 rows. The Actor reads the page at run time, so it is as fresh as the FDA page.

#### Can I get the text of the letter?

Yes. Turn on `extractPdfText` and the Actor downloads each letter PDF and stores the text of the first pages in `pdfText`. If a PDF cannot be read, the row is still stored and the problem is noted in `pdfError`, and you are not charged twice.

#### Why is there both `product` and `issue`?

FDA publishes one column called Product / Issue. Both fields carry that same text.

#### Do I need a proxy or an API key?

No. The FDA page answered without a proxy in our runs. A proxy option exists in the input if a run is ever blocked.

#### Can I search by drug name or by date?

Use `product` for a drug or issue text, `company` for the company, and `dateFrom` / `dateTo` for the issue date. All filters are "contains" matches except the dates.

#### What if the FDA page cannot be read?

The run fails before any charge, so you do not pay for an empty result.

### Limitations

- The table is the full public OPDP untitled-letter list maintained by the CDER Freedom of Information Office. FDA may redact letters.
- Promotional files can be PDF or video. Only the untitled-letter link is opened when text extraction is on.
- Leave `extractPdfText` off for a cheap monitor. Turn it on for a small `maxLetters` when you need the wording of the letter.
- This is the public OPDP list. It does not include warning letters. FDA may redact letters, and the Actor returns what the page shows.
- The Actor stores links to promotional files. It does not download videos or other promotional material.

### More actors by the same author

Same publisher, same pay-per-result pricing, same no-login approach. Pick the ones that fit your workflow:

- [FDA Guidance Documents Search Scraper](https://apify.com/viktorov_aa/fda-guidance-documents) — the FDA guidance catalog, final or draft, by center and topic.
- [FDA Paragraph IV Patent Certifications Scraper](https://apify.com/viktorov_aa/fda-paragraph-iv-scraper) — the Paragraph IV certifications list, with 180-day exclusivity status and first-filer dates.
- [FDA Drug Master Files (DMF) Directory Scraper](https://apify.com/viktorov_aa/fda-drug-master-files-scraper) — the public DMF list: number, holder, type, status and subject.
- [EDQM Certificates of Suitability (CEP) Scraper](https://apify.com/viktorov_aa/edqm-cep-certificates) — European Pharmacopoeia certificates of suitability by substance, holder, country and status.
- [SEC No-Action and Interpretive Letters Scraper](https://apify.com/viktorov_aa/sec-no-action-letters) — SEC staff no-action, interpretive and exemptive letters by division, company and rule.

The full catalog with use-case pages is at [legion-factory.dev/actors](https://legion-factory.dev/actors/).

### Support

Found a problem, or need a field or a filter that is missing? Open an issue in the **Issues** tab of this Actor page. Publisher: [legion-factory.dev](https://legion-factory.dev/actors/).

# Actor input Schema

## `company` (type: `string`):

Keep letters whose company name contains this text.

## `product` (type: `string`):

Keep letters whose Product / Issue column contains this text.

## `dateFrom` (type: `string`):

Keep letters issued on or after this day.

## `dateTo` (type: `string`):

Keep letters issued on or before this day.

## `maxLetters` (type: `integer`):

Cap after filters. The page is newest first. The prefill is 25. The default when omitted is 200.

## `extractPdfText` (type: `boolean`):

Download each untitled-letter PDF and store the text of the first pages. A failed PDF is noted and is not a separate charge.

## `onlyNew` (type: `boolean`):

When true, skip letters already stored for this same filter in the named key-value store monitor. The first run stores the matches. Error rows are not recorded.

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

The official source answers without a proxy. Turn on Apify Proxy only if a run is blocked.

## Actor input object example

```json
{
  "company": "",
  "product": "",
  "dateFrom": "",
  "dateTo": "",
  "maxLetters": 25,
  "extractPdfText": false,
  "onlyNew": false,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

Default dataset in the overview table: date, company, product, issue and PDF URL.

# 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 = {
    "company": "",
    "product": "",
    "dateFrom": "",
    "dateTo": "",
    "maxLetters": 25,
    "extractPdfText": false,
    "onlyNew": false,
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("viktorov_aa/fda-untitled-letters").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 = {
    "company": "",
    "product": "",
    "dateFrom": "",
    "dateTo": "",
    "maxLetters": 25,
    "extractPdfText": False,
    "onlyNew": False,
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("viktorov_aa/fda-untitled-letters").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 '{
  "company": "",
  "product": "",
  "dateFrom": "",
  "dateTo": "",
  "maxLetters": 25,
  "extractPdfText": false,
  "onlyNew": false,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call viktorov_aa/fda-untitled-letters --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,viktorov_aa/fda-untitled-letters"
        }
    }
}
```

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/6GzknqsU2chOngErM/builds/qs4iu2GhS0gbu3XNf/openapi.json
