# FDA Complete Response Letter Archive — Daily As-Of (`asof_data/fda-crl-as-of`) Actor

Daily FDA Complete Response Letters (CRL) archive since 14 Nov 2026: full snapshots, refusal-to-file notices, tobacco reports, SHA-256 change trail.

- **URL**: https://apify.com/asof_data/fda-crl-as-of.md
- **Developed by:** [Yi Cao](https://apify.com/asof_data) (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 $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?

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 Complete Response Letters & Tobacco Records — Daily As-Of Snapshots

> We do not claim authority. We prove verifiability.

### What this is

A read-only, dated archive of public official records. Every day we capture the **complete** source dataset and publish the exact set of changes from the previous day: `new`, `amended`, `removed` and `reissued`.

The difference from a normal scraper is the **removal trail**. Official sources are updated without notice; a record you cited last month can be amended or quietly deleted, and the publisher usually keeps no public history. A day that has passed cannot be reconstructed by anyone who did not capture it.

### Why not just a scraper

Many actors can diff two runs for you. The difference is who carries the record in between.

- **The history lives on our side, not in your last run.** Some change-detection actors compare against a baseline you paste in from the previous run and persist nothing between runs — skip a day and that day is gone. Here every UTC date is captured and kept, so a date you never ran stays readable for as long as the archive goes back (see **History baseline** below for the exact start date).
- **`removed` is an event, not an absence.** A paged scrape cannot prove a row disappeared. We diff the complete set each day, so a removal arrives as a row with `source_url`, `as_of_date` and a `sha256`.
- **One date axis across datasets.** The same `asof-1` schema, the same manifest shape, the same UTC date for every dataset we publish — no reconciling a different scraper per source.
- **Any captured date is addressable.** You can request a date you have never run before. Elsewhere a date only exists if you happened to run on it.

### What you get

- One JSON row per change event, with `source_url`, `record_id`, `as_of_date`, `retrieved_at`, `sha256`, `first_seen` / `last_seen`, `change_type` and `change_ref`.
- A plain-JSON **manifest** for the date (in the run's key-value store, key `MANIFEST`): record count, four change counts, `dataset_sha256` over the exact event set, and `gap` / `coverage_notes`.
- Optionally the day's **original source bytes** (`include_full`), kept separate from normalized events.
- A `RUN_SUMMARY` describing exactly which shard was read.

### Why the hash matters

`dataset_sha256` is computed over the exact JSONL text of the event set. You can recompute it from the delivered rows and confirm nothing was added, dropped or reordered. Every row's own `sha256` covers its unmodified source payload, so it can be checked against the original URL.

### History baseline

Capture starts **14 Nov 2026** (UTC) and grows by one dated snapshot per day. Every date listed in `available_dates` is readable and none is ever overwritten.

We publish the first captured day rather than claiming "months of history" — please read the date above as the exact depth of this archive.

### Honest coverage policy

- A failed endpoint produces a **gap manifest** and frozen state. We never backfill with yesterday's rows.
- `gap: true` is **not automatically a failure**: it also covers partial coverage (a few rows had no stable primary key and were quarantined, original bytes kept). The exact reason is always spelled out in `coverage_notes`; never read the boolean alone.
- Rows without a stable primary key are **quarantined**: kept in the original bytes, excluded from the event set, and disclosed in the manifest. We do not invent identifiers.
- `records.jsonl` is normally a **change-event set**, not a full snapshot. The complete source-day state is in `full.jsonl.gz`.
- **Zero-change days deliver the full state instead.** If no record changed on the requested date, the dataset rows are that day's complete source state rather than an empty result. `RUN_SUMMARY.delivered_mode` tells you which you got: `events`, `events_plus_full`, `full_fallback`, or `events_empty` (the latter only if the full shard itself could not be read).
- `valid_from` / `valid_to` stay `null` unless a source defines an official effective date. Source date fields such as letter date or submission date are not effective dates.

### Sources & licensing

- `openfda-crl`
- `openfda-tobacco-problem`
- `openfda-tobacco-ads`

Public, official open data. All normalization, hashing and change detection are our own work. We are not affiliated with, endorsed by, or acting on behalf of any source agency. Verify the current terms on the source site before commercial redistribution.

### Endpoints in this dataset

- `openfda-crl`
- `openfda-tobacco-problem`
- `openfda-tobacco-ads`

Each endpoint has its own manifest and independent failure domain: if one source fails on a given day, the others still publish.

### What this is not

No analysis, no compliance advice, no risk ratings, no dashboards, no account system. Just dated facts and a paper trail.

### Pricing

Pay-per-event (PPE) on Apify, two layers:

- **Archive read**: a small flat fee per run, charged only after the date manifest is successfully read. This is what you pay to pull a specific day's archive — **it applies even on days with zero changes**, because the zero-change result (a signed manifest plus an unchanged dataset hash) is itself the product.
- **Per result**: charged per row written to the dataset. On a zero-change day the rows are the day's full state (see above), so the per-result charge applies to those rows — you are never charged a per-result fee for rows you did not receive.
- Optional `include_full` adds the day's original source rows on top of the change events and is charged per row like any other result.

The public website and manifests are free to read; this Actor delivers bulk shards.

### Citation

`source_url` + `record_id` + `as_of_date` + `sha256`. The public site offers copyable citations for sample rows.

***

Actor name: `asof_data/fda-crl-as-of` · Schema: `asof-1`

# Actor input Schema

## `as_of` (type: `string`):

Leave empty to use the latest published vintage. A past date reads that day's immutable shard.

## `source_id` (type: `string`):

Which endpoint inside this dataset to read.

## `include_full` (type: `boolean`):

If true, additionally pushes the original source rows for that date (larger output).

## `max_records` (type: `integer`):

Safety cap. Set higher for full delivery.

## `shard_base_url` (type: `string`):

Origin serving /data/... shards. Override for staging or a mirror.

## Actor input object example

```json
{
  "as_of": "",
  "source_id": "openfda-crl",
  "include_full": false,
  "max_records": 5000,
  "shard_base_url": "https://personapark.com"
}
```

# Actor output Schema

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

One JSON row per change event (new / amended / removed / reissued) for the requested as-of date. Each row carries source_url, record_id, as_of_date, retrieved_at, sha256, first_seen / last_seen, change_type and change_ref.

## `manifest` (type: `string`):

Run manifest (key MANIFEST): event counts, dataset_sha256 over the exact event set, and gap / coverage_notes for the date.

## `run_summary` (type: `string`):

Run metadata (key RUN_SUMMARY): as_of_date, emitted vs available event counts, gap, coverage_notes, dataset_sha256 and the exact shard URL read.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("asof_data/fda-crl-as-of").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("asof_data/fda-crl-as-of").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 '{}' |
apify call asof_data/fda-crl-as-of --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,asof_data/fda-crl-as-of"
        }
    }
}
```

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/hS7ybeccIDjptDmwZ/builds/7W4Fx399ib7lEuLo1/openapi.json
