# FDA Warning Letters Scraper - Database with Closeout Status (`s-r/fda-warning-letters`) Actor

Get every FDA warning letter and closeout letter as a structured row: company, subject, issuing office, violations, issue date and closeout status with its own dates. Search by company, topic or date range and export with official source links for compliance and supplier screening.

- **URL**: https://apify.com/s-r/fda-warning-letters.md
- **Developed by:** [SR](https://apify.com/s-r) (community)
- **Categories:** Business, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 run start fees

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?

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 Scraper - Database with Closeout Status

Search FDA warning letters by company, subject, issuing office and issue date. Get structured rows with official source links, numbered violations and closeout status for company monitoring, supplier research and compliance workflows.

The actor reads the public FDA warning letter index and, when requested, the original letter pages. Each dataset row represents one warning letter. Closeout information stays attached to that original letter, so you can compare a company's correspondence over time without treating a closeout letter as another warning.

### Search FDA warning letters

Use a company name to look for a supplier, manufacturer or brand owner. Add a subject such as Compounding to focus on an FDA category. You can also search an issuing office or provide a date window. At least one of these search filters is required. Searches across several fields use AND: a letter must match every supplied filter.

Company and subject matching use case-insensitive substrings in the respective published fields. A company search is not a legal-entity resolution service. Trading names, subsidiaries and punctuation can differ between the FDA index, a recall report and a company register. Keep the original `firm` value and source URL when reviewing a possible match. The field uses the same company-name meaning as our FDA recalls dataset, which supports joining those records after your own name reconciliation.

### Input

A company search with details:

```json
{"company":"Pritam","maxItems":1,"detail":true}
```

A search for a published closeout link:

```json
{"company":"Thrive","closeoutStatus":"with","maxItems":1,"detail":false}
```

These company names come from published FDA records. They demonstrate input syntax and source coverage; their presence here does not describe their current regulatory position.

| Field | Meaning |
|---|---|
| `company` | Substring of the published company name |
| `subject` | Substring of the letter's subject categories |
| `issuingOffice` | Published issuing office; CDER, CDRH, CBER and CVM abbreviations also work |
| `dateFrom` | Inclusive warning letter issue date in YYYY-MM-DD form |
| `dateTo` | Inclusive warning letter issue date in YYYY-MM-DD form |
| `closeoutStatus` | `any`, `with` or `without`; default `any` |
| `maxItems` | Total delivery limit from 1 to 300; default 100 |
| `detail` | Include letter-page enrichment; default `true` |
| `cursor` | A continuation token from an earlier response with the same filters |

A date range can span calendar years. Both boundaries apply to the original warning letter's issue date. They do not filter the posting date or the date of a subsequent closeout letter. Invalid calendar dates and reversed date ranges are rejected before collection.

### Output

The default dataset contains one row per delivered warning letter. The principal fields are `letter_id`, `firm`, `url`, `issue_date`, `published_date`, `issuing_office`, `subject`, `violations`, `closed_out` and `closeout_date`. Every row also carries `source`, `authority`, `fetched_at` and its delivery `position`.

The `letter_id` normally contains the FDA MARCS-CMS identifier. Where a URL has no such identifier, it contains the final source URL segment. Keep `url` when comparing versions of a letter. `subject_categories` splits the published subject into a list for downstream filtering.

A closeout has two separate dates. `closeout_date` is the issue date encoded in the closeout letter's source URL. `closeout_posted_date` is when FDA posted that correspondence in its index. They can differ. `closeout_letter_url` lets you inspect the underlying closeout document. `closed_out: false` means the index did not provide a closeout link at collection time. It does not establish that a firm is currently noncompliant, nor that later correspondence does not exist.

With details enabled, the row includes `reference_number`, `delivery_method`, `products` and `recipient`. Recipient fields preserve the published name, title, company and address components. `violations` contains numbered observations extracted from the warning letter, or explicit violation headings when observations are unnumbered. It is `null` when details were not requested or could not be retrieved, and an empty list when a retrieved letter has no recognised violation observations or headings. `detail_fetched` distinguishes retrieval from omission. A warning explains failed retrieval or missing numbered observations. The complete letter body is available through the source link.

The run summary contains delivery counts and collection warnings. Large searches are collected in continuation pages automatically by the actor. API clients can use `next_cursor` with the original filters and detail setting. Tokens expire after 24 hours. The index can change while pages are being collected, so a multi-page search is not a historical snapshot.

#### Example row

A real delivered row for `{"company":"Pritam","maxItems":1,"detail":true}`, with the excerpt shortened here for readability:

```json
{
  "source": "fda-warning-letters",
  "authority": "fda",
  "fetched_at": "2026-11-08T20:53:07.847557Z",
  "letter_id": "738079",
  "url": "https://www.fda.gov/inspections-compliance-enforcement-and-criminal-investigations/warning-letters/pritam-international-private-limited-738079-10272026",
  "firm": "Pritam International Private Limited",
  "issue_date": "2026-10-27",
  "published_date": "2026-11-03",
  "issuing_office": "Center for Drug Evaluation and Research (CDER)",
  "subject": "CGMP/Finished Pharmaceuticals/Adulterated",
  "subject_categories": [
    "CGMP",
    "Finished Pharmaceuticals",
    "Adulterated"
  ],
  "closed_out": false,
  "closeout_date": null,
  "closeout_posted_date": null,
  "closeout_letter_url": null,
  "response_letter_date": null,
  "response_letter_url": null,
  "excerpt": "… Pritam International Private Limited … Over-the-Counter Drugs … during review of your drug manufacturing facility, Pritam International Private Limited, FDA E …",
  "violations": [
    "1. Your firm failed to ensure that laboratory records included complete data derived from all tests necessary to ensure compliance with established specifications and standards (21 CFR 211.194(a)).",
    "2. Your firm failed to conduct at least one test to verify the identity of each component of a drug product. Your firm also failed to validate and establish the reliability of your component supplier’s test analyses at appropriate intervals (21 CFR 211.84(d)(1) and 211.84(d)(2)).",
    "3. Your firm’s quality control unit failed to exercise its responsibility to ensure drug products manufactured are in compliance with CGMP, and meet established specifications for identity, strength, quality, and purity (21 CFR 211.22)."
  ],
  "letter_type": "WARNING LETTER",
  "reference_number": "320-27-12",
  "delivery_method": "VIA ELECTRONIC MAIL READ/DELIVERY RECEIPT REQUESTED",
  "products": [
    "Drugs",
    "Over-the-Counter Drugs"
  ],
  "recipient": {
    "name": "Dr. Rahul Mahajan Sr",
    "title": "General Manager Quality",
    "company": "Pritam International Private Limited",
    "street": "Khasra No. 138, Raipur Industrial Area, Bhagwanpur",
    "city": "Haridwar",
    "state": "Uttarakhand",
    "postal_code": "247667",
    "country": "India"
  },
  "detail_fetched": true,
  "position": 1
}
```

A delivered row that already carries a closeout, for `{"company":"Thrive","closeoutStatus":"with","maxItems":1,"detail":false}`:

```json
{
  "source": "fda-warning-letters",
  "authority": "fda",
  "fetched_at": "2026-11-08T20:53:24.250023Z",
  "letter_id": "714891",
  "url": "https://www.fda.gov/inspections-compliance-enforcement-and-criminal-investigations/warning-letters/thrive-health-and-wellness-llc-dba-thrive-health-solutions-714891-02092026",
  "firm": "Thrive Health and Wellness, LLC dba Thrive Health Solutions",
  "issue_date": "2026-02-09",
  "published_date": "2026-04-21",
  "issuing_office": "Center for Drug Evaluation and Research (CDER)",
  "subject": "Compounding Pharmacy/Adulterated Drug Products",
  "subject_categories": [
    "Compounding Pharmacy",
    "Adulterated Drug Products"
  ],
  "closed_out": true,
  "closeout_date": "2026-07-27",
  "closeout_posted_date": "2026-08-06",
  "closeout_letter_url": "https://www.fda.gov/inspections-compliance-enforcement-and-criminal-investigations/warning-letters/thrive-health-and-wellness-llc-dba-thrive-health-solutions-714891-07272026",
  "response_letter_date": null,
  "response_letter_url": null,
  "excerpt": null,
  "violations": null,
  "letter_type": null,
  "reference_number": null,
  "delivery_method": null,
  "products": null,
  "recipient": null,
  "detail_fetched": false,
  "position": 1
}
```

Both rows come from collected FDA responses; they demonstrate the field shape of a delivered row.

### Use cases

- **Compliance and quality monitoring.** Follow the correspondence history of a manufacturer you depend on: which letters were issued, which were answered, which were closed out, and when. Filtering on `closeoutStatus` separates active matters from closed ones without reading every letter yourself.
- **Supplier and procurement screening.** Before awarding or renewing a contract, check whether the supplier appears in the FDA warning letter index. Search the trading name you have on file, review the `recipient` address components and `products` list, and open the source URL before you decide.
- **Brand protection.** Search your own brand, product names or look-alike company names to see who else is writing to the FDA about similar products, and watch new letters appear inside a date window.
- **Pharmaceutical competitive intelligence.** Compare enforcement activity across companies, issuing offices and subject categories such as Compounding or CGMP over a period, and export the rows for a dashboard or a report.
- **Joining FDA data.** The `firm` value carries the same company-name meaning as our FDA recalls dataset, so warning letter rows and recall rows can be matched after your own name reconciliation.

### How this compares

FDA's own warning-letter pages are the source, and they remain the place to read a letter in full. What the site gives you is a browsing interface: the spreadsheet export behind that page returns a fixed-size window and does not apply the filters set on the page, and closeout correspondence is a separate page rather than a status on the original letter. This actor gives you one row per letter with the closeout status, both closeout dates and the closeout document link already attached, with the filters you asked for applied and the result delivered to a dataset you can page through with a cursor.

Existing actors on the Apify Store cover parts of the same source. One of them collects recipient and remediation information, one returns the feed as flat rows, one focuses on full text and metadata. None of the listings advertises closeout status carried on the original letter with separate issue and posting dates, and none is built around joining the company name to a recall history. If you only need the raw list of letters, a lighter tool is enough; if you need to say what happened to a letter after it was issued, this is the structured form to buy.

### Pricing

The actor uses a start event and a warning-letter result event. The result event counts rows actually delivered to the dataset, once per row. Letter details are included in that row price, with no separate detail event. A search with no matching records has no result charge; the start event still applies. The current event prices displayed on the actor's Pricing tab are authoritative.

Non-paying Apify users are limited to 10 delivered rows per run. The same detail fields remain available within that limit. This is a delivery cap, not a statement that platform usage or dataset rows have no cost. Set `maxItems` to the amount you need and review the run summary when collection is partial.

### FAQ

#### Does a missing closeout link prove an unresolved violation?

No. It describes the public index at collection time. FDA notes that later interaction with a recipient may change the regulatory status of the matters described in a warning letter. Open the original records and review subsequent correspondence when making a compliance decision.

#### Can I search company and subject together?

Yes. Both conditions must match their respective FDA fields. You can add issuing-office, issue-date and closeout filters to the same request. A valid search with no matching letters returns an empty outcome rather than a fabricated company record.

#### Why are some violation values null?

Details can be disabled with `detail: false`, or a requested letter page may be unavailable. A null value preserves that distinction from an empty list on a retrieved letter. Check `detail_fetched`, the warnings and the official URL before interpreting missing observations.

#### How can I export or compare results?

Export the default dataset as JSON or CSV using Apify's dataset tools. Compare records by source URL and FDA identifier, retain collection timestamps, and reconcile company names before joining to recalls or company registers. No external enrichment account or private company data is required.

#### Can I monitor a retailer or brand owner such as Walmart or Target?

Yes. `company` is a substring of the published company name, so send the trading name you already have on file, for example `{"company":"Walmart","maxItems":50}`. The actor returns only letters the FDA index publishes for matching names; an empty result means no published match for that substring. Name matching is not legal-entity resolution, so keep the `firm` value and source URL and open the record before you draw a conclusion about a company.

#### Can I continue a large search later?

Yes. The response carries `next_cursor` when more rows remain. Send it back with the original filters and detail setting to collect the next page. A token stays valid for 24 hours, and each page is charged only for the rows it delivers.

# Actor input Schema

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

Case-insensitive substring of the FDA company name. At least one search filter is required.

## `subject` (type: `string`):

Case-insensitive substring of the FDA subject categories, combined with other filters using AND.

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

Issuing-office substring. CDER, CDRH, CBER and CVM abbreviations are supported.

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

Inclusive warning letter issue date, YYYY-MM-DD. Calendar dates are validated.

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

Inclusive warning letter issue date, YYYY-MM-DD. May span multiple years.

## `closeoutStatus` (type: `string`):

Filter by presence of a closeout link in the official FDA index.

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

Maximum delivered rows across continuation pages. Non-paying Apify users receive at most 10 rows.

## `detail` (type: `boolean`):

Fetch violations, reference number, product categories and recipient from each warning letter page.

## `cursor` (type: `string`):

Continuation token returned as next_cursor. Reuse the original filters and detail option within 24 hours.

## Actor input object example

```json
{
  "company": "Pritam",
  "closeoutStatus": "any",
  "maxItems": 100,
  "detail": true
}
```

# Actor output Schema

## `letters` (type: `string`):

One dataset row per warning letter.

## `summary` (type: `string`):

Delivery counts and continuation status.

## `errors` (type: `string`):

Source or input errors.

# 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": "Pritam"
};

// Run the Actor and wait for it to finish
const run = await client.actor("s-r/fda-warning-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": "Pritam" }

# Run the Actor and wait for it to finish
run = client.actor("s-r/fda-warning-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": "Pritam"
}' |
apify call s-r/fda-warning-letters --silent --output-dataset

```

## MCP server setup

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