# CFPB Enforcement Actions Monitor (`defenestrator/cfpb-enforcement-actions-monitor`) Actor

Monitor official CFPB enforcement action listings and detail pages into structured, source-linked rows for compliance, legal-ops, risk, and research workflows. Unofficial; not affiliated with the CFPB.

- **URL**: https://apify.com/defenestrator/cfpb-enforcement-actions-monitor.md
- **Developed by:** [Defenestrator](https://apify.com/defenestrator) (community)
- **Categories:** Business, News
- **Stats:** 2 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.00 / 1,000 cfpb enforcement action rows

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## CFPB Enforcement Actions Monitor

Monitor the official CFPB enforcement actions listing and export structured, source-linked rows for compliance monitoring, legal operations, risk tracking, research, and public-record workflows.

Use this Actor when you need a repeatable Apify dataset/API output instead of manually checking the CFPB enforcement actions page. It can scan recent listing pages, filter by date or search term, and optionally enrich rows from action detail pages.

**Unofficial / not affiliated:** this Actor is independently developed and is not affiliated with, endorsed by, sponsored by, or maintained by the Consumer Financial Protection Bureau (CFPB) or any government agency.

### Common use cases

- Monitor newly filed CFPB enforcement actions.
- Track actions mentioning specific products, entities, or topics.
- Maintain a structured log for compliance, legal operations, risk, or research workflows.
- Export official source-linked action rows to JSON, CSV, Excel, or an API integration.
- Feed agent workflows or internal dashboards with bounded, source-linked CFPB records.

### What it does

- Fetches the official CFPB enforcement actions listing page with optional pagination.
- Parses listing cards into structured fields such as title, filing date, summary, source URL, and page number.
- Optionally fetches matching detail pages to extract status, categories, products, and linked documents.
- Filters results by date range (`filedFrom` / `filedTo`), free-text search term, item limit, and page limit.
- Writes a structured dataset to Apify storage.

### Input parameters

| Parameter | Type | Default | Description |
|---|---|---:|---|
| `maxItems` | integer | 10 | Maximum result rows to collect (1–500). |
| `filedFrom` | string | — | Inclusive lower date bound, `YYYY-MM-DD`. |
| `filedTo` | string | — | Inclusive upper date bound, `YYYY-MM-DD`. |
| `searchTerm` | string | — | Case-insensitive filter on title and summary text. |
| `pageLimit` | integer | 2 | Maximum listing pages to scan (1–16). |
| `includeDetailPages` | boolean | true | Fetch and parse each matching action's detail page. |
| `includeRawFields` | boolean | false | Include selected raw source metadata for debugging/reconciliation. |
| `timeoutSecs` | integer | 30 | Request timeout per page (10–120). |

### Example input

```json
{
  "maxItems": 10,
  "pageLimit": 2,
  "filedFrom": "2024-01-01",
  "filedTo": "2025-12-31",
  "searchTerm": "bank",
  "includeDetailPages": true,
  "includeRawFields": false,
  "timeoutSecs": 30
}
````

### Output fields

| Field | Source / Derivation | Notes |
|---|---|---|
| `recordKey` | `actionUrl` or title/date fallback | Stable identifier. |
| `actionTitle` | Listing/detail page title | Required when parsed. |
| `filedDate` | `<time datetime="...">` normalized to `YYYY-MM-DD` | Required when available. |
| `filedDateLabel` | Listing date label | Optional. |
| `summary` | Listing card description text | Source text only. |
| `actionUrl` | CFPB detail page URL | Absolute URL. |
| `sourceName` | Constant | CFPB enforcement actions source label. |
| `sourceUrl` | Listing/page URL | Absolute URL. |
| `collectedAt` | Current ISO timestamp | Collection timestamp. |
| `pageNumber` | Listing page scanned | Useful for QA/debugging. |
| `status` | Parsed from detail page | Optional; absent → null. |
| `categories` | Parsed from detail page | Optional; absent → empty. |
| `products` | Parsed from detail page | Optional; absent → empty. |
| `documents` | Detail-page linked docs | Optional; each has `title` and `url`. |
| `raw` | Selected source fragments | Only when `includeRawFields: true`. |

### Pricing

This Actor uses Apify Pay Per Event pricing with platform usage included:

| Event | Price |
|---|---:|
| Actor start (`apify-actor-start`) | `$0.00005` per run start |
| CFPB enforcement action row (`apify-default-dataset-item`) | `$0.004` per saved dataset row |

Users should still set `maxItems` and `pageLimit` to match their budget and monitoring need.

### Official source

- CFPB enforcement actions: https://www.consumerfinance.gov/enforcement/actions/

### Limitations and responsible use

- The CFPB may update its listing or detail-page structure at any time, which could break parsing.
- Detail-page enrichment is optional and best-effort; absent fields are returned as `null` or empty arrays.
- This is an HTTP-only Actor with no browser automation, proxy, login, CAPTCHA handling, or anti-scraping evasion.
- The Actor respects `pageLimit` and `maxItems` and does not exceed them.

This Actor does not provide legal, financial, investment, compliance, credit, employment, insurance, eligibility, enforcement, or consumer-impact advice. Do not use output as the sole basis for sensitive decisions. Use the data lawfully, verify important records against the official CFPB source, and do not use output for unsolicited mass messaging, harassment, or unlawful activity.

# Actor input Schema

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

Maximum number of enforcement action rows to save.

## `filedFrom` (type: `string`):

Optional inclusive filing date lower bound in YYYY-MM-DD format.

## `filedTo` (type: `string`):

Optional inclusive filing date upper bound in YYYY-MM-DD format.

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

Optional case-insensitive filter applied to the action title and summary text.

## `pageLimit` (type: `integer`):

Maximum number of listing pages to paginate through.

## `includeDetailPages` (type: `boolean`):

Fetch each action's detail page to extract status, categories, products, and documents. This adds additional HTTP requests per row.

## `includeRawFields` (type: `boolean`):

Include selected raw source field names for debugging/source reconciliation.

## `timeoutSecs` (type: `integer`):

HTTP timeout per request to the CFPB website.

## Actor input object example

```json
{
  "maxItems": 10,
  "pageLimit": 2,
  "includeDetailPages": true,
  "includeRawFields": false,
  "timeoutSecs": 30
}
```

# Actor output Schema

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

// Run the Actor and wait for it to finish
const run = await client.actor("defenestrator/cfpb-enforcement-actions-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("defenestrator/cfpb-enforcement-actions-monitor").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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 defenestrator/cfpb-enforcement-actions-monitor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=defenestrator/cfpb-enforcement-actions-monitor",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "CFPB Enforcement Actions Monitor",
        "description": "Monitor official CFPB enforcement action listings and detail pages into structured, source-linked rows for compliance, legal-ops, risk, and research workflows. Unofficial; not affiliated with the CFPB.",
        "version": "0.0",
        "x-build-id": "85gi35rknY8FxrStv"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/defenestrator~cfpb-enforcement-actions-monitor/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-defenestrator-cfpb-enforcement-actions-monitor",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/defenestrator~cfpb-enforcement-actions-monitor/runs": {
            "post": {
                "operationId": "runs-sync-defenestrator-cfpb-enforcement-actions-monitor",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/defenestrator~cfpb-enforcement-actions-monitor/run-sync": {
            "post": {
                "operationId": "run-sync-defenestrator-cfpb-enforcement-actions-monitor",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "maxItems": {
                        "title": "Maximum rows",
                        "minimum": 1,
                        "maximum": 500,
                        "type": "integer",
                        "description": "Maximum number of enforcement action rows to save.",
                        "default": 10
                    },
                    "filedFrom": {
                        "title": "Filed from",
                        "type": "string",
                        "description": "Optional inclusive filing date lower bound in YYYY-MM-DD format."
                    },
                    "filedTo": {
                        "title": "Filed to",
                        "type": "string",
                        "description": "Optional inclusive filing date upper bound in YYYY-MM-DD format."
                    },
                    "searchTerm": {
                        "title": "Search term",
                        "type": "string",
                        "description": "Optional case-insensitive filter applied to the action title and summary text."
                    },
                    "pageLimit": {
                        "title": "Listing pages to scan",
                        "minimum": 1,
                        "maximum": 16,
                        "type": "integer",
                        "description": "Maximum number of listing pages to paginate through.",
                        "default": 2
                    },
                    "includeDetailPages": {
                        "title": "Enrich with detail pages",
                        "type": "boolean",
                        "description": "Fetch each action's detail page to extract status, categories, products, and documents. This adds additional HTTP requests per row.",
                        "default": true
                    },
                    "includeRawFields": {
                        "title": "Include raw source fields",
                        "type": "boolean",
                        "description": "Include selected raw source field names for debugging/source reconciliation.",
                        "default": false
                    },
                    "timeoutSecs": {
                        "title": "Request timeout seconds",
                        "minimum": 10,
                        "maximum": 120,
                        "type": "integer",
                        "description": "HTTP timeout per request to the CFPB website.",
                        "default": 30
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
