# Federal Contract Recompete Radar: Expiring NAICS Awards (`thebadassgrokbot/federal-contract-recompete-radar`) Actor

Find federal contracts ending soon, with incumbent, agency, value and end date, before the recompete is posted. USAspending data. No key. Pay per contract.

- **URL**: https://apify.com/thebadassgrokbot/federal-contract-recompete-radar.md
- **Developed by:** [Adrian Novak](https://apify.com/thebadassgrokbot) (community)
- **Categories:** Lead generation, Business
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $10.00 / 1,000 expiring contracts

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## Federal Contract Recompete Radar: Expiring NAICS Awards

Find federal contracts ending soon, with incumbent, agency, value and end date, before the recompete is posted. USAspending data. No key. Pay per contract.

### What it does

- Lists prime federal contracts (award types A, B, C, or D) whose current USAspending End Date falls in your window.
- Returns the incumbent recipient, awarding agency and sub-agency, NAICS code and description, award amount, start date, current end date, months remaining, and place-of-performance state.
- Filters by 2-, 4-, or 6-digit NAICS codes (the API rejects 3- and 5-digit codes), awarding agency, and state.
- Links each row to the official USAspending award page.
- Omits contracting-officer names, emails, phones, award descriptions (which often embed a point of contact), and recipient street addresses.

### Who it's for

GovCon business-development and capture teams who want a list of prime awards heading toward their current end date, by NAICS, agency, or state, before a recompete is posted.

### Input and output

**Input** (all fields optional, except an explicit empty NAICS list is rejected because an unfiltered search is too large). Empty `{}` uses NAICS `238210`, contracts ending in the next 12 months, award amount at least $100,000, up to 50 rows. The date window uses the America/Chicago calendar.

- `naicsCodes` — 2, 4, or 6-digit only; prefix matching applies; default `["238210"]`
- `agencies` — awarding toptier name, abbreviation, slug, or code (for example Department of Defense, DOD, 097)
- `states` — 2-letter place-of-performance codes
- `endsWithinMonths` — 1–24, default 12
- `minValue` — default 100000; use 0 for no floor; unknown amounts are kept
- `maxResults` — 1–10,000, default 50; you pay per contract returned

**Output** (one dataset row per contract): `awardId`, `piid`, `recipientName`, `awardingAgency`, `subAgency`, `naics`, `naicsDescription`, `awardAmount`, `startDate`, `currentEndDate`, `monthsToExpiry`, `placeOfPerformanceState`, `usaspendingUrl`, `source` (`USAspending.gov`), `fetchedAt`. Missing values are `null`, never invented. `monthsToExpiry` is whole calendar months from today to the current end date (0 if it ends this month).

### Pricing

Pay-per-event: $0.01 per contract written to the dataset (event: expiring-contract). Apify also charges its default start event (apify-actor-start). There is no per-row apify-default-dataset-item charge. No API key or proxy is required. Suggested minimum max-charge per run: $0.05.

### Data source and license caveats

Source: the official, unauthenticated USAspending API (POST /api/v2/search/spending_by_award/, plus GET /api/v2/references/toptier_agencies/ when an agency filter is used). Publisher: U.S. Department of the Treasury, Bureau of the Fiscal Service. The USAspending API source is dedicated to the public domain under CC0 1.0.

USAspending's End Date is the current period of performance end. Option years or modifications can later extend it, so treat the date as of fetchedAt and confirm on the official award page (usaspendingUrl) before you bid or rely on an end date.

The API's time_period filter cannot select on period-of-performance end date. This Actor asks USAspending for contracts sorted by End Date ascending, starting at today's date, and keeps rows whose End Date falls in your window.

Public endpoints only. No login, no paid API, no scraping of the USAspending website UI, no seals or logos. Data may lag, contain errors, or change when an award is modified. No warranty. This tool does not file bids, register a SAM.gov entity, or contact incumbents or contracting officers. Not affiliated with, endorsed by, or sponsored by USAspending.gov, the U.S. Department of the Treasury, or the Bureau of the Fiscal Service.

### Changelog

- **0.1** — First private release: expiring prime contracts from USAspending, NAICS / agency / state filters, contracting-officer contacts omitted.

# Actor input Schema

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

2, 4, or 6-digit NAICS codes only (the USAspending API rejects 3- and 5-digit codes). Default: 238210 (electrical / wiring contractors). Prefix matching applies (23 includes 238210).

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

Optional awarding toptier agencies. Names, abbreviations, slugs, or codes are accepted (e.g. Department of Defense, DOD, 097). Leave empty for all agencies.

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

Optional 2-letter state codes for place of performance (VA, TX, CA...). Leave empty for all locations.

## `endsWithinMonths` (type: `integer`):

Only contracts whose current USAspending End Date is between today and this many months from today. Default: 12. Date window uses the America/Chicago calendar.

## `minValue` (type: `number`):

Drop contracts whose award amount is below this floor. Default: 100000. Use 0 for no floor. Contracts with an unknown amount are kept.

## `maxResults` (type: `integer`):

Maximum contracts to return (and pay for) in this run.

## Actor input object example

```json
{
  "naicsCodes": [
    "238210"
  ],
  "endsWithinMonths": 12,
  "minValue": 100000,
  "maxResults": 50
}
```

# Actor output Schema

## `contracts` (type: `string`):

No description

## `sourceStats` (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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("thebadassgrokbot/federal-contract-recompete-radar").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("thebadassgrokbot/federal-contract-recompete-radar").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 '{}' |
apify call thebadassgrokbot/federal-contract-recompete-radar --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,thebadassgrokbot/federal-contract-recompete-radar"
        }
    }
}
```

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/3uNw0CPEhhkSNpfvZ/builds/PUELGiG7LgZ3R3T3C/openapi.json
