# Monitor Contractor Licences for Expiry

**Use case:** 

Re-check a watchlist of contractors on a schedule and get alerted 30 days before a licence expires, when one lapses, or when a board revokes it.

## Input

```json
{
  "watchlist": [
    {
      "company": "RANSOME COMPANY",
      "state": "CA",
      "license_number": "22726"
    },
    {
      "company": "ARETE CONSTRUCTION LLC",
      "state": "CT",
      "license_number": "631057"
    },
    {
      "company": "BRAMMER RIDGE CONSTRUCTION LLC",
      "state": "OR",
      "license_number": "259397"
    }
  ],
  "pageTitle": "Contractor License Compliance Monitor",
  "warnDays": 30,
  "alertOn": [
    "expiring",
    "expired",
    "status_change"
  ]
}
```

## Output

```json
{
  "alert": {
    "label": "Alert",
    "format": "string"
  },
  "requested_company": {
    "label": "Requested company",
    "format": "string"
  },
  "requested_state": {
    "label": "Requested state",
    "format": "string"
  },
  "license_number": {
    "label": "License #",
    "format": "string"
  },
  "license_status": {
    "label": "Status",
    "format": "string"
  },
  "expiration_date": {
    "label": "Expires",
    "format": "string"
  },
  "days_to_expiry": {
    "label": "Days to expiry",
    "format": "integer"
  },
  "alert_reason": {
    "label": "Why",
    "format": "string"
  },
  "authority": {
    "label": "Authority",
    "format": "string"
  },
  "source_url": {
    "label": "Source URL",
    "format": "string"
  }
}
```

## About this Actor

This example demonstrates how to use [Contractor License Expiration Monitor & Alerts (Notion)](https://apify.com/scrapebench/contractor-license-expiration-monitor) with a specific input configuration. Visit the [Actor detail page](https://apify.com/scrapebench/contractor-license-expiration-monitor) to learn more, explore other use cases, and run it yourself.