# CFPB Consumer Complaints API - Search Bank & Lender Complaints (`onomatopoeia_dev/cfpb-consumer-complaints`) Actor

Search the official CFPB Consumer Complaint Database by company, product, issue, state, ZIP and date. Clean normalized rows, response outcome flags and an only-new mode for complaint monitoring.

- **URL**: https://apify.com/onomatopoeia_dev/cfpb-consumer-complaints.md
- **Developed by:** [onomatopoeia](https://apify.com/onomatopoeia_dev) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 complaints

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/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 Complaints API - Search Bank & Lender Complaints

**Search the official CFPB Consumer Complaint Database by company, product, issue, state, ZIP code and date. You get a clean table with the company, product, issue, company response, timeliness, relief outcome and a link to each complaint. Download it as JSON, CSV or Excel, or schedule it to watch one company.**

This **CFPB complaints scraper** reads only the **official public search API of the Consumer Financial Protection Bureau** (the API behind consumerfinance.gov's complaint search). It needs **no login, no API key and no proxies**. It **honors robots.txt**, spaces its requests, and returns the data exactly as the CFPB publishes it: already redacted, with no names, addresses, phone numbers or account numbers.

> Not affiliated with or endorsed by the CFPB or any other agency. The data is published by the CFPB under a CC0 license. A complaint is a consumer's allegation, not a finding that the company did something wrong.

### What can you do with it?

- **Complaint monitoring and alerts.** Schedule a run with **Only new complaints since the last run** turned on for one company or product, and send the results to Slack, e-mail or a webhook.
- **Fintech, bank and lender compliance.** Track complaints about your own company and about competitors, by product and issue.
- **Due diligence and risk research.** Compare companies by volume, how often they gave relief and how often their response was late.
- **Lawyers, advocates and journalists.** Find complaints by state, ZIP code, older Americans or servicemembers, and link straight to the CFPB page for each one.
- **Lead and market research.** See which products and issues are rising in a region.
- **Analysts who need a table, not a giant file.** Targeted search instead of downloading the whole bulk CSV, with a schedule on top.

### Why this Actor

| | |
|---|---|
| **Filters before you pay** | Company, product, sub-product, issue, sub-issue, state, ZIP, keyword, company response, timely flag, consumer tags and submission channel. The CFPB does the filtering, so only matching complaints are stored and billed. |
| **Names that just work** | Type `wells fargo`, `credit card` or `FHA`. The Actor looks up the CFPB's official company, product and issue names for you, so you do not need to know the exact spelling. A typo gets a clear error before anything is billed. |
| **Last 30 days by default** | Pick any date range, absolute (`2026-11-01`) or relative (`7 days`, `3 months`). |
| **Only-new mode for monitoring** | Remembers what it delivered (per saved search) and re-checks the last 7 days, because complaints reach the database a few days after they are received. You are never billed twice for the same complaint. |
| **Outcome columns** | `reliefGiven`, `timely`, `inProgress` and `daysToCompany` are ready to filter and chart. |
| **No 10,000-row ceiling** | Pages through any result size with the API's cursor, newest or oldest first. |
| **Official source only** | One government JSON API. No HTML scraping, no browser, no proxies. |
| **Spend control** | Respects your **maximum cost per run**, stops cleanly, and resumes after Apify platform migrations without duplicate rows. |

### Input

| Field | Type | Description |
|---|---|---|
| `dateFrom` | string | Received on or after: `2026-11-01` or relative, such as `7 days`, `2 weeks`, `3 months`. Empty = last 30 days. |
| `dateTo` | string | Received on or before (same formats). Empty = today. |
| `companies` | array | Company names, one per item. Matched case-insensitively against the CFPB's official names, and a short name can match several legal entities (`chase` finds `JPMORGAN CHASE & CO.`). Up to 40 companies. |
| `products` | array | Product categories such as `mortgage`, `credit card`, `debt collection`, `student loan`, `vehicle loan`, `credit reporting`. A partial name also covers renamed categories. |
| `subProducts` | array | Narrower types such as `FHA mortgage`, `Store credit card`, `Checking account`. |
| `issues` / `subIssues` | array | Issue and sub-issue names, for example `Incorrect information on your report` and `Information belongs to someone else`. |
| `searchTerm` | string | Keyword search. Supports `AND`, `OR`, `NOT` and quoted phrases. |
| `searchIn` | string | `all` (company, product and issue text, default) or `company`. |
| `states` | array | Consumer's state: `CA`, `NY` or a state name. |
| `zipCodes` | array | Five-digit ZIP codes, or masked ones such as `902XX`. |
| `companyResponses` | array | `In progress`, `Closed`, `Closed with explanation`, `Closed with monetary relief`, `Closed with non-monetary relief`, `Closed with relief`, `Closed without relief`, `Untimely response`. |
| `timely` | string | `any` (default), `yes` or `no`. Use `no` to find late responses. |
| `tags` | array | `Older American`, `Servicemember`. |
| `submittedVia` | array | `Web`, `Referral`, `Phone`, `Postal mail`, `Fax`, `Email`. |
| `sortOrder` | string | `newest` (default) or `oldest`. |
| `onlyNew` | boolean | Only complaints not delivered by an earlier run with the same `stateKey`. Always reads oldest first. |
| `stateKey` | string | Name of the saved search for `onlyNew` (default `default`). Use one per company or schedule. |
| `maxItems` | integer | Total complaints to store (default 100). Every complaint row is one billed item. |
| `maxScanned` | integer | Safety limit on complaints read, including ones skipped as already delivered (default 100,000). |
| `includeRawRecord` | boolean | Add the CFPB's original record as `raw`. |

#### Example inputs

Late responses by Wells Fargo on mortgages in the last 90 days:

```json
{
  "companies": ["wells fargo"],
  "products": ["mortgage"],
  "timely": "no",
  "dateFrom": "90 days",
  "maxItems": 500
}
```

Daily alert for new Equifax complaints about information that belongs to someone else:

```json
{
  "companies": ["equifax"],
  "issues": ["Incorrect information on your report"],
  "subIssues": ["Information belongs to someone else"],
  "onlyNew": true,
  "stateKey": "equifax-wrong-person",
  "maxItems": 1000
}
```

Complaints from servicemembers about store credit cards, one ZIP area, last year:

```json
{
  "products": ["credit card"],
  "subProducts": ["store credit card"],
  "tags": ["Servicemember"],
  "zipCodes": ["28310"],
  "dateFrom": "1 year",
  "maxItems": 200
}
```

### Output

Every row has the same columns:

```json
{
  "complaintId": "33542397",
  "dateReceived": "2026-11-23",
  "dateReceivedAt": "2026-11-23T00:40:00.000Z",
  "dateSentToCompany": "2026-11-23",
  "company": "WELLS FARGO & COMPANY",
  "product": "Mortgage",
  "subProduct": "Conventional home mortgage",
  "issue": "Trouble during payment process",
  "subIssue": "Trying to communicate with the company to fix an issue while managing or servicing your loan",
  "state": "NC",
  "zipCode": "28203",
  "tags": [],
  "submittedVia": "Web",
  "companyResponse": "Closed with explanation",
  "companyPublicResponse": "Company has responded to the consumer and the CFPB and chooses not to provide a public response",
  "timely": true,
  "inProgress": false,
  "reliefGiven": false,
  "daysToCompany": 0,
  "url": "https://www.consumerfinance.gov/data-research/consumer-complaints/search/detail/33542397",
  "apiUrl": "https://www.consumerfinance.gov/data-research/consumer-complaints/search/api/v1/?size=5&...",
  "scrapedAt": "2026-11-29T01:34:29.809Z"
}
```

- `reliefGiven` is `true` for monetary or non-monetary relief, `false` for "closed with explanation" or "without relief", and `null` while the complaint is in progress.
- `timely` is the CFPB's flag for whether the company answered within its deadline. `inProgress` is true until the company closes the complaint.
- `zipCode` is as published. The CFPB masks some ZIP codes (for example `115XX`).
- `subProduct`, `subIssue`, `tags` and `companyPublicResponse` are empty when the consumer or company did not provide them.
- `raw` (optional) is the CFPB's original record.

The dataset has three views: **Overview**, **Company response & outcome** and **Product, issue & consumer detail**. The key-value store has `RUN_SUMMARY`: complaints stored, how many match in the CFPB database, the stop reason, filters as resolved to official names, and the date the CFPB data was last updated.

### Pricing

**Pay per event: $0.002 per complaint** ($2 per 1,000 complaints), plus Apify's small automatic per-run start fee.

- You pay only for complaint rows stored in the dataset. Complaints already delivered in only-new mode, name look-up errors and the run summary are free.
- Platform usage is included in the event price. No proxy costs.
- Set **Maximum cost per run** when starting the Actor; it stops cleanly when the budget is used.
- Large filters match a lot: credit reporting alone gets more than 10,000 complaints a day. Set `maxItems` on purpose. A watch on one company is usually a few dozen complaints per day (cents).

### Politeness, robots.txt and legal notes

- The Actor reads `robots.txt` of consumerfinance.gov before the first request and stops if the API path is disallowed. At the last check (2026-11-28) the file disallowed only unrelated paths, and the complaint search API path is allowed.
- Requests are spaced at least 0.5 s apart, identify as `CfpbConsumerComplaintsApifyActor/0.1`, and back off on HTTP 429 and 5xx errors.
- The data is published by the CFPB under a CC0 license, already redacted by the CFPB. The Actor adds nothing personal.
- **Complaints are allegations.** They are not verified by the CFPB, and a company's name next to a complaint does not mean wrongdoing. Do not present them as findings.
- You are responsible for how you use the data under applicable law.

### Limitations

- **No complaint narratives.** The CFPB's public search API does not include the free-text complaint narratives (the "what happened" text), so they cannot be returned or searched. The keyword search covers company, product, issue and sub-issue text. The CFPB's bulk CSV download includes narratives where the consumer agreed to publish them.
- **The CFPB publishes with a delay.** A complaint typically shows up a day or two after it was received, and the database is refreshed daily. That is why only-new mode looks back 7 days.
- A company name search can match several legal entities. The run summary lists the official names that were used.
- Reading starts at the date range you set. For busy filters, narrow the range or set `maxItems`; the Actor does not stop on its own before `maxItems` or `maxScanned`.
- The data covers complaints the CFPB has published. It is US-only and mostly consumer financial products.

### Tips

- Start with a small `maxItems` (for example 20) to preview the columns, then scale up.
- For alerts, schedule a daily run with `onlyNew: true`, one `stateKey` per search and a `maxItems` that is higher than a normal day.
- Combine `companyResponses: ["Untimely response"]` or `timely: "no"` with a company to find slow responders.
- Use `includeRawRecord` only if you need the CFPB's original field names.

### FAQ

**Do I need an API key or login?** No. This is the public search API the CFPB provides.

**Can I get the complaint text?** No. The CFPB does not publish narratives through this API. See Limitations.

**Why did my company name match several companies?** The CFPB lists complaints by legal entity (for example `TRANSUNION INTERMEDIATE HOLDINGS, INC.`). The Actor includes every entity whose name contains your text, up to 40. Use a longer or exact name to narrow it.

**Is a complaint ever billed twice?** Not within a run, and not across runs when you use `onlyNew` with the same `stateKey`.

**Something looks wrong or a field is missing.** Open an issue from the Actor's *Issues* tab with your input and the run link.

# Actor input Schema

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

Absolute date (2026-11-01) or relative (`7 days`, `2 weeks`, `3 months`). Empty means the last 30 days. The date is when the CFPB received the complaint.

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

Absolute or relative date. Empty means today.

## `companies` (type: `array`):

Company names, one per item (for example `wells fargo`, `equifax`, `Block, Inc.`). Matched case-insensitively against the CFPB's official company names; a short name can match several legal entities. Up to 40 companies.

## `products` (type: `array`):

Product categories, for example `mortgage`, `credit card`, `debt collection`, `checking or savings account`, `student loan`, `vehicle loan`, `credit reporting`. A partial name also matches renamed categories, so `credit card` includes `Credit card or prepaid card`.

## `subProducts` (type: `array`):

Narrower product types, for example `FHA mortgage`, `Store credit card`, `Checking account`, `Payday loan`. Combined with Products when both are set.

## `issues` (type: `array`):

Issue categories, for example `Incorrect information on your report`, `Problem with a purchase shown on your statement`, `Struggling to pay mortgage`.

## `subIssues` (type: `array`):

Narrower issue types, for example `Information belongs to someone else`, `Overdrafts and overdraft fees`.

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

Words to search for. By default they are matched against company, product, issue and sub-issue text (for example `overdraft` or `foreclosure`). Supports AND, OR, NOT and quoted phrases. The CFPB's public API does not publish the free-text complaint narratives, so narratives cannot be searched.

## `searchIn` (type: `string`):

Where the keyword is searched.

## `states` (type: `array`):

The consumer's state. Two-letter codes (`CA`) or names (`California`).

## `zipCodes` (type: `array`):

Five-digit ZIP codes, for example `90210`. The CFPB masks some ZIP codes (for example `902XX`), which can be searched the same way.

## `companyResponses` (type: `array`):

How the company answered. Leave empty for all.

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

Whether the company answered within the CFPB's deadline. Use `No` to find late responses.

## `tags` (type: `array`):

Complaints from older Americans or servicemembers (and their families).

## `submittedVia` (type: `array`):

How the consumer sent the complaint. Leave empty for all.

## `sortOrder` (type: `string`):

Newest first (default) or oldest first. Only-new mode always reads oldest first.

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

Delivers only complaints you have not received in an earlier run with the same memory name. Re-checks the last 7 days because complaints reach the database a few days after they are received. Reads oldest first, so a run that stops at the maximum continues where it left off next time. You are never billed twice for the same complaint.

## `stateKey` (type: `string`):

Name of this saved search. Use a different name for each company or schedule.

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

Total complaints to store. Every complaint is one billed item. Busy filters (credit reporting, last 30 days) match hundreds of thousands, so set this on purpose.

## `maxScanned` (type: `integer`):

Stops reading after this many complaints, including ones skipped as already delivered. Rarely needs changing.

## `includeRawRecord` (type: `boolean`):

Adds the CFPB's original record as `raw`.

## Actor input object example

```json
{
  "dateFrom": "30 days",
  "searchIn": "all",
  "timely": "any",
  "sortOrder": "newest",
  "onlyNew": false,
  "stateKey": "default",
  "maxItems": 100,
  "maxScanned": 100000,
  "includeRawRecord": false
}
```

# Actor output Schema

## `items` (type: `string`):

No description

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

No description

## `outcome` (type: `string`):

No description

## `detail` (type: `string`):

No description

## `summary` (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 = {
    "dateFrom": "30 days",
    "maxItems": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("onomatopoeia_dev/cfpb-consumer-complaints").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 = {
    "dateFrom": "30 days",
    "maxItems": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("onomatopoeia_dev/cfpb-consumer-complaints").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 '{
  "dateFrom": "30 days",
  "maxItems": 100
}' |
apify call onomatopoeia_dev/cfpb-consumer-complaints --silent --output-dataset

```

## MCP server setup

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

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/mgLlKrBKzKyiZwREv/builds/csgIHb3Qs5xxY9Tvp/openapi.json
