# USAspending Federal Awards Search (`felixgoldwin/usaspending-federal-awards-search`) Actor

- **URL**: https://apify.com/felixgoldwin/usaspending-federal-awards-search.md
- **Developed by:** [Felix GoldWin](https://apify.com/felixgoldwin) (community)
- **Categories:** Developer tools, Other
- **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 federal award records

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

## USAspending Federal Awards Search

Find newly signed federal **prime contract awards** by NAICS, top-tier awarding agency, organization name and signing dates. This is buying-history research, not an open solicitations feed. Read-only, official USAspending API; no keys, paid proxies or browser sessions.

```json
{
  "startDate":"2025-01-01",
  "endDate":"2025-03-31",
  "naicsCodes":["541512"],
  "awardingAgency":"Department of Defense",
  "maxItems":100
}
```

The inclusive bounds use the source's base transaction signing date, not the period of performance, payment date or an amendment date. The Actor restricts the source query to corporate entity recipient categories, excludes known individual and sole proprietor markers on output, requires valid UEI and an award start from April 5, 2022, and intentionally excludes older records, grants, IDVs, subawards, person-level data, DUNS, addresses, contact lists and free-text award descriptions. Corporate selection relies on government reporting and can exclude valid organizations. Recipient search is source-matched, not proof of identity. Use full agency names. No enrichment or outreach is performed.

Rows include award IDs, recipient name and UEI, award/funding agencies, amount in USD, signing/start/end dates, NAICS and the official award link. Amount is the source's award-level amount, not the cash paid, remaining budget, or amount of the first action. Sort the reported performance end date in your downstream export to prioritize incumbent-contract research. The end date can change, may be missing, and does not predict a new solicitation or guarantee a renewal. Compare complete exports only: page/item limits and live source changes can limit results. Check the `SUMMARY` record for excluded or duplicate rows and the limit reached. A fresh run returns a new snapshot, not just new rows; deduplicate downstream on `generatedAwardId`.

Sources: [USAspending API](https://api.usaspending.gov/docs/endpoints), [contract](https://github.com/fedspendingtransparency/usaspending-api/blob/master/usaspending_api/api_contracts/contracts/v2/search/spending_by_award.md), [date filter](https://github.com/fedspendingtransparency/usaspending-api/blob/master/usaspending_api/api_contracts/search_filters.md), [analyst guide](https://www.usaspending.gov/federal-spending-guide). This source package has no Store listing or pricing. Review source provenance and release terms before commercial publication.

# Actor input Schema

## `startDate` (type: `string`):

Earliest inclusive base obligation (signing) date YYYY-MM-DD, April 5, 2022 or later.

## `endDate` (type: `string`):

Latest inclusive base obligation (signing) date YYYY-MM-DD.

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

Optional six-digit NAICS codes.

## `recipient` (type: `string`):

Optional company-name search. Do not supply personal names.

## `awardingAgency` (type: `string`):

Optional exact top-tier awarding agency name.

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

Maximum saved results, at most 1,000.

## Actor input object example

```json
{
  "startDate": "2025-01-01",
  "endDate": "2025-03-31",
  "naicsCodes": [],
  "recipient": "",
  "awardingAgency": "",
  "maxItems": 100
}
```

# Actor output Schema

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

No description

## `summary` (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 = {
    "startDate": "2025-01-01",
    "endDate": "2025-03-31"
};

// Run the Actor and wait for it to finish
const run = await client.actor("felixgoldwin/usaspending-federal-awards-search").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 = {
    "startDate": "2025-01-01",
    "endDate": "2025-03-31",
}

# Run the Actor and wait for it to finish
run = client.actor("felixgoldwin/usaspending-federal-awards-search").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 '{
  "startDate": "2025-01-01",
  "endDate": "2025-03-31"
}' |
apify call felixgoldwin/usaspending-federal-awards-search --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,felixgoldwin/usaspending-federal-awards-search"
        }
    }
}
```

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/Y9WGkSPCqmvBIn3k5/builds/HqqZTAr4X9Fs99EKn/openapi.json
