# Expiring Federal Contracts Finder (Recompetes) (`paramount_torch/federal-recompete-finder`) Actor

Find federal contracts that expire in the next 1 to 24 months: incumbent, agency, NAICS, PSC, award value, spend to date and end date. Run weekly to get only newly expiring contracts. For govcon BD, capture and proposal teams. Official USAspending.gov data, no API key.

- **URL**: https://apify.com/paramount_torch/federal-recompete-finder.md
- **Developed by:** [Samuel Fayn](https://apify.com/paramount_torch) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.50 / 1,000 contracts

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 Federal Contracts Finder: Recompete Tracker for USAspending

Most federal contracts are re-competed when they end. If you know which contracts end in the next 6 to 18 months, you can meet the agency, study the incumbent and be ready before the solicitation drops. This Actor pulls that list from USAspending.gov, the official source for federal award data: every contract in your industry, agency and state whose current end date falls in your window.

No API key, no login, no scraping.

### Who it's for

- Small businesses and government contractors building a pipeline
- Business development and capture teams
- Proposal writers and consultants looking for clients with a re-bid coming
- Subcontractors who want to approach incumbents or challengers early

### What you get for each contract

| Field | Example |
|---|---|
| endDate, daysUntilEnd | 2027-06-30, 237 |
| recipientName, recipientUei | the incumbent company |
| awardingAgency, awardingSubAgency, fundingAgency | Department of Veterans Affairs |
| awardId, contractType | contract number, e.g. DEFINITIVE CONTRACT |
| naicsCode, naicsDescription, pscCode, pscDescription | 541511, CUSTOM COMPUTER PROGRAMMING SERVICES |
| description | the award description |
| placeOfPerformanceState | GA |
| startDate, awardAmount, totalOutlays | |
| lastModifiedDate | |
| usaspendingUrl | the award page on usaspending.gov, with every transaction and modification |

### How to use

1. Open the Input tab and pick how many months ahead to look (12 is a good start).
2. Add your NAICS codes, and optionally agencies, states and a minimum award size.
3. Click Start. Results appear in the Output tab as they are found.
4. Download as CSV, Excel or JSON, or connect a Google Sheet.
5. Save the input as a Task, turn on "Only contracts I haven't seen", and schedule it weekly. Each run then returns only recompetes you have not seen yet, and you are not charged for the ones it skips.

### Input

```json
{
  "monthsAhead": 12,
  "naicsCodes": ["541511", "541512"],
  "agencies": ["Department of Veterans Affairs"],
  "states": ["GA"],
  "minAwardAmount": 250000
}
```

All filters are optional, but each one makes the run faster and the list more useful. NAICS codes match by prefix, so `5415` covers all computer services.

### Incumbent summary (free)

Every run also saves a summary of who holds the expiring money, ranked by total award amount: incumbent name, UEI, number of expiring contracts, total value, agencies and the earliest end date. Open the run's Storage tab and look for the `INCUMBENTS` record in the key-value store, or fetch it over the API. It is a quick way to spot which competitors have the most work coming up for re-bid, and teaming targets for your next proposal. There is no charge for it.

### How it works

USAspending can sort contracts by end date but cannot filter on it, and the contracts that end years from now come first. Instead of reading every page, the Actor jumps through the sorted results to find where your window starts, then reads only those pages. A typical filtered search takes a handful of requests.

### Good to know

- The end date is the contract's current end date. Unexercised options can extend it, and agencies sometimes extend contracts without a re-bid, so treat the list as a starting point for research.
- Contract data reaches USAspending from FPDS, usually within days of an action. Department of Defense data is published on a 90-day delay.
- Agency names must match USAspending's spelling, e.g. "Department of Defense".

### How much does it cost?

You pay $0.006 per contract saved to your dataset ($6 per 1,000). Platform usage is included, and anything your filters skip is free. Apify's free plan gives you monthly credits, enough for a first test.

| Run | Contracts | Cost |
|---|---|---|
| A focused search (one NAICS, one state) | 50 to 200 | $0.30 to $1.20 |
| A whole agency, 12 months ahead | 1,000 | $6 |
| A big pipeline export | 10,000 | $60 |

Set a maximum charge per run in the run options and the Actor stops cleanly when it is reached.

### Data source

USAspending.gov API (spending_by_award), run by the U.S. Department of the Treasury. This Actor is not affiliated with or endorsed by the U.S. government.

### FAQ

**Is this the same as SAM.gov opportunities?** No. SAM.gov shows solicitations that are already open. This shows contracts that are still running and will end soon, which is when capture work should start.

**Where does the data come from?** USAspending.gov, the official federal spending site, which gets contract data from FPDS.

**Can I find who the incumbent is?** Yes. `recipientName` and `recipientUei` are the company holding the contract now.

**Why is a contract I know about missing?** Check the NAICS code and agency spelling, and note that Department of Defense data is delayed 90 days.

### Use it with n8n, Make, Zapier, Google Sheets or AI agents

- Run it on a schedule from the Schedules tab and send new results to Google Sheets, Slack or email with Apify's built-in integrations.
- Call it from n8n, Make or Zapier with the Apify app, or from your own code with the Apify API (`run-sync-get-dataset-items` returns results in one call).
- AI agents can call it as a tool through the Apify MCP server.

### Related Actors

- [New Dental & Medical Practices Finder (NPI)](https://apify.com/paramount_torch/new-dental-medical-practices-finder-npi)
- [SEC Form D Scraper: Startup Funding Leads](https://apify.com/paramount_torch/sec-form-d-leads)
- [Bulk VIN Decoder & NHTSA Recall Lookup](https://apify.com/paramount_torch/vin-recall-checker)

### Questions or a field you need?

Open an issue on the Actor's Issues tab. Issues are answered within a few days.

# Actor input Schema

## `monthsAhead` (type: `integer`):

Return contracts whose current end date falls between today and this many months from now.

## `naicsCodes` (type: `array`):

Industry codes or prefixes, e.g. 541511 (custom programming), 5415 (computer services), 561720 (janitorial). Prefixes match everything below them.

## `agencies` (type: `array`):

Top-tier agency names exactly as USAspending writes them, e.g. Department of Defense, Department of Veterans Affairs, Department of Homeland Security, General Services Administration.

## `states` (type: `array`):

Two-letter state codes, e.g. VA, MD, GA.

## `keywords` (type: `array`):

Words to match in the award description, e.g. cloud, janitorial, training.

## `pscCodes` (type: `array`):

Product and Service Codes, e.g. DA01.

## `minAwardAmount` (type: `integer`):

Skip contracts whose total obligated amount is below this (USD).

## `includeIdvs` (type: `boolean`):

Also return indefinite delivery vehicles, not only contracts and purchase orders.

## `lookbackYears` (type: `integer`):

Only consider contracts that had a transaction in this many past years. Five years catches most active contracts.

## `onlyNewSinceLastRun` (type: `boolean`):

Remembers the contracts this search returned in earlier runs and skips them (you are not charged for skipped ones). Good for a weekly schedule that alerts you to new recompetes.

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

Stop after this many contracts. You are charged per contract saved.

## `maxPages` (type: `integer`):

Safety cap on API pages (100 contracts each). Raise it, or add filters, if the run says it hit the cap.

## Actor input object example

```json
{
  "monthsAhead": 12,
  "naicsCodes": [
    "541511",
    "541512"
  ],
  "states": [
    "GA"
  ],
  "minAwardAmount": 250000,
  "includeIdvs": false,
  "lookbackYears": 5,
  "onlyNewSinceLastRun": false,
  "maxItems": 500,
  "maxPages": 300
}
```

# Actor output Schema

## `results` (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 = {
    "naicsCodes": [
        "541511",
        "541512"
    ],
    "states": [
        "GA"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("paramount_torch/federal-recompete-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 = {
    "naicsCodes": [
        "541511",
        "541512",
    ],
    "states": ["GA"],
}

# Run the Actor and wait for it to finish
run = client.actor("paramount_torch/federal-recompete-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 '{
  "naicsCodes": [
    "541511",
    "541512"
  ],
  "states": [
    "GA"
  ]
}' |
apify call paramount_torch/federal-recompete-finder --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,paramount_torch/federal-recompete-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/3LnEcUrkwSXtDRVRA/builds/sPdXFnj8bj1Sc9arJ/openapi.json
