# Expiring Gov Contracts & Incumbent Renewal Finder (`divy4/expiring-contract-renewal-finder`) Actor

Live HTTP intelligence engine tracking expiring government contracts 0-24 months before recompete across US Federal (USAspending), UK (Contracts Finder), and EU (TED). Identify incumbents, award values, and renewal urgency with zero browser overhead.

- **URL**: https://apify.com/divy4/expiring-contract-renewal-finder.md
- **Developed by:** [Divyanshu Rana](https://apify.com/divy4) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 verified records

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-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

## Expiring Government Contracts & Incumbent Renewal Finder (US, UK, EU)

> **Unlock High-Yield GovCon Capture Intelligence**: Track active federal and public government contracts expiring 0–24 months before public re-tenders occur. Surface incumbent prime contractors, award values, contract offices, and recompete urgency with zero browser overhead.

***

### Why Expiring Contracts Outperform Generic RFP Scrapers

Almost every procurement scraper on Apify tracks **open tenders**—when incumbents have already shaped the statement of work and pre-solicitation requirements are frozen.

Government contracting (GovCon) business development teams, IT vendors, and defense contractors pay thousands of dollars for **advance recompete signals**: contracts expiring in 6 to 18 months, enriched with incumbent vendor details, pricing run-rates, and contracting offices, enabling proactive teaming and capability shaping.

#### Key Capabilities & Moats

- 🏛️ **Multi-Jurisdiction Coverage**: Ingests official government contract registries across **US Federal** (`USAspending.gov` API v2), **United Kingdom** (`Contracts Finder` / `Find a Tender` OCDS), and **European Union** (`TED` Award Notices).
- ⚡ **Pure HTTP Execution**: 100% lightweight Node.js/TypeScript architecture using `got-scraping`. Zero Chromium overhead, runs in milliseconds, ultra-reliable.
- 🎯 **Derived Capture Intelligence**:
  - `monthsToExpiration` & `daysToExpiration`: Exact countdown to contract expiration.
  - `renewalUrgency`: Categorized tiers (`CRITICAL_IMMEDIATE` < 3mo, `STRATEGIC_PREPARATION` 3–12mo, `EARLY_PIPELINE` 12–24mo).
  - `annualizedRunRateUsd`: Normalized yearly contract value run-rate.
  - `competitionType`: Classifies `FULL_AND_OPEN_COMPETITION` vs `SOLE_SOURCE_OR_SET_ASIDE`.
- 🔄 **Stateful Delta Sync (`onlyNew: true`)**: Deduplicates records via Key-Value store; daily scheduled runs only output newly expiring awards or modified dates.
- 🤖 **AI Agent & MCP Native**: Built from the ground up for Model Context Protocol (MCP) agents, n8n, Clay, Make, and LangChain pipelines.

***

### Input Parameters

| Parameter | Type | Required | Description | Example |
| :--- | :--- | :--- | :--- | :--- |
| `jurisdictions` | Array | **Yes** | Target registries (`US`, `UK`, `EU`). Batch queries run concurrently. | `["US", "UK"]` |
| `expirationHorizonMinMonths` | Integer | No | Minimum months until expiration (default: `0`). | `0` |
| `expirationHorizonMaxMonths` | Integer | No | Maximum months until expiration (default: `24`). | `18` |
| `minValueUsd` | Integer | No | Minimum award value in USD (default: `0`). | `100000` |
| `industryCodes` | Array | No | NAICS, PSC, or CPV industry codes. | `["541512", "72000000"]` |
| `searchKeywords` | Array | No | Keyword filters (e.g., capability, technology). | `["cybersecurity", "cloud"]` |
| `agencyNames` | Array | No | Awarding agency or department names. | `["Department of Defense"]` |
| `incumbentVendors` | Array | No | Incumbent prime contractors to monitor. | `["Lockheed Martin", "Accenture"]` |
| `onlyNew` | Boolean | No | Delta sync: emit new or modified items only (default: `true`). | `true` |
| `maxItems` | Integer | No | Maximum awards to return across jurisdictions (default: `50`). | `50` |

***

### Output Data Schema

Every item emitted strictly adheres to this normalized JSON structure:

```json
{
  "contractId": "CONT_AWD_FA873214D0001_9700",
  "jurisdiction": "US",
  "title": "ENTERPRISE CLOUD INFRASTRUCTURE SUPPORT SERVICES",
  "description": "Commercial IT infrastructure and security engineering services.",
  "incumbentVendor": {
    "name": "BOOZ ALLEN HAMILTON INC.",
    "identifier": "MDV1K7L3N8R9",
    "country": "USA"
  },
  "awardingAgency": {
    "agencyName": "DEPARTMENT OF DEFENSE",
    "officeName": "DEPT OF THE AIR FORCE",
    "country": "USA"
  },
  "financials": {
    "totalAwardValue": 14250000,
    "currency": "USD",
    "totalAwardValueUsd": 14250000,
    "annualizedRunRateUsd": 2850000
  },
  "timeline": {
    "startDate": "2021-10-01",
    "currentEndDate": "2026-09-30",
    "daysToExpiration": 315,
    "monthsToExpiration": 10.3
  },
  "intelligence": {
    "renewalUrgency": "STRATEGIC_PREPARATION",
    "competitionType": "FULL_AND_OPEN_COMPETITION",
    "recompeteOpportunityScore": 88
  },
  "classification": {
    "naicsCode": "541512",
    "pscCode": "D302",
    "cpvCode": null
  },
  "_sourceUrl": "https://www.usaspending.gov/award/CONT_AWD_FA873214D0001_9700",
  "_fingerprint": "a98e1f0...7c89",
  "_scrapedAt": "2026-11-19T14:00:00.000Z"
}
```

***

### Transparent Pay-Per-Event (PPE) Pricing

| Event | Event ID | Cost | Details |
| :--- | :--- | :--- | :--- |
| **Actor Run Start** | `apify-actor-start` | **$0.005** | Per run execution start fee (protects against empty trigger spam). |
| **Expiring Award Record** | `apify-default-dataset-item` | **$0.006** | Charged per verified expiring contract record ($6.00 / 1,000 records). |

*Zero charges are assessed if input validation fails or if zero items match your search criteria.*

# Actor input Schema

## `jurisdictions` (type: `array`):

Government procurement portals to search. Supports US (USAspending.gov), UK (Contracts Finder), and EU (TED). Batch queries execute concurrently.

## `expirationHorizonMinMonths` (type: `integer`):

Contracts expiring at least this many months in the future (e.g. 0 for immediate upcoming expirations).

## `expirationHorizonMaxMonths` (type: `integer`):

Contracts expiring within this many months in the future (e.g. 24 for 2-year capture horizon).

## `minValueUsd` (type: `integer`):

Filter out small purchases. Set to 0 to capture all contracts, or e.g. 100000 for $100K+ awards.

## `industryCodes` (type: `array`):

List of industry classification codes to filter (e.g. \['541512', '541330'] for US NAICS, \['72000000'] for UK/EU CPV).

## `searchKeywords` (type: `array`):

Keywords matched against award title, scope, and description (e.g. \['cybersecurity', 'cloud', 'ai', 'hvac', 'consulting']).

## `agencyNames` (type: `array`):

Filter by awarding agency or contracting office name (e.g. \['Department of Defense', 'Veterans Affairs', 'NHS']).

## `incumbentVendors` (type: `array`):

Filter by incumbent prime contractor name to scout specific competitors (e.g. \['Lockheed Martin', 'Booz Allen', 'Accenture']).

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

If enabled, deduplicates against previous runs in the Key-Value store and only outputs contracts with new or modified renewal timelines.

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

Maximum number of expiring contracts to collect across selected jurisdictions.

## Actor input object example

```json
{
  "jurisdictions": [
    "US"
  ],
  "expirationHorizonMinMonths": 0,
  "expirationHorizonMaxMonths": 24,
  "minValueUsd": 0,
  "onlyNew": true,
  "maxItems": 50
}
```

# Actor output Schema

## `results` (type: `string`):

Dataset containing verified government contracts expiring in 0-24 months across US Federal, UK, and EU.

# 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 = {
    "jurisdictions": [
        "US"
    ],
    "expirationHorizonMinMonths": 0,
    "expirationHorizonMaxMonths": 24,
    "minValueUsd": 0,
    "onlyNew": true,
    "maxItems": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("divy4/expiring-contract-renewal-finder").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 = {
    "jurisdictions": ["US"],
    "expirationHorizonMinMonths": 0,
    "expirationHorizonMaxMonths": 24,
    "minValueUsd": 0,
    "onlyNew": True,
    "maxItems": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("divy4/expiring-contract-renewal-finder").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 '{
  "jurisdictions": [
    "US"
  ],
  "expirationHorizonMinMonths": 0,
  "expirationHorizonMaxMonths": 24,
  "minValueUsd": 0,
  "onlyNew": true,
  "maxItems": 50
}' |
apify call divy4/expiring-contract-renewal-finder --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,divy4/expiring-contract-renewal-finder"
        }
    }
}
```

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/jqB8dacqZanWckfVq/builds/rRexcSXy4LVJc7QZs/openapi.json
