# Expiring federal janitorial and custodial contracts

**Use case:** 

Federal janitorial services contracts (NAICS 561720) worth $250K or more ending in 4-18 months, across all agencies, from USAspending.gov. See the incumbent, value, end date, place of performance and whether a sources sought or solicitation is already on SAM.gov. New or changed rows only.

## Input

```json
{
  "naicsCodes": [
    "561720"
  ],
  "awardingAgencies": [
    "Department of Veterans Affairs"
  ],
  "minAwardAmount": 250000,
  "monthsFrom": 4,
  "monthsTo": 18,
  "endDateBasis": "current",
  "maxPotentialEndLookups": 20,
  "maxParentLookups": 50,
  "activityYears": 3,
  "joinSam": true,
  "maxItems": 200,
  "maxPagesPerQuery": 30,
  "maxRequests": 200,
  "stateKey": "task-janitorial",
  "emitUnchanged": false,
  "resetState": false
}
```

## Output

```json
{
  "endDate": {
    "label": "End date",
    "format": "string"
  },
  "potentialEndDate": {
    "label": "Potential end date",
    "format": "string"
  },
  "monthsToEnd": {
    "label": "Months to end",
    "format": "number"
  },
  "piid": {
    "label": "Piid",
    "format": "string"
  },
  "incumbent": {
    "label": "Incumbent",
    "format": "string"
  },
  "currentParentName": {
    "label": "Current parent name",
    "format": "string"
  },
  "awardAmount": {
    "label": "Award amount",
    "format": "number"
  },
  "awardingSubAgency": {
    "label": "Awarding sub agency",
    "format": "string"
  },
  "naicsCode": {
    "label": "Naics code",
    "format": "string"
  },
  "pscCode": {
    "label": "Psc code",
    "format": "string"
  },
  "onSam": {
    "label": "On sam",
    "format": "boolean"
  },
  "samMatchConfidence": {
    "label": "Sam match confidence",
    "format": "string"
  },
  "samNoticeType": {
    "label": "Sam notice type",
    "format": "string"
  },
  "samUrl": {
    "label": "Sam url",
    "format": "string"
  },
  "usaspendingUrl": {
    "label": "Usaspending url",
    "format": "string"
  },
  "changeType": {
    "label": "Change type",
    "format": "string"
  },
  "changeReason": {
    "label": "Change reason",
    "format": "string"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Expiring Federal Contracts – Recompete Radar Actor is ready to run with the inputs already set for "Expiring federal janitorial and custodial contracts". [Sign up or log in](https://console.apify.com/create-task-from-example/ZJRuWZgm0VeofqyCM) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Expiring federal janitorial and custodial contracts" task

The Expiring Federal Contracts – Recompete Radar Actor will start running based on the input automatically. You can also change all the input fields, like NAICS codes, awarding agencies, and more, to match your specific use case.

### 3. Receive the "Expiring federal janitorial and custodial contracts" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as end date, potential end date, months to end, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Expiring federal janitorial and custodial contracts" task via API](https://apify.com/cce_partners/govcon-recompete-radar.md).

## About this Actor

This example demonstrates how to use [Expiring Federal Contracts – Recompete Radar](https://apify.com/cce_partners/govcon-recompete-radar.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/cce_partners/govcon-recompete-radar.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

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 full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/cce_partners/govcon-recompete-radar.md

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`).
