# CFPB Complaint Narratives - Consumer Text Archive (`j0401/cfpb-complaint-narratives`) Actor

Complaint narratives from the CFPB public database (public data, ~3.85M complaints, March 2015-Aug 2026, CFPB-redacted): filter by date, product, issue, company, state or tag, or search the narrative text. The live register no longer publishes narratives; this is the archived text.

- **URL**: https://apify.com/j0401/cfpb-complaint-narratives.md
- **Developed by:** [Wenhao Yang](https://apify.com/j0401) (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 $0.20 / 1,000 cfpb complaint narratives

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

## CFPB Complaint Narratives - the Consumer's Own Words (2015-2026)

The **US Consumer Financial Protection Bureau** publishes each complaint in two layers: the structured record (product, issue, company, response) and - only when the consumer consents and the Bureau scrubs it - the consumer's own **free-text narrative**. That text is what this actor delivers: **3,851,415 complaints received between March 2015 and 11 August 2026**, each one a first-person account of what went wrong, with the personal data replaced by `XXXX`.

### Why an archive

The Bureau stopped publishing narratives in the live register on **2026-08-14**. The complaint API no longer returns the `complaint_what_happened` field, the `has_narrative` filter is silently ignored, and the official `complaints.csv.zip` bulk export is back to 15 structured columns with no narrative. The only public source for the text is the Bureau's FOIA Reading Room monthly archive - 21 exports that together carry every narrative ever published.

This actor is built on that archive. It is a **historical corpus, not a live feed**: the newest narrative you can get is 2026-08-11, and no newer ones are being published.

### Low cost

**From $0.0008 per record, down to $0.0002 at Gold** - you pay for the rows you receive (in `mode=aggregate`, one charge per group row); the scan behind them is not billed.

### What you get

One row = one complaint that carries a published narrative. The fields are the structured complaint plus the text:

| Field | What it is |
|---|---|
| `complaintId` | the Bureau's complaint id (joinable to the live complaint register) |
| `dateReceived` | date the Bureau received the complaint |
| `product` / `subProduct` | product classification (21 products, 86 sub-products) |
| `issue` / `subIssue` | issue classification (173 issues) |
| `company` | company the complaint was routed to (Bureau-normalized name) |
| `state` / `zipCode` | consumer's state and ZIP, as published |
| `tags` | `Servicemember` / `Older American` special-population markers |
| `submittedVia` | submission channel - the archive carries only `Web` |
| `companyResponse` | how the company answered (6 values, plus blank) |
| `timely` | whether the company responded on time |
| `narrative` | the consumer's narrative, redacted |
| `archiveThrough` | the archive cutoff (`2026-08-14`) |

#### Coverage, honestly

- **3,851,415 narratives** out of **17.5M complaints** in the same archive - only about 22% of complaints ever carried a published narrative, and narratives only begin in **March 2015** (the register itself starts in 2011).
- **2026 is sparse** because the Bureau froze narrative publication: Q1 55,991 / Q2 55,400 / Q3 10,003 rows. 2025H1 is the largest half-year (695,184).
- The Bureau replaces personal data inside the text with `XXXX` (names, account numbers, amounts). The text is a consumer allegation, not a finding - plain-language, unverified, and sometimes emotional.
- Duplicate complaint ids are not expected (the archive exports cover disjoint date ranges), and `complaintId` is unique within the corpus.

### Search it

A **bare run reads the newest quarter** (10,003 narratives in 2026Q3) and returns the newest records - light enough for the daily auto-test.

A **filtered run needs a date range**, and one run reads at most **two quarters (half a year)** - the corpus is split into quarterly shards so a run downloads only what its window touches:

- **Date** - `dateFrom` / `dateTo` (YYYY-MM-DD, inclusive).
- **Product filters** - `product`, `subProduct`, `issue` (exact source values).
- **Company** - `company="EQUIFAX, INC."` (the Bureau's exact normalized name).
- **Where / who** - `state="TX"`, `tags="Servicemember"`.
- **Response** - `companyResponse`, `timely`, `submittedVia`.
- **Text search** - `searchTerm="foreclosure"` matches, case-insensitively, inside the narrative and across product / subProduct / issue / subIssue / company.

### Example inputs

**Narratives from Texas, July 2026** - 1,117 matches.

```json
{ "dateFrom": "2026-07-01", "dateTo": "2026-07-31", "state": "TX", "maxResults": 5 }
```

**Debt-collection narratives, first half of 2025** - 49,807 matches.

```json
{ "dateFrom": "2025-01-01", "dateTo": "2025-06-30", "product": "Debt collection", "maxResults": 25 }
```

**Free-text search across the text itself** - `foreclosure` in 2025H1 matches 2,052 narratives.

```json
{ "dateFrom": "2025-01-01", "dateTo": "2025-06-30", "searchTerm": "foreclosure", "maxResults": 10 }
```

**Count the mix** - aggregate the whole archive by product (precomputed, one small read).

```json
{ "mode": "aggregate", "groupBy": "product" }
```

### Or roll it up

`mode=aggregate` returns one count row per group - **product**, **subProduct**, **issue**, **state**, **companyResponse**, **timely**, **submittedVia** or **tags**. Without filters the counts come from the whole archive (precomputed); with filters they are computed over the selected quarters, subject to the same date-range rule. **`maxResults` does not apply in aggregate mode** - the rollup returns every group (up to the actor's group ceiling), which is why it is billed per group row.

### Example output

One narrative record (text truncated here):

```json
{
 "platform": "cfpb-complaint-narratives",
 "source": "cfpb-narrative-archive",
 "mode": "rows",
 "archiveThrough": "2026-08-14",
 "complaintId": "23927428",
 "dateReceived": "2026-07-07",
 "product": "Payday loan, title loan, personal loan, or advance loan",
 "subProduct": "Installment loan",
 "issue": "Problem with additional add-on products or services",
 "subIssue": "",
 "company": "SYNCHRONY FINANCIAL",
 "state": "TX",
 "zipCode": "75217",
 "tags": "",
 "submittedVia": "Web",
 "companyResponse": "Closed with explanation",
 "timely": "No",
 "narrative": "am filing a complaint regarding the handling of my trailer loan payoff by Synchrony. On XX/XX/year>, I followed Synchrony 's instructions and overnighted the full payoff amount ...",
 "groupKey": "",
 "groupCount": "",
 "groupBy": "",
 "sourceUpdatedAt": "2026-08-14"
}
```

### Data notes

- **Redaction** - the Bureau replaces personal data with `XXXX`; pooled across the archive the marker appears in about 80% of narratives (52%-86% depending on the quarter). The text is published public record.
- **One row = one complaint with a narrative** - this is not the full complaint register. For the structured, live register (including complaints without a narrative), use the companion actor **CFPB Consumer Complaints**.
- **Company names are exact** - matching is case-insensitive but must otherwise equal the Bureau's name (a partial value matches nothing); use `searchTerm` for fuzzy matching.
- **Quarters, not years** - the archive is sharded by quarter to keep each run's download bounded. The actor refuses a window wider than two quarters rather than streaming the whole 1 GB corpus for one page of records.

### Source

US Consumer Financial Protection Bureau, [Consumer Complaint Database - Narratives Archive](https://www.consumerfinance.gov/foia-requests/foia-electronic-reading-room/cfpb-consumer-complaint-database-narratives-archive/) (FOIA Reading Room; public records, no login). Narratives were published from March 2015 through 2026-08-14.

### Use it from an AI agent (MCP)

Connect any MCP client to `https://mcp.apify.com/?tools=j0401/cfpb-complaint-narratives` to load this dataset as a single tool beside the tools you already have - same records, same per-record pricing.

# Actor input Schema

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

rows = narrative-bearing complaints matching your filters, newest first. aggregate = one count row per group for the chosen groupBy dimension.

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

Earliest date received (YYYY-MM-DD). Required for a filtered run; one run covers at most two quarters (half a year). The archive carries narratives received 2015-03-19 through 2026-08-14.

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

Latest date received (YYYY-MM-DD), inclusive. Narratives were published only through 2026-08-14 (the register itself starts in 2011).

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

Exact product name, e.g. 'Credit reporting or other personal consumer reports', 'Debt collection', 'Mortgage'. Blank = any.

## `subProduct` (type: `string`):

Exact sub-product, e.g. 'Credit reporting', 'Checking account'. Blank = any.

## `issue` (type: `string`):

Exact issue, e.g. "Incorrect information on your report". Blank = any.

## `state` (type: `string`):

Two-letter state code, e.g. TX. Blank = any.

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

Exact company name as the Bureau normalizes it, e.g. 'EQUIFAX, INC.'. Blank = any.

## `tags` (type: `string`):

Special-population tag: 'Servicemember', 'Older American' or 'Older American, Servicemember'. Blank = any.

## `companyResponse` (type: `string`):

Exact response, e.g. 'Closed with explanation'. Blank = any.

## `timely` (type: `string`):

Whether the company responded in time. Blank = any.

## `submittedVia` (type: `string`):

Submission channel. The archive carries only "Web"; any other value fails as not present. Blank = any.

## `searchTerm` (type: `string`):

Case-insensitive substring match across the narrative text and the product / issue / company fields. Blank = any.

## `groupBy` (type: `string`):

Dimension to count by in mode=aggregate. Not used in rows mode.

## `maxResults` (type: `integer`):

Cap on delivered narrative records (default 50, up to 5000). Does not apply in aggregate mode. The scan behind it is not billed.

## Actor input object example

```json
{
  "mode": "rows",
  "dateFrom": "",
  "dateTo": "",
  "product": "",
  "subProduct": "",
  "issue": "",
  "state": "",
  "company": "",
  "tags": "",
  "companyResponse": "",
  "timely": "",
  "submittedVia": "",
  "searchTerm": "",
  "groupBy": "product",
  "maxResults": 50
}
```

# Actor output Schema

## `recordsUrl` (type: `string`):

Narrative complaint records or aggregate counts - as JSON

## `datasetUrl` (type: `string`):

No description

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

// Run the Actor and wait for it to finish
const run = await client.actor("j0401/cfpb-complaint-narratives").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("j0401/cfpb-complaint-narratives").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 j0401/cfpb-complaint-narratives --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,j0401/cfpb-complaint-narratives"
        }
    }
}
```

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/GJiSWciPr4rsfxw0h/builds/3GIp4AIdETXemhpkY/openapi.json
