# CFPB Credit Card Complaint Spike Monitor

**Use case:** 

Monitor lag-adjusted credit-card complaint volumes and receive statistically screened spike signals from the official public CFPB database.

## Input

```json
{
  "products": [
    "Credit card"
  ],
  "issues": [],
  "companies": [],
  "states": [],
  "searchTerm": "",
  "searchField": "all",
  "hasNarrative": "",
  "dimensions": [
    "issue",
    "company"
  ],
  "reportingLagDays": 16,
  "currentWindowDays": 7,
  "baselineWindowDays": 28,
  "minCurrentCount": 10,
  "minRateRatio": 1.75,
  "minShareRatio": 1.2,
  "minZScore": 3,
  "maxAlerts": 10,
  "sampleSize": 50,
  "maxClusterCandidates": 3,
  "minClusterSampleOccurrences": 2,
  "minClusterCurrentCount": 10,
  "maxClusterBaselineCount": 5,
  "minClusterRateRatio": 3,
  "minClusterShareRatio": 1.5,
  "emitResolved": true,
  "resetState": false
}
```

## Output

```json
{
  "recordType": {
    "label": "Type",
    "format": "text"
  },
  "lifecycle": {
    "label": "Lifecycle",
    "format": "text"
  },
  "severity": {
    "label": "Severity",
    "format": "text"
  },
  "dimension": {
    "label": "Dimension",
    "format": "text"
  },
  "category": {
    "label": "Signal",
    "format": "text"
  },
  "currentCount": {
    "label": "Current",
    "format": "number"
  },
  "baselineCount": {
    "label": "Baseline",
    "format": "number"
  },
  "rateRatio": {
    "label": "Rate ratio",
    "format": "number"
  },
  "shareRatio": {
    "label": "Share ratio",
    "format": "number"
  },
  "zScore": {
    "label": "Z-score",
    "format": "number"
  },
  "checkedAt": {
    "label": "Checked",
    "format": "date"
  }
}
```

## About this Actor

This example demonstrates how to use [CFPB Complaint Spike & Emerging-Issue Monitor](https://apify.com/blaidlink/cfpb-complaint-spike-monitor) with a specific input configuration. Visit the [Actor detail page](https://apify.com/blaidlink/cfpb-complaint-spike-monitor) to learn more, explore other use cases, and run it yourself.