# US Federal Awards (USASpending.gov) (`weathered_trumpetvine/usaspending-awards`) Actor

Search official US federal contract and grant awards from the USASpending.gov API. Free, no API key, and returns clean records without personal contact details.

- **URL**: https://apify.com/weathered_trumpetvine/usaspending-awards.md
- **Developed by:** [Coin Scout](https://apify.com/weathered_trumpetvine) (community)
- **Categories:** Business, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$2.00 / 1,000 results

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

## US Federal Awards (USASpending.gov)

Pull official US federal contract and grant awards from **USASpending.gov**, the US Treasury's public spending site, and return clean rows you can open in a spreadsheet or feed to another tool.

This Actor talks only to the official free [USASpending API](https://api.usaspending.gov/docs/endpoints). It does not scrape the website, does not need a login or API key, and it **does not include personal contact names, email addresses, phone numbers or street addresses**. If you need more detail, follow the official award link.

Data from USAspending.gov, U.S. Department of the Treasury, Bureau of the Fiscal Service. Recipient organisation names may include Dun & Bradstreet Open Data.

### What you get

Each row is one official award, with:

- **awardId** — the official award identifier
- **recipientName** — the recipient organisation only
- **awardingAgency** — the awarding federal agency
- **awardCategory** (`contracts`, `grants`, `idvs`, and so on) and **awardType**
- **amount** and **currency** (USD)
- **startDate**, **endDate** and **actionDate**, when published
- **description**, trimmed, with emails and phone numbers removed
- **naicsCode** / **naicsDescription** and **pscCode** / **pscDescription**, when published
- **placeOfPerformance** — city, state and country only
- **awardUrl** — a link to the official USASpending award page

Emails and phone numbers are removed from text fields. Contact keys, street addresses, DUNS numbers and other personal or restricted contact fields are never copied into the output.

### How to use it

1. Leave the dates empty to search the last 30 days, or set **Date from** and **Date to** as `YYYY-MM-DD`. Dates use the official action date.
2. Optionally add **Keywords**, an **Awarding agency** (for example `Department of Defense` or `DOD`), a **Place of performance state** such as `CA`, and an **Award type**.
3. Set **Maximum results** so a run stays small (the default of 25 is a good first test).
4. Run the Actor and export the dataset as JSON, CSV or Excel.

Example input:

```json
{
  "keywords": "software, cybersecurity",
  "agency": "Department of Defense",
  "awardType": "contracts",
  "state": "CA",
  "dateFrom": "2026-10-01",
  "dateTo": "2026-11-12",
  "maxResults": 50
}
```

The default input (contracts from the last 30 days, 25 results) usually finishes in well under a minute and returns awards on any ordinary weekday.

### Where the data comes from

- [USASpending Advanced Award Search API](https://api.usaspending.gov/api/v2/search/spending_by_award/) — official, free, no key. Documentation: [API endpoints](https://api.usaspending.gov/docs/endpoints).
- Public site: <https://www.usaspending.gov>

Please keep this attribution when you reuse the data:

> Data from USAspending.gov, U.S. Department of the Treasury, Bureau of the Fiscal Service (https://www.usaspending.gov). Accessed \[date]. Recipient organisation names may include Dun & Bradstreet Open Data; see https://www.usaspending.gov/db_info.

The Treasury says the data on USASpending.gov may be copied, adapted, redistributed or otherwise used for commercial or non-commercial purposes, subject to the [limitation on Dun & Bradstreet data](https://www.usaspending.gov/db_info). This Actor does not return DUNS numbers or street addresses. Do not use any included organisation-name data in bulk as a substitute for a Dun & Bradstreet product.

### Notes and limits

- Award types cannot all be requested in one official API call, because contract and grant fields differ. When you choose **All types**, the Actor searches each category in turn (contracts first) and stops once it has enough rows.
- Agency names should match the official toptier name. Short forms such as DOD, NASA and EPA are mapped automatically.
- Loan awards use loan value rather than award amount.
- The Actor pauses briefly between pages and retries politely if the API is busy.
- This tool is meant for public spending data. It will not help you collect personal leads.

### Licence

The Actor code can be used with the project. The award data itself remains public US government spending data from USASpending.gov, reused under the terms on the [USASpending About page](https://www.usaspending.gov/about) and the [Dun & Bradstreet limitation](https://www.usaspending.gov/db_info).

# Actor input Schema

## `keywords` (type: `string`):

Optional words or phrases to match in the official USASpending keyword search. Separate alternatives with commas. Leave empty to return every award in the date range that matches the other filters.

## `agency` (type: `string`):

Optional awarding agency. Use a full official name such as "Department of Defense" or a short form such as DOD, NASA or EPA. Leave empty for all agencies.

## `awardType` (type: `string`):

Which official award category to search. Contracts is the default and usually returns results quickly. Choose All to include grants, IDVs, loans and other assistance as well.

## `dateFrom` (type: `string`):

Start of the action-date window, as YYYY-MM-DD. Defaults to 30 days ago if left empty.

## `dateTo` (type: `string`):

End of the action-date window, as YYYY-MM-DD. Defaults to today if left empty.

## `state` (type: `string`):

Optional US state or territory for the place of performance, as a 2-letter code (CA, TX) or a full name (California). Leave empty for all locations.

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

Maximum number of awards to return. Helps control run time and cost. The default of 25 is enough for a quick test and usually finishes in under a minute.

## Actor input object example

```json
{
  "awardType": "contracts",
  "maxResults": 25
}
```

# Actor output Schema

## `dataset` (type: `string`):

Dataset of cleaned federal award records.

# 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("weathered_trumpetvine/usaspending-awards").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("weathered_trumpetvine/usaspending-awards").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 weathered_trumpetvine/usaspending-awards --silent --output-dataset

```

## MCP server setup

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

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/X8KWhwdQ7xHUq9fOy/builds/F7q7z5sD3QGe5x1b7/openapi.json
