# CFPB Consumer Complaint Monitor (`mooseandraven/cfpb-consumer-complaint-monitor`) Actor

Search and monitor company-level consumer complaints via the official CFPB Consumer Complaint Database API. No API key required.

- **URL**: https://apify.com/mooseandraven/cfpb-consumer-complaint-monitor.md
- **Developed by:** [Moose & Raven](https://apify.com/mooseandraven) (community)
- **Categories:** Automation
- **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 complaint records

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 Consumer Complaint Monitor — Company & Product Complaint Search (JSON)

**Who this is for:** financial-services compliance and risk teams tracking complaint volume
against their own company or a competitor, journalists and consumer-advocacy researchers, fintech
and lending-partner due-diligence teams screening a potential partner's complaint history, and
anyone who needs structured CFPB Consumer Complaint Database data without manually using the
CFPB's own search UI.

**$0.004 per complaint record.** The default input ships ready to run — no edits required — and
pulls every complaint CFPB received against Navy Federal Credit Union on 2025-06-01: 10 real
records, $0.04 total. Press Start and see the real sample JSON in section 4 below; swap in your
own company and date range for a live, ongoing watch.

Search and monitor consumer complaints by exact company name — backed entirely by the official
CFPB Consumer Complaint Database search API, no API key or account required, no scraping.

**CFPB also publishes the entire Consumer Complaint Database as a free, complete, daily-refreshed
352 MB bulk CSV download** (linked from CFPB's own data page) — we verified this live. We have no
completeness, uniqueness, or privileged-access claim over that file. What this actor sells instead
is convenience and incrementality: a filtered, labeled, monitor-mode delta feed so you don't
download and diff 352 MB yourself. If you want the full raw dataset with narratives, use CFPB's
own bulk file directly — this endpoint's live API does not return narrative text at all (see
section 1).

### 1. What makes this different

**Honest about a real, confirmed API bug that this actor's design works around rather than
hides.** The CFPB's public search API accepts pagination parameters (`frm`) but they are dead:
live-tested and confirmed by reading the API's own open-source code
(`cfpb/ccdb5-api`'s `es_builders.py` never reads `frm` when building the OpenSearch query, even
though `views.py` validates it as a parameter) — any `frm` value that passes input validation
still returns the identical first page. `search_after` (the one parameter actually wired into the
query) errors outright (HTTP 424) on every encoding tried. **This actor never attempts multi-page
pagination against this API.** Every query is a single request, capped at the API's own real hard
ceiling (`size=10000` — confirmed live; `10001` fails), with truncation honestly disclosed when a
query's true match count exceeds what was delivered. No incumbent listing discloses this.

**Narrow your own filters, don't rely on paging.** Because pagination doesn't work, the only way
to see a query's *complete* match set is to narrow it (company + date range, or company +
product) below the cap — this is explained up front in the input schema, not discovered the hard
way after publish.

**A real, documented rate limit — respected with margin.** Unlike most of this fleet's other
government sources (which have no documented limit), CFPB's own `throttling.py` source documents
`SearchAnonRateThrottle` at 20 requests/min for anonymous search. This actor self-throttles to
\~17/min client-side, plus retry-with-backoff on an explicit 429.

**Zero account friction** — the CFPB's public complaint-search API works with no key, no account.

### 2. How it works

1. Supply `queries` as an array of objects — each one a separate, independently-tracked request.
   Each needs `type: "complaints"` (the only record type this API offers) and an optional
   `filters` object using this actor's own named filter fields (company, product, issue, state,
   zip code, submitted-via, tags, timely, company response, date-received range,
   company-received-date range, free-text search term).
2. **Filters are a fixed, named set, not a raw parameter passthrough.** An unrecognized filter key
   is simply ignored — matching this API's own live-confirmed behavior on an unrecognized
   parameter (HTTP 200, unfiltered), so this actor's behavior never surprises you relative to the
   real API.
3. Give each query a `label` — monitor-mode state and status records are keyed by it. An unlabeled
   query is auto-named by its array position (`"query-0"`), which breaks if you later reorder the
   array, so labeling is strongly recommended for anything scheduled.
4. Optional **incremental monitor mode: new records only, not status changes.** Remembers which
   `complaint_id`s have already been delivered per query (in a persistent named key-value store,
   with no artificial cap on how many — see MAINTENANCE.md) and only reports genuinely NEW
   complaints on later runs. **It does not detect a later change to an already-delivered
   complaint** — `companyResponse` moving from "In progress" to "Closed with monetary relief",
   `companyPublicResponse`, or `isTimely` — because the dedup key is "have we seen this ID," not a
   content comparison. If you need to catch resolution-outcome changes on complaints you've
   already seen, re-run without `monitorMode` on a schedule and diff `companyResponse` yourself.
5. **A failed fetch is never silently treated as "no complaints."** Each query's failure pushes an
   explicit `fetch-failed` status record.
6. `maxRecordsPerQuery` (default 1000) is this actor's OWN cap, additionally bounded by the API's
   own 10,000-result hard ceiling that this actor cannot page past (see section 1). A query that
   matches more than the effective cap emits an explicit `search-truncated` record.
7. `monitor-run` is charged only on a monitor-mode run that delivers at least one new record and
   wasn't silently/ambiguously incomplete — a disclosed `search-truncated` result still bills
   normally; a genuine fetch failure OR a run that delivers nothing both skip the charge. It is
   never charged unconditionally "once per run."
8. A `company` filter matching zero complaints triggers a live lookup against CFPB's own
   company-name autocomplete; if it returns a different canonical name, you get a `did-you-mean`
   record instead of a silent empty result. `company` is still an exact match, not a search — see
   section 8.

### 3. Input

| Field | Type | Notes |
|---|---|---|
| `queries` | array (required) | `{ label, type: "complaints", filters, sort }` |
| `monitorMode` | boolean | Persistent incremental "new since last run" tracking, per query label |
| `maxRecordsPerQuery` | integer | This actor's own cap, default 1000 — also bounded by the API's real 10,000 hard ceiling (0 = use the full 10,000) |

`filters` keys: `company` (exact name as CFPB records it, e.g. `"EQUIFAX, INC."` — not a
fuzzy/substring match), `product`, `issue`, `state` (2-letter USPS code), `zipCode`,
`submittedVia`, `tags`, `timely` (`"Yes"`/`"No"`), `companyResponse`, `companyPublicResponse`,
`dateReceivedMin`/`dateReceivedMax` (YYYY-MM-DD), `companyReceivedMin`/`companyReceivedMax`
(YYYY-MM-DD), `searchTerm` (free-text, matched against all indexed complaint fields). All
list-type fields accept either a single string or an array of strings (OR'd together by the API).

See the Input tab for the full form with inline descriptions.

### 4. Output fields

Each dataset item has a `recordType` of `"complaint"`, `"search-truncated"`, or `"fetch-failed"`.

**`complaint`**

| Field | Type | Notes |
|---|---|---|
| `recordId` | string | null | the real, globally-unique `complaint_id` |
| `complaintId`, `product`, `subProduct`, `issue`, `subIssue` | | |
| `company`, `state`, `zipCode` | string | null | `zipCode` may be CFPB's own partially-redacted form (e.g. `"331XX"`) — CFPB's own redaction, not this actor's |
| `submittedVia`, `dateReceived`, `dateSentToCompany` | | |
| `companyResponse`, `companyPublicResponse` | string | null | |
| `isTimely` | boolean | null | `null` only when CFPB's own `timely` field is genuinely absent |
| `tags` | string | null | CFPB's own complainant-population tag (e.g. `"Older American"`, `"Servicemember"`) — not personal data about a specific individual |
| `fetchedAt`, `sourceApi` | | `sourceApi` always `consumerfinance.gov/data-research/consumer-complaints/search/api/v1` |

**Status records** (`search-truncated`, `fetch-failed`) each carry `queryLabel` and a `message`
(plus `delivered`/`maxRecords` for `search-truncated`) — read the `message`, it explains exactly
what happened and what it means for that query's completeness this run.

#### Real sample output

Live-fetched from the **default input** — `{"queries":[{"label":"navy-federal-example",
"type":"complaints","filters":{"company":"NAVY FEDERAL CREDIT UNION","dateReceivedMin":
"2025-06-01","dateReceivedMax":"2025-06-01"}}]}` — press Start with no edits and this is what
comes back: 10 real complaint records, $0.04 total, run on 2026-11-19:

```json
{
  "recordType": "complaint",
  "recordId": "13830156",
  "complaintId": "13830156",
  "product": "Debt collection",
  "subProduct": "Auto debt",
  "issue": "Written notification about debt",
  "subIssue": "Didn't receive enough information to verify debt",
  "company": "NAVY FEDERAL CREDIT UNION",
  "state": "TX",
  "zipCode": "77070",
  "submittedVia": "Web",
  "dateReceived": "2025-06-01T20:07:31.000Z",
  "dateSentToCompany": "2025-06-01T20:16:43.000Z",
  "companyResponse": "Closed with non-monetary relief",
  "companyPublicResponse": "Company believes it acted appropriately as authorized by contract or law",
  "isTimely": true,
  "tags": "Servicemember",
  "fetchedAt": "2026-11-19T18:00:20.957Z",
  "sourceApi": "consumerfinance.gov/data-research/consumer-complaints/search/api/v1",
  "queryLabel": "navy-federal-example"
}
```

No truncation on this query (10 records, well under the cap). For a query that does hit the cap,
here's the real shape that produces — live-fetched for
`{"queries":[{"label":"equifax-recent","type":"complaints","filters":{"company":"EQUIFAX, INC.","dateReceivedMin":"2026-10-01"}}],"maxRecordsPerQuery":5}`,
true match count 263,177:

```json
{
  "recordType": "search-truncated",
  "queryLabel": "equifax-recent",
  "delivered": 5,
  "maxRecords": 5,
  "message": "Query \"equifax-recent\": at least 5 records matched, but this run stopped at the cap (5). This is NOT the complete match set for this query — and this API has no working pagination to fetch the rest (see MAINTENANCE.md); narrow the filters (company/product/date range) to stay under the cap instead."
}
```

### 5. Use cases

- **Compliance / risk monitoring** — track new complaint volume and type against your own company,
  or screen a lending partner/vendor's complaint history as part of due diligence.
- **Journalist / consumer-advocacy research** — pull a company or product's complaint history for
  a story, or monitor for new complaints via `monitorMode`.
- **Fintech partnership screening** — check a potential partner's real complaint record (product
  mix, company-response pattern, timeliness) before signing.

### 6. Setting up new-complaint alerts (Apify Schedules + your own notification channel)

1. **Create an Apify Schedule** pointing at this actor, with `monitorMode: true` and a query
   narrowly scoped to one company (e.g.
   `{"label":"watch-my-company","type":"complaints","filters":{"company":"YOUR COMPANY NAME"}}`).
   CFPB publishes new complaints on a rolling basis (typically within a few days of receipt) — a
   daily schedule is reasonable.
2. **Attach a Webhook** to the schedule/actor for the `ACTOR.RUN.SUCCEEDED` event. Apify's webhook
   payload includes the run's dataset ID, so your webhook target can fetch the new items.
3. **Route the webhook** to Slack/Teams/email the same way as this fleet's other monitor-mode
   actors — since `monitorMode` only delivers genuinely new complaints, every triggered
   notification represents real new information, not a repeat.
4. Because the dataset always distinguishes `complaint` records from `fetch-failed`/
   `search-truncated` status records, your alert logic can (and should) treat the latter as
   "monitoring degraded this run" rather than silently trusting an empty result.

### 7. Pricing

Proposed pay-per-event pricing, consistent with this fleet's existing per-record rates for
comparably-sized government-data records — **live on the Apify Pricing tab; pending Devin's
ratification before publish**:

- `complaints-record` — **$0.004** per complaint record delivered
- `monitor-run` — **$0.05**, charged only on a monitor-mode run that delivers at least
  one new record, in addition to per-record charges — never on an empty or failed run

`monitor-run` is never charged unconditionally "once per run": it is skipped both on a genuine
fetch failure and on a run that delivers zero new records (e.g. nothing new since the last check).
A disclosed `search-truncated` result still bills normally — the user was told exactly what was
capped, so that charge is honest.

### 8. FAQ

**How fresh is the data?** This actor queries the CFPB's live API at run time — complaints are
typically published by CFPB within a few days of receipt, not instantly.

**Do I need a CFPB API key?** No — keyless, no account required, confirmed live.

**I typed a company name and got zero results — is this broken?** Probably not — `company` is an
**exact match** against CFPB's own canonical recorded name (e.g. `"JPMORGAN CHASE & CO."`, not
`"Chase"`; `"EQUIFAX, INC."`, not `"Equifax"`), not a search. A zero-match company query
automatically checks CFPB's own company-name autocomplete and, if it finds a different canonical
name, delivers a `did-you-mean` record instead of leaving you to guess. Also note: subsidiary and
legacy entity names are separate strings in CFPB's data, so a single company query undercounts a
corporate group.

**Does this detect when a complaint's status changes, not just new complaints?** No.
`monitorMode` tracks which complaint IDs have already been delivered, not whether a previously-
delivered complaint's `companyResponse`/`companyPublicResponse`/`isTimely` later changed. If you
need resolution-outcome tracking on complaints you've already seen, re-run without `monitorMode`
and diff those fields yourself.

**Why can't I get more than 10,000 results for a broad query?** This is the real OpenSearch
backend's own hard result-window ceiling (confirmed live: `size=10000` succeeds, `10001` fails),
and this API's pagination parameters don't actually work (see section 1) — so there is no way,
through this official API, to retrieve a broad query's full match set beyond 10,000 records.
Narrow your filters (company + date range, or company + product) to stay under the cap and see a
genuinely complete result.

**Does this expose consumer personal information?** No. The CFPB's public complaint-search API
itself never returns consumer names, addresses, or account numbers — only company-level and
complaint-metadata fields (product, issue, company response, state, partially-redacted ZIP,
complainant-population tags like "Older American"). This actor passes through exactly what the
public API returns; it does not add or remove redaction.

**Can I rely on complaint-id-based deduplication across runs?** Yes — `complaint_id` is a real,
globally-unique CFPB-assigned ID (unlike some other fleet actors' per-entity-scoped IDs that need
a composite key).

### 9. What it does NOT do / Limitations

- **No working pagination past the API's own single-request ceiling.** See section 1 — a genuine,
  confirmed bug in CFPB's own public API, not a limitation this actor could design around. Narrow
  filters are the only way to see a complete match set for a broad query.
- **Not real-time.** Reflects CFPB's own publication cadence, not instant complaint-filing data.
- **Exact-match filters, not fuzzy search** (except `searchTerm`, which is CFPB's own full-text
  search). `company` must match CFPB's own recorded spelling exactly — check the CFPB site's own
  company list if a known company returns zero results.
- **No consumer-level data of any kind** — by the API's own design, not a redaction this actor
  performs.

### Local development

```
npm install
npm test                # recorded-fixture unit tests, no network needed
npm run test:live       # hits the real consumerfinance.gov API, no key needed
node src/main.js         # local end-to-end run — works immediately, no key/account needed
```

### Support

Built and maintained by Moose & Raven. Questions or issues: support@mooseandraven.com.

# Actor input Schema

## `queries` (type: `array`):

One or more query objects, each run as a single request against the official CFPB Consumer Complaint Database API (no key, no account). Each query's "type" must be "complaints" (the only record type this API offers). "filters" is optional but strongly recommended: this API has NO working pagination (see README/MAINTENANCE.md), so every query is capped at a hard 10,000-result ceiling regardless of maxRecordsPerQuery — narrow filters (company + a date range, or product + state) are the only way to see a query's full, true match set rather than a truncated top-10,000 slice.

## `monitorMode` (type: `boolean`):

When on, the actor remembers which complaint IDs it has already delivered per query (by Apify named key-value store) and only delivers genuinely new complaints on later scheduled runs, instead of re-delivering the whole match set every time. Most useful on a query narrowly scoped to one company (optionally + product), run on a schedule, to get notified only of NEW complaints. NOTE: this only detects new complaint IDs, not later changes to an already-delivered complaint's status fields (e.g. companyResponse). Charges one monitor-run PPE event in addition to per-record events -- but only on a run that delivers at least one new record; an empty or failed run is never charged monitor-run.

## `maxRecordsPerQuery` (type: `integer`):

Safety cap applied independently to each query, additionally bounded by this API's own hard 10,000-result-per-request ceiling (this actor cannot page past it — see README/MAINTENANCE.md). A query that matches more than the effective cap emits a loud search-truncated status record rather than silently stopping short. Set to 0 to use the full 10,000-result ceiling.

## Actor input object example

```json
{
  "queries": [
    {
      "label": "navy-federal-example",
      "type": "complaints",
      "filters": {
        "company": "NAVY FEDERAL CREDIT UNION",
        "dateReceivedMin": "2025-06-01",
        "dateReceivedMax": "2025-06-01"
      }
    }
  ],
  "monitorMode": false,
  "maxRecordsPerQuery": 1000
}
```

# Actor output Schema

## `results` (type: `string`):

Every dataset item from this run.

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

The same records limited to the most useful review columns.

# 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("mooseandraven/cfpb-consumer-complaint-monitor").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("mooseandraven/cfpb-consumer-complaint-monitor").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 mooseandraven/cfpb-consumer-complaint-monitor --silent --output-dataset

```

## MCP server setup

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

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/E9gekAolpseYqdg3y/builds/ubZd8f4hKMhWX3mEQ/openapi.json
