# USAspending Scraper (`parseforge/usaspending-scraper`) Actor

Optimize your government spending research with USAspending's comprehensive spending analyzer. Automate the collection of federal spending data, including awards, contracts, grants and loans. Ideal for researchers, analysts, and businesses that need accurate information on government spending.

- **URL**: https://apify.com/parseforge/usaspending-scraper.md
- **Developed by:** [ParseForge](https://apify.com/parseforge) (community)
- **Categories:** Automation, Developer tools, Other
- **Stats:** 18 total users, 3 monthly users, 100.0% runs succeeded, 2 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

Pay per event

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

![ParseForge Banner](https://github.com/ParseForge/apify-assets/blob/ad35ccc13ddd068b9d6cba33f323962e39aed5b2/banner.jpg?raw=true)

## 📊 USAspending Scraper

> 🚀 **Collect federal spending and contract data from USAspending.gov in minutes.** Filter by keyword, recipient, agency, NAICS code, award type, amount, and date range. Export award details, amounts, recipients, and agencies. No coding, no account required.

> 🕒 **Last updated:** 2026-04-23 · **📊 30+ fields** per award · **🔍 15+ filters** · **💰 Amount ranges** · **🚫 No auth** required

The **USAspending Scraper** collects federal spending data from USAspending.gov, returning **30+ fields per award**: recipient name, award ID, awarding and funding agencies, award amount, period of performance, place of performance, NAICS and PSC codes, and award type. Runs support up to 1,000,000 awards on a paid plan.

The Actor mirrors the Advanced Search filters on USAspending.gov: keywords, recipients, award IDs, date ranges, amount ranges, locations, agencies, recipient types, award types, NAICS codes, PSC codes, and spending level (awards vs sub-awards). Sort by amount, date, or recipient.

| 🎯 Target Audience | 💡 Primary Use Cases |
|---|---|
| GovCon BD teams, federal contractors, procurement analysts, grant researchers, policy analysts, journalists | Contract intelligence, competitive analysis, pipeline tracking, grant research, federal spending analysis |

---

### 📋 What the USAspending Scraper does

15+ search filters mirroring USAspending.gov Advanced Search:

- 🔍 **Keyword search.** Free-text search across awards.
- 🏢 **Recipient filter.** Company or organization names.
- 🆔 **Award ID lookup.** PIIDs, FAINs, URIs.
- 📅 **Date range.** Start and end dates for period of performance.
- 💰 **Amount range.** Min and max award amounts in USD.
- 📍 **Location filters.** Recipient location and place of performance (country, state, city).
- 🏛️ **Agency filters.** Awarding and funding agency names.
- 🏷️ **Recipient type.** Small business, large business, etc.
- 📋 **Award type.** Contracts, grants, loans, direct payments.
- 🏭 **NAICS and PSC codes.** Industry and product/service classifications.
- 📊 **Spending level.** Awards or sub-awards.
- 🔀 **Sort order.** Amount, date, or recipient, ascending or descending.

Each award record includes recipient name, award ID, description, amount, start/end dates, awarding agency, funding agency, place of performance, NAICS code, PSC code, and award type.

> 💡 **Why it matters:** searching USAspending.gov manually means clicking through paginated results and exporting limited CSVs. This Actor mirrors the full Advanced Search and exports structured federal spending data at scale, ready for your BD pipeline, competitive analysis, or policy research.

---

### 🎬 Full Demo

_🚧 Coming soon: a 3-minute walkthrough showing how to go from sign-up to a downloaded dataset._

---

### ⚙️ Input

<table>
<thead>
<tr><th>Input</th><th>Type</th><th>Default</th><th>Behavior</th></tr>
</thead>
<tbody>
<tr><td>keywords</td><td>array</td><td>[]</td><td>Free-text search phrases.</td></tr>
<tr><td>recipients</td><td>array</td><td>[]</td><td>Recipient company or org names.</td></tr>
<tr><td>awardId</td><td>array</td><td>[]</td><td>PIIDs, FAINs, or URIs.</td></tr>
<tr><td>startDate</td><td>string</td><td>""</td><td>Start date (YYYY-MM-DD).</td></tr>
<tr><td>endDate</td><td>string</td><td>""</td><td>End date (YYYY-MM-DD).</td></tr>
<tr><td>awardAmountMin</td><td>number</td><td>-</td><td>Minimum award amount in USD.</td></tr>
<tr><td>awardAmountMax</td><td>number</td><td>-</td><td>Maximum award amount in USD.</td></tr>
<tr><td>awardingAgencies</td><td>array</td><td>[]</td><td>Awarding agency names.</td></tr>
<tr><td>fundingAgencies</td><td>array</td><td>[]</td><td>Funding agency names.</td></tr>
<tr><td>awardType</td><td>string</td><td>""</td><td>Contracts, grants, loans, direct payments.</td></tr>
<tr><td>naicsCodes</td><td>array</td><td>[]</td><td>NAICS industry codes.</td></tr>
<tr><td>pscCodes</td><td>array</td><td>[]</td><td>Product and Service Codes.</td></tr>
<tr><td>maxItems</td><td>integer</td><td>10</td><td>Max awards. Free: up to 100. Paid: up to 1,000,000.</td></tr>
</tbody>
</table>

**Example: cybersecurity contracts over $1M from DoD.**

```json
{
    "keywords": ["cybersecurity"],
    "awardingAgencies": ["Department of Defense"],
    "awardAmountMin": 1000000,
    "awardType": "contracts",
    "maxItems": 50
}
````

**Example: grants to a specific recipient in 2025.**

```json
{
    "recipients": ["Johns Hopkins University"],
    "awardType": "grants",
    "startDate": "2025-01-01",
    "endDate": "2025-12-31",
    "maxItems": 100
}
```

> ⚠️ **Good to Know:** USAspending.gov is the official U.S. government portal for federal spending data. The Actor mirrors the Advanced Search filters exactly. Data comes from the USAspending API.

***

### 📊 Output

Each award record contains **30+ fields**. Download the dataset as CSV, Excel, JSON, or XML.

#### 🧾 Schema

| Field | Type | Example |
|---|---|---|
| 🆔 awardId | string | `"W911NF-21-C-0001"` |
| 📝 description | string | `"Cybersecurity services for..."` |
| 🏢 recipientName | string | `"Booz Allen Hamilton"` |
| 💰 awardAmount | number | `5200000` |
| 📅 startDate | string | `"2021-03-15"` |
| 📅 endDate | string | `"2026-03-14"` |
| 🏛️ awardingAgency | string | `"Department of Defense"` |
| 🏛️ fundingAgency | string | `"Department of the Army"` |
| 📋 awardType | string | `"Contract"` |
| 📍 placeOfPerformance | string | `"Arlington, VA"` |
| 🏭 naicsCode | string | `"541512"` |
| 🏭 naicsDescription | string | `"Computer Systems Design Services"` |
| 🏷️ pscCode | string | `"D310"` |
| 🏢 recipientType | string | `"Large Business"` |
| 📍 recipientLocation | string | `"McLean, VA"` |
| 🔗 url | string | `"https://www.usaspending.gov/award/..."` |
| 🕒 scrapedAt | ISO 8601 | `"2026-04-16T00:00:00.000Z"` |

#### 📦 Sample records

<details>
<summary><strong>🏛️ DoD cybersecurity contract</strong></summary>

```json
{
    "awardId": "W911NF-21-C-0001",
    "description": "Cybersecurity services for Army networks",
    "recipientName": "Booz Allen Hamilton",
    "awardAmount": 5200000,
    "startDate": "2021-03-15",
    "endDate": "2026-03-14",
    "awardingAgency": "Department of Defense",
    "fundingAgency": "Department of the Army",
    "awardType": "Contract",
    "placeOfPerformance": "Arlington, VA",
    "naicsCode": "541512",
    "naicsDescription": "Computer Systems Design Services",
    "pscCode": "D310",
    "recipientType": "Large Business",
    "recipientLocation": "McLean, VA",
    "url": "https://www.usaspending.gov/award/CONT_AWD_W911NF21C0001",
    "scrapedAt": "2026-04-16T00:00:00.000Z"
}
```

</details>

<details>
<summary><strong>🎓 Research grant</strong></summary>

```json
{
    "awardId": "R01-AI-123456",
    "description": "Study of novel vaccine approaches",
    "recipientName": "Johns Hopkins University",
    "awardAmount": 850000,
    "startDate": "2025-06-01",
    "endDate": "2028-05-31",
    "awardingAgency": "Department of Health and Human Services",
    "fundingAgency": "National Institutes of Health",
    "awardType": "Grant",
    "placeOfPerformance": "Baltimore, MD",
    "naicsCode": null,
    "naicsDescription": null,
    "pscCode": null,
    "recipientType": "Higher Education",
    "recipientLocation": "Baltimore, MD",
    "url": "https://www.usaspending.gov/award/ASST_AWD_R01AI123456",
    "scrapedAt": "2026-04-16T00:00:00.000Z"
}
```

</details>

<details>
<summary><strong>📋 Small business contract with sparse data</strong></summary>

```json
{
    "awardId": "GS-35F-0999X",
    "description": "IT support services",
    "recipientName": "SmallTech Solutions LLC",
    "awardAmount": 125000,
    "startDate": "2025-01-10",
    "endDate": "2025-12-31",
    "awardingAgency": "General Services Administration",
    "fundingAgency": "General Services Administration",
    "awardType": "Contract",
    "placeOfPerformance": "Washington, DC",
    "naicsCode": "541519",
    "naicsDescription": "Other Computer Related Services",
    "pscCode": null,
    "recipientType": "Small Business",
    "recipientLocation": "Reston, VA",
    "url": "https://www.usaspending.gov/award/CONT_AWD_GS35F0999X",
    "scrapedAt": "2026-04-16T00:00:00.000Z"
}
```

</details>

***

### ✨ Why choose this Actor

| | Capability |
|---|---|
| 🏛️ | **Official federal data.** Direct from USAspending.gov API. |
| 🔍 | **15+ filters.** Keywords, recipients, agencies, NAICS, PSC, amounts, dates, locations. |
| 📊 | **30+ fields per award.** Amount, dates, agencies, NAICS, PSC, recipient details. |
| 💰 | **Amount filtering.** Min/max dollar amounts for targeted searches. |
| 📋 | **All award types.** Contracts, grants, loans, direct payments, sub-awards. |
| ⚡ | **Scalable.** From single award lookups to full agency sweeps. |
| 🚫 | **No authentication.** Uses the public USAspending API. |

> 📊 USAspending.gov tracks over $6 trillion in annual federal spending. Structured access to this data powers every GovCon BD, competitive intelligence, and federal spending analysis workflow.

***

### 📈 How it compares to alternatives

| Approach | Cost | Coverage | Refresh | Filters | Setup |
|---|---|---|---|---|---|
| **⭐ USAspending Scraper** *(this Actor)* | $5 free credit, then pay-per-use | Full USAspending | **Live per run** | 15+ Advanced Search filters | ⚡ 2 min |
| USAspending.gov website | Free | Manual, limited CSV export | Manual | Advanced Search UI | 🕒 Hours per search |
| USAspending API (direct) | Free with rate limits | Full | Real-time | Many | ⏳ Hours (API client) |
| Paid GovCon databases | $500-10,000/month | Multi-source | Varies | Many | 🐢 Weeks |

Pick this Actor when you want federal spending data on demand, with all Advanced Search filters, without writing API client code.

***

### 🚀 How to use

1. 📝 **Sign up.** [Create a free account with $5 credit](https://console.apify.com/sign-up?fpr=vmoqkp) (takes 2 minutes).
2. 🌐 **Open the Actor.** Go to the USAspending Scraper page on the Apify Store.
3. 🎯 **Set input.** Enter keywords, agencies, amount ranges, and date filters.
4. 🚀 **Run it.** Click **Start** and let the Actor collect your data.
5. 📥 **Download.** Grab your results in the **Dataset** tab as CSV, Excel, JSON, or XML.

> ⏱️ Total time from signup to downloaded dataset: **3-5 minutes.** No coding required.

***

### 💼 Business use cases

<table>
<tr>
<td width="50%" valign="top">

#### 🏢 GovCon Business Development

- Track competitor contract wins by agency
- Identify recompete opportunities by end date
- Research agency spending by NAICS code
- Build BD pipeline from upcoming expirations

</td>
<td width="50%" valign="top">

#### 📊 Market Research & Analysis

- Analyze federal spending trends by sector
- Track agency budget allocation patterns
- Study small vs large business award ratios
- Build federal market sizing models

</td>
</tr>
<tr>
<td width="50%" valign="top">

#### 🏛️ Policy & Journalism

- Track federal spending by geography
- Monitor agency spending efficiency
- Analyze grant distribution patterns
- Build transparency and accountability reports

</td>
<td width="50%" valign="top">

#### 🎓 Grant Research & Academia

- Find funded research by keyword and agency
- Track NIH/NSF grant trends by institution
- Analyze funding patterns by NAICS code
- Build research funding databases

</td>
</tr>
</table>

***

***

### 🌟 Beyond business use cases

Data like this powers more than commercial workflows. The same structured records support research, education, civic projects, and personal initiatives.

<table>
<tr>
<td width="50%">

#### 🎓 Research and academia

- Empirical datasets for papers, thesis work, and coursework
- Longitudinal studies tracking changes across snapshots
- Reproducible research with cited, versioned data pulls
- Classroom exercises on data analysis and ethical scraping

</td>
<td width="50%">

#### 🎨 Personal and creative

- Side projects, portfolio demos, and indie app launches
- Data visualizations, dashboards, and infographics
- Content research for bloggers, YouTubers, and podcasters
- Hobbyist collections and personal trackers

</td>
</tr>
<tr>
<td width="50%">

#### 🤝 Non-profit and civic

- Transparency reporting and accountability projects
- Advocacy campaigns backed by public-interest data
- Community-run databases for local issues
- Investigative journalism on public records

</td>
<td width="50%">

#### 🧪 Experimentation

- Prototype AI and machine-learning pipelines with real data
- Validate product-market hypotheses before engineering spend
- Train small domain-specific models on niche corpora
- Test dashboard concepts with live input

</td>
</tr>
</table>

### 🤖 Ask an AI assistant about this scraper

Open a ready-to-send prompt about this ParseForge actor in the AI of your choice:

- 💬 [**ChatGPT**](https://chat.openai.com/?q=How%20do%20I%20use%20the%20USAspending%20Scraper%20by%20ParseForge%20on%20Apify%3F%20Show%20me%20input%20examples%2C%20output%20fields%2C%20common%20use%20cases%2C%20and%20how%20to%20integrate%20it%20into%20a%20workflow.)
- 🧠 [**Claude**](https://claude.ai/new?q=How%20do%20I%20use%20the%20USAspending%20Scraper%20by%20ParseForge%20on%20Apify%3F%20Show%20me%20input%20examples%2C%20output%20fields%2C%20common%20use%20cases%2C%20and%20how%20to%20integrate%20it%20into%20a%20workflow.)
- 🔍 [**Perplexity**](https://perplexity.ai/search?q=How%20do%20I%20use%20the%20USAspending%20Scraper%20by%20ParseForge%20on%20Apify%3F%20Show%20me%20input%20examples%2C%20output%20fields%2C%20common%20use%20cases%2C%20and%20how%20to%20integrate%20it%20into%20a%20workflow.)
- 🅒 [**Copilot**](https://copilot.microsoft.com/?q=How%20do%20I%20use%20the%20USAspending%20Scraper%20by%20ParseForge%20on%20Apify%3F%20Show%20me%20input%20examples%2C%20output%20fields%2C%20common%20use%20cases%2C%20and%20how%20to%20integrate%20it%20into%20a%20workflow.)

### ❓ Frequently Asked Questions

<details>
<summary><b>💳 Do I need a paid Apify plan to run this actor?</b></summary>

No. You can start right now on the free Apify plan, which includes **$5 in free monthly credit**. That is enough to run this actor several times and explore the output before committing to anything. Paid plans unlock higher limits, more concurrent runs, and larger datasets. [Create a free Apify account here](https://console.apify.com/sign-up?fpr=vmoqkp) to get started.

</details>

<details>
<summary><b>🚨 What happens if my run fails or returns no results?</b></summary>

Failed runs are not charged. If the source site changes, proxies get rate-limited, or a specific input matches nothing, re-run the actor or open our [contact form](https://tally.so/r/BzdKgA) and we will investigate. You can also check the run log in the Apify console to see why the run stopped.

</details>

<details>
<summary><b>📏 How many items can I scrape per run?</b></summary>

Free users are limited to **10 items per run** so you can preview the output and confirm the actor works for your use case. Paid users can raise maxItems up to **1,000,000** per run. [Upgrade here](https://console.apify.com/sign-up?fpr=vmoqkp) if you need full scale.

</details>

<details>
<summary><b>🕒 How fresh is the data?</b></summary>

Every run fetches live data at the moment of execution. There is no cache or delay: the records you get reflect what the source returned at that moment. Schedule the actor to maintain a rolling snapshot of the data you need.

</details>

<details>
<summary><b>🧑‍💻 Can I call this actor from my own code?</b></summary>

Yes. Apify exposes every actor as a REST endpoint and ships first-class SDKs for [Node.js](https://docs.apify.com/sdk/js) and [Python](https://docs.apify.com/sdk/python). You can start a run, read the dataset, and handle webhooks from your own app in a few lines. All you need is your Apify API token.

</details>

<details>
<summary><b>📤 How do I export the data?</b></summary>

Every Apify dataset can be downloaded in one click from the console as CSV, JSON, JSONL, Excel, HTML, XML, or RSS. You can also pull results programmatically via the [Apify API](https://docs.apify.com/api/v2) or stream them into BigQuery, S3, and other destinations through built-in integrations.

</details>

<details>
<summary><b>📅 Can I schedule the actor to run automatically?</b></summary>

Yes. Use the Apify scheduler to run the actor on any cadence, from hourly to monthly. Results are saved to your dataset and can be delivered to webhooks, email, Slack, cloud storage, or automation tools such as Zapier and Make.

***

</details>

### 🔌 Automating USAspending Scraper

Control the scraper programmatically for scheduled runs and pipeline integrations:

- 🟢 **Node.js.** Install the apify-client NPM package.
- 🐍 **Python.** Use the apify-client PyPI package.
- 📚 See the [Apify API documentation](https://docs.apify.com/api/v2) for full details.

The [Apify Schedules feature](https://docs.apify.com/platform/schedules) lets you trigger this Actor on any cron interval. Weekly pulls keep your federal spending database in sync.

### 🔌 Integrate with any app

USAspending Scraper connects to any cloud service via [Apify integrations](https://apify.com/integrations):

- [**Make**](https://docs.apify.com/platform/integrations/make) - Automate multi-step workflows
- [**Zapier**](https://docs.apify.com/platform/integrations/zapier) - Connect with 5,000+ apps
- [**Slack**](https://docs.apify.com/platform/integrations/slack) - Get run notifications in your channels
- [**Airbyte**](https://docs.apify.com/platform/integrations/airbyte) - Pipe federal data into your warehouse
- [**GitHub**](https://docs.apify.com/platform/integrations/github) - Trigger runs from commits and releases
- [**Google Drive**](https://docs.apify.com/platform/integrations/drive) - Export datasets straight to Sheets

You can also use webhooks to trigger downstream actions when a run finishes. Push fresh federal spending data into your BD pipeline, or alert your team in Slack.

***

### 🔗 Recommended Actors

- [**📋 GSA eLibrary Scraper**](https://apify.com/parseforge/gsa-elibrary-scraper) - GSA contract and schedule data
- [**🏦 FINRA BrokerCheck Scraper**](https://apify.com/parseforge/finra-brokercheck-scraper) - Broker regulatory data
- [**🏥 ClinicalTrials.gov Scraper**](https://apify.com/parseforge/clinicaltrials-scraper) - Clinical trial data
- [**📋 Wyoming Business Scraper**](https://apify.com/parseforge/wyoming-business-scraper) - Business entity filings
- [**🔧 CSLB California Scraper**](https://apify.com/parseforge/cslb-california-scraper) - California contractor licenses

> 💡 **Pro Tip:** browse the complete [ParseForge collection](https://apify.com/parseforge) for more government and regulatory data scrapers.

***

**🆘 Need Help?** [**Open our contact form**](https://tally.so/r/BzdKgA) to request a new scraper, propose a custom data project, or report an issue.

***

> **⚠️ Disclaimer:** this Actor is an independent tool and is not affiliated with, endorsed by, or sponsored by the U.S. Department of the Treasury or USAspending.gov. All trademarks mentioned are the property of their respective owners. Only publicly available federal spending data is collected.

# Actor input Schema

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

Matches the first Advanced Search filter. Use phrases exactly as you would in the UI (e.g., "shipbuilding", "cyber security").

## `recipients` (type: `array`):

Exactly the same box you use in Advanced Search → Recipient. Enter names, UEIs, or DUNS values—each entry should match what you would type in the UI.

## `awardId` (type: `array`):

Equivalent to the Award ID filter. Add PIIDs, FAINs, or URIs (e.g., "N0002417C2100").

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

Advanced Search → Time Period → Date Range. Enter YYYY-MM-DD (leave empty to include all data).

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

Advanced Search → Time Period → Date Range. Enter YYYY-MM-DD (leave empty to include all data).

## `awardAmountMin` (type: `number`):

Minimum award amount in dollars. Leave empty for no minimum.

## `awardAmountMax` (type: `number`):

Maximum award amount in dollars. Leave empty for no maximum.

## `locations` (type: `array`):

Matches the Recipient Location accordion. Enter country names.

## `placeOfPerformanceLocations` (type: `array`):

Same as the Place of Performance filter. Enter country names.

## `awardingAgencies` (type: `array`):

Matches the Awarding Agency tab. Enter agency names (e.g., "Department of Energy").

## `fundingAgencies` (type: `array`):

Matches the Funding Agency tab. Enter agency names (e.g., "Department of Transportation").

## `recipientType` (type: `array`):

Same as the Recipient Type multi-select. Pick one or more of the available categories.

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

Mirrors the Award Type accordion, which groups the checkboxes for Contracts, Grants, Loans, IDVs, Direct Payments, and Other Financial Assistance.

## `spendingLevel` (type: `string`):

Same toggle as the site (Awards vs Sub-Awards).

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

Use the same codes you would select in the NAICS accordion (e.g., "336411" for Aircraft Manufacturing).

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

Product and Service Codes (PSC). Use the same codes you would select in the PSC accordion (e.g., "1520" for Aircraft, Rotary Wing).

## `sort` (type: `string`):

Matches the Sort By drop-down in Advanced Search.

## `order` (type: `string`):

Asc/Desc order, just like the UI toggle.

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

Free users: Limited to 100. Paid users: Optional, max 1,000,000

## Actor input object example

```json
{
  "awardType": "contracts",
  "spendingLevel": "awards",
  "sort": "Award Amount",
  "order": "desc",
  "maxItems": 10
}
```

# Actor output Schema

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

Complete dataset with all scraped award data including financial information, recipient details, agency information, locations, classification codes, transaction history, and recipient statistics

## `overview` (type: `string`):

Overview view of awards with key fields displayed in a table format

# 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 = {
    "awardType": "contracts",
    "spendingLevel": "awards",
    "maxItems": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("parseforge/usaspending-scraper").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 = {
    "awardType": "contracts",
    "spendingLevel": "awards",
    "maxItems": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("parseforge/usaspending-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "awardType": "contracts",
  "spendingLevel": "awards",
  "maxItems": 10
}' |
apify call parseforge/usaspending-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=parseforge/usaspending-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "USAspending Scraper",
        "description": "Optimize your government spending research with USAspending's comprehensive spending analyzer. Automate the collection of federal spending data, including awards, contracts, grants and loans. Ideal for researchers, analysts, and businesses that need accurate information on government spending.",
        "version": "1.0",
        "x-build-id": "tLwwyxaDvF1RJXlNR"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/parseforge~usaspending-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-parseforge-usaspending-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/parseforge~usaspending-scraper/runs": {
            "post": {
                "operationId": "runs-sync-parseforge-usaspending-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/parseforge~usaspending-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-parseforge-usaspending-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "keywords": {
                        "title": "Keyword Search",
                        "type": "array",
                        "description": "Matches the first Advanced Search filter. Use phrases exactly as you would in the UI (e.g., \"shipbuilding\", \"cyber security\").",
                        "items": {
                            "type": "string"
                        }
                    },
                    "recipients": {
                        "title": "Recipient",
                        "type": "array",
                        "description": "Exactly the same box you use in Advanced Search → Recipient. Enter names, UEIs, or DUNS values—each entry should match what you would type in the UI.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "awardId": {
                        "title": "Award IDs",
                        "type": "array",
                        "description": "Equivalent to the Award ID filter. Add PIIDs, FAINs, or URIs (e.g., \"N0002417C2100\").",
                        "items": {
                            "type": "string"
                        }
                    },
                    "startDate": {
                        "title": "Start Date",
                        "type": "string",
                        "description": "Advanced Search → Time Period → Date Range. Enter YYYY-MM-DD (leave empty to include all data)."
                    },
                    "endDate": {
                        "title": "End Date",
                        "type": "string",
                        "description": "Advanced Search → Time Period → Date Range. Enter YYYY-MM-DD (leave empty to include all data)."
                    },
                    "awardAmountMin": {
                        "title": "Award Amount (Minimum)",
                        "minimum": 0,
                        "type": "number",
                        "description": "Minimum award amount in dollars. Leave empty for no minimum."
                    },
                    "awardAmountMax": {
                        "title": "Award Amount (Maximum)",
                        "minimum": 0,
                        "type": "number",
                        "description": "Maximum award amount in dollars. Leave empty for no maximum."
                    },
                    "locations": {
                        "title": "Recipient Location (Country)",
                        "type": "array",
                        "description": "Matches the Recipient Location accordion. Enter country names.",
                        "items": {
                            "type": "string",
                            "enum": [
                                "AFGHANISTAN",
                                "AKROTIRI",
                                "ALBANIA",
                                "ALGERIA",
                                "ANDORRA",
                                "ANGOLA",
                                "ANGUILLA",
                                "ANTARCTICA",
                                "ANTIGUA AND BARBUDA",
                                "ARGENTINA",
                                "ARMENIA",
                                "ARUBA",
                                "ASHMORE AND CARTIER ISLANDS",
                                "AUSTRALIA",
                                "AUSTRIA",
                                "AZERBAIJAN",
                                "BAHAMAS, THE",
                                "BAHRAIN",
                                "BAKER ISLAND",
                                "BANGLADESH",
                                "BARBADOS",
                                "BASSAS DA INDIA",
                                "BELARUS",
                                "BELGIUM",
                                "BELIZE",
                                "BENIN",
                                "BERMUDA",
                                "BHUTAN",
                                "BOLIVIA",
                                "BONAIRE, SINT EUSTATIUS, AND SABA",
                                "BOSNIA AND HERZEGOVINA",
                                "BOTSWANA",
                                "BOUVET ISLAND",
                                "BRAZIL",
                                "BRITISH INDIAN OCEAN TERRITORY",
                                "BRUNEI",
                                "BULGARIA",
                                "BURKINA FASO",
                                "BURMA",
                                "BURUNDI",
                                "CABO VERDE",
                                "CAMBODIA",
                                "CAMEROON",
                                "CANADA",
                                "CAYMAN ISLANDS",
                                "CENTRAL AFRICAN REPUBLIC",
                                "CHAD",
                                "CHILE",
                                "CHINA",
                                "CHRISTMAS ISLAND",
                                "CLIPPERTON ISLAND",
                                "COCOS (KEELING) ISLANDS",
                                "COLOMBIA",
                                "COMOROS",
                                "CONGO (BRAZZAVILLE)",
                                "CONGO (KINSHASA)",
                                "COOK ISLANDS",
                                "CORAL SEA ISLANDS",
                                "COSTA RICA",
                                "CROATIA",
                                "CUBA",
                                "CURAÇAO",
                                "CYPRUS",
                                "CZECH REPUBLIC",
                                "DENMARK",
                                "DHEKELIA",
                                "DIEGO GARCIA",
                                "DJIBOUTI",
                                "DOMINICA",
                                "DOMINICAN REPUBLIC",
                                "ECUADOR",
                                "EGYPT",
                                "EL SALVADOR",
                                "EQUATORIAL GUINEA",
                                "ERITREA",
                                "ESTONIA",
                                "ETHIOPIA",
                                "EUROPA ISLAND",
                                "FALKLAND ISLANDS (ISLAS MALVINAS)",
                                "FAROE ISLANDS",
                                "FIJI",
                                "FINLAND",
                                "FRANCE",
                                "FRENCH GUIANA",
                                "FRENCH POLYNESIA",
                                "FRENCH SOUTHERN AND ANTARCTIC LANDS",
                                "GABON",
                                "GAMBIA, THE",
                                "GAZA STRIP",
                                "GEORGIA",
                                "GERMANY",
                                "GHANA",
                                "GIBRALTAR",
                                "GLORIOSO ISLANDS",
                                "GREECE",
                                "GREENLAND",
                                "GRENADA",
                                "GUADELOUPE",
                                "GUANTANAMO BAY NAVAL BASE",
                                "GUATEMALA",
                                "GUERNSEY",
                                "GUINEA",
                                "GUINEA-BISSAU",
                                "GUYANA",
                                "HAITI",
                                "HEARD ISLAND AND MCDONALD ISLANDS",
                                "HONDURAS",
                                "HONG KONG",
                                "HOWLAND ISLAND",
                                "HUNGARY",
                                "ICELAND",
                                "INDIA",
                                "INDONESIA",
                                "IRAN",
                                "IRAQ",
                                "IRELAND",
                                "ISLE OF MAN",
                                "ISRAEL",
                                "ITALY",
                                "JAMAICA",
                                "JAN MAYEN",
                                "JAPAN",
                                "JARVIS ISLAND",
                                "JERSEY",
                                "JOHNSTON ATOLL",
                                "JORDAN",
                                "JUAN DE NOVA ISLAND",
                                "KAZAKHSTAN",
                                "KENYA",
                                "KINGMAN REEF",
                                "KIRIBATI",
                                "KOREA, NORTH",
                                "KOREA, SOUTH",
                                "KOSOVO",
                                "KUWAIT",
                                "KYRGYZSTAN",
                                "LAOS",
                                "LATVIA",
                                "LEBANON",
                                "LESOTHO",
                                "LIBERIA",
                                "LIBYA",
                                "LIECHTENSTEIN",
                                "LITHUANIA",
                                "LUXEMBOURG",
                                "MACAU",
                                "MACEDONIA",
                                "MADAGASCAR",
                                "MALAWI",
                                "MALAYSIA",
                                "MALDIVES",
                                "MALI",
                                "MALTA",
                                "MARTINIQUE",
                                "MAURITANIA",
                                "MAURITIUS",
                                "MAYOTTE",
                                "MEXICO",
                                "MIDWAY ISLANDS",
                                "MOLDOVA",
                                "MONACO",
                                "MONGOLIA",
                                "MONTENEGRO",
                                "MONTSERRAT",
                                "MOROCCO",
                                "MOZAMBIQUE",
                                "NAMIBIA",
                                "NAURU",
                                "NAVASSA ISLAND",
                                "NEPAL",
                                "NETHERLANDS",
                                "NEW CALEDONIA",
                                "NEW ZEALAND",
                                "NICARAGUA",
                                "NIGER",
                                "NIGERIA",
                                "NIUE",
                                "NORFOLK ISLAND",
                                "NORWAY",
                                "OMAN",
                                "PAKISTAN",
                                "PALESTINE, STATE OF",
                                "PALMYRA ATOLL",
                                "PANAMA",
                                "PAPUA NEW GUINEA",
                                "PARACEL ISLANDS",
                                "PARAGUAY",
                                "PERU",
                                "PHILIPPINES",
                                "PITCAIRN ISLANDS",
                                "POLAND",
                                "PORTUGAL",
                                "QATAR",
                                "REUNION",
                                "ROMANIA",
                                "RUSSIA",
                                "RWANDA",
                                "SAINT BARTHELEMY",
                                "SAINT HELENA, ASCENSION, AND TRISTAN DA CUNHA",
                                "SAINT KITTS AND NEVIS",
                                "SAINT LUCIA",
                                "SAINT MARTIN",
                                "SAINT PIERRE AND MIQUELON",
                                "SAINT VINCENT AND THE GRENADINES",
                                "SAMOA",
                                "SAN MARINO",
                                "SAO TOME AND PRINCIPE",
                                "SAUDI ARABIA",
                                "SENEGAL",
                                "SERBIA",
                                "SEYCHELLES",
                                "SIERRA LEONE",
                                "SINGAPORE",
                                "SINT MAARTEN",
                                "SLOVAKIA",
                                "SLOVENIA",
                                "SOLOMON ISLANDS",
                                "SOMALIA",
                                "SOUTH AFRICA",
                                "SOUTH GEORGIA AND SOUTH SANDWICH ISLANDS",
                                "SOUTH SUDAN",
                                "SPAIN",
                                "SPRATLY ISLANDS",
                                "SRI LANKA",
                                "SUDAN",
                                "SURINAME",
                                "SVALBARD",
                                "SWAZILAND",
                                "SWEDEN",
                                "SWITZERLAND",
                                "SYRIA",
                                "TAIWAN",
                                "TAJIKISTAN",
                                "TANZANIA",
                                "THAILAND",
                                "TIMOR-LESTE",
                                "TOGO",
                                "TOKELAU",
                                "TONGA",
                                "TRINIDAD AND TOBAGO",
                                "TROMELIN ISLAND",
                                "TUNISIA",
                                "TURKEY",
                                "TURKMENISTAN",
                                "TURKS AND CAICOS ISLANDS",
                                "TUVALU",
                                "UGANDA",
                                "UKRAINE",
                                "UNITED ARAB EMIRATES",
                                "UNITED KINGDOM",
                                "UNKNOWN",
                                "URUGUAY",
                                "UZBEKISTAN",
                                "VANUATU",
                                "VATICAN CITY",
                                "VENEZUELA",
                                "VIETNAM",
                                "VIRGIN ISLANDS, BRITISH",
                                "WAKE ISLAND",
                                "WALLIS AND FUTUNA",
                                "WEST BANK",
                                "WESTERN SAHARA",
                                "YEMEN",
                                "ZAMBIA",
                                "ZIMBABWE"
                            ]
                        }
                    },
                    "placeOfPerformanceLocations": {
                        "title": "Place of Performance (Country)",
                        "type": "array",
                        "description": "Same as the Place of Performance filter. Enter country names.",
                        "items": {
                            "type": "string",
                            "enum": [
                                "AFGHANISTAN",
                                "AKROTIRI",
                                "ALBANIA",
                                "ALGERIA",
                                "ANDORRA",
                                "ANGOLA",
                                "ANGUILLA",
                                "ANTARCTICA",
                                "ANTIGUA AND BARBUDA",
                                "ARGENTINA",
                                "ARMENIA",
                                "ARUBA",
                                "ASHMORE AND CARTIER ISLANDS",
                                "AUSTRALIA",
                                "AUSTRIA",
                                "AZERBAIJAN",
                                "BAHAMAS, THE",
                                "BAHRAIN",
                                "BAKER ISLAND",
                                "BANGLADESH",
                                "BARBADOS",
                                "BASSAS DA INDIA",
                                "BELARUS",
                                "BELGIUM",
                                "BELIZE",
                                "BENIN",
                                "BERMUDA",
                                "BHUTAN",
                                "BOLIVIA",
                                "BONAIRE, SINT EUSTATIUS, AND SABA",
                                "BOSNIA AND HERZEGOVINA",
                                "BOTSWANA",
                                "BOUVET ISLAND",
                                "BRAZIL",
                                "BRITISH INDIAN OCEAN TERRITORY",
                                "BRUNEI",
                                "BULGARIA",
                                "BURKINA FASO",
                                "BURMA",
                                "BURUNDI",
                                "CABO VERDE",
                                "CAMBODIA",
                                "CAMEROON",
                                "CANADA",
                                "CAYMAN ISLANDS",
                                "CENTRAL AFRICAN REPUBLIC",
                                "CHAD",
                                "CHILE",
                                "CHINA",
                                "CHRISTMAS ISLAND",
                                "CLIPPERTON ISLAND",
                                "COCOS (KEELING) ISLANDS",
                                "COLOMBIA",
                                "COMOROS",
                                "CONGO (BRAZZAVILLE)",
                                "CONGO (KINSHASA)",
                                "COOK ISLANDS",
                                "CORAL SEA ISLANDS",
                                "COSTA RICA",
                                "CROATIA",
                                "CUBA",
                                "CURAÇAO",
                                "CYPRUS",
                                "CZECH REPUBLIC",
                                "DENMARK",
                                "DHEKELIA",
                                "DIEGO GARCIA",
                                "DJIBOUTI",
                                "DOMINICA",
                                "DOMINICAN REPUBLIC",
                                "ECUADOR",
                                "EGYPT",
                                "EL SALVADOR",
                                "EQUATORIAL GUINEA",
                                "ERITREA",
                                "ESTONIA",
                                "ETHIOPIA",
                                "EUROPA ISLAND",
                                "FALKLAND ISLANDS (ISLAS MALVINAS)",
                                "FAROE ISLANDS",
                                "FIJI",
                                "FINLAND",
                                "FRANCE",
                                "FRENCH GUIANA",
                                "FRENCH POLYNESIA",
                                "FRENCH SOUTHERN AND ANTARCTIC LANDS",
                                "GABON",
                                "GAMBIA, THE",
                                "GAZA STRIP",
                                "GEORGIA",
                                "GERMANY",
                                "GHANA",
                                "GIBRALTAR",
                                "GLORIOSO ISLANDS",
                                "GREECE",
                                "GREENLAND",
                                "GRENADA",
                                "GUADELOUPE",
                                "GUANTANAMO BAY NAVAL BASE",
                                "GUATEMALA",
                                "GUERNSEY",
                                "GUINEA",
                                "GUINEA-BISSAU",
                                "GUYANA",
                                "HAITI",
                                "HEARD ISLAND AND MCDONALD ISLANDS",
                                "HONDURAS",
                                "HONG KONG",
                                "HOWLAND ISLAND",
                                "HUNGARY",
                                "ICELAND",
                                "INDIA",
                                "INDONESIA",
                                "IRAN",
                                "IRAQ",
                                "IRELAND",
                                "ISLE OF MAN",
                                "ISRAEL",
                                "ITALY",
                                "JAMAICA",
                                "JAN MAYEN",
                                "JAPAN",
                                "JARVIS ISLAND",
                                "JERSEY",
                                "JOHNSTON ATOLL",
                                "JORDAN",
                                "JUAN DE NOVA ISLAND",
                                "KAZAKHSTAN",
                                "KENYA",
                                "KINGMAN REEF",
                                "KIRIBATI",
                                "KOREA, NORTH",
                                "KOREA, SOUTH",
                                "KOSOVO",
                                "KUWAIT",
                                "KYRGYZSTAN",
                                "LAOS",
                                "LATVIA",
                                "LEBANON",
                                "LESOTHO",
                                "LIBERIA",
                                "LIBYA",
                                "LIECHTENSTEIN",
                                "LITHUANIA",
                                "LUXEMBOURG",
                                "MACAU",
                                "MACEDONIA",
                                "MADAGASCAR",
                                "MALAWI",
                                "MALAYSIA",
                                "MALDIVES",
                                "MALI",
                                "MALTA",
                                "MARTINIQUE",
                                "MAURITANIA",
                                "MAURITIUS",
                                "MAYOTTE",
                                "MEXICO",
                                "MIDWAY ISLANDS",
                                "MOLDOVA",
                                "MONACO",
                                "MONGOLIA",
                                "MONTENEGRO",
                                "MONTSERRAT",
                                "MOROCCO",
                                "MOZAMBIQUE",
                                "NAMIBIA",
                                "NAURU",
                                "NAVASSA ISLAND",
                                "NEPAL",
                                "NETHERLANDS",
                                "NEW CALEDONIA",
                                "NEW ZEALAND",
                                "NICARAGUA",
                                "NIGER",
                                "NIGERIA",
                                "NIUE",
                                "NORFOLK ISLAND",
                                "NORWAY",
                                "OMAN",
                                "PAKISTAN",
                                "PALESTINE, STATE OF",
                                "PALMYRA ATOLL",
                                "PANAMA",
                                "PAPUA NEW GUINEA",
                                "PARACEL ISLANDS",
                                "PARAGUAY",
                                "PERU",
                                "PHILIPPINES",
                                "PITCAIRN ISLANDS",
                                "POLAND",
                                "PORTUGAL",
                                "QATAR",
                                "REUNION",
                                "ROMANIA",
                                "RUSSIA",
                                "RWANDA",
                                "SAINT BARTHELEMY",
                                "SAINT HELENA, ASCENSION, AND TRISTAN DA CUNHA",
                                "SAINT KITTS AND NEVIS",
                                "SAINT LUCIA",
                                "SAINT MARTIN",
                                "SAINT PIERRE AND MIQUELON",
                                "SAINT VINCENT AND THE GRENADINES",
                                "SAMOA",
                                "SAN MARINO",
                                "SAO TOME AND PRINCIPE",
                                "SAUDI ARABIA",
                                "SENEGAL",
                                "SERBIA",
                                "SEYCHELLES",
                                "SIERRA LEONE",
                                "SINGAPORE",
                                "SINT MAARTEN",
                                "SLOVAKIA",
                                "SLOVENIA",
                                "SOLOMON ISLANDS",
                                "SOMALIA",
                                "SOUTH AFRICA",
                                "SOUTH GEORGIA AND SOUTH SANDWICH ISLANDS",
                                "SOUTH SUDAN",
                                "SPAIN",
                                "SPRATLY ISLANDS",
                                "SRI LANKA",
                                "SUDAN",
                                "SURINAME",
                                "SVALBARD",
                                "SWAZILAND",
                                "SWEDEN",
                                "SWITZERLAND",
                                "SYRIA",
                                "TAIWAN",
                                "TAJIKISTAN",
                                "TANZANIA",
                                "THAILAND",
                                "TIMOR-LESTE",
                                "TOGO",
                                "TOKELAU",
                                "TONGA",
                                "TRINIDAD AND TOBAGO",
                                "TROMELIN ISLAND",
                                "TUNISIA",
                                "TURKEY",
                                "TURKMENISTAN",
                                "TURKS AND CAICOS ISLANDS",
                                "TUVALU",
                                "UGANDA",
                                "UKRAINE",
                                "UNITED ARAB EMIRATES",
                                "UNITED KINGDOM",
                                "UNKNOWN",
                                "URUGUAY",
                                "UZBEKISTAN",
                                "VANUATU",
                                "VATICAN CITY",
                                "VENEZUELA",
                                "VIETNAM",
                                "VIRGIN ISLANDS, BRITISH",
                                "WAKE ISLAND",
                                "WALLIS AND FUTUNA",
                                "WEST BANK",
                                "WESTERN SAHARA",
                                "YEMEN",
                                "ZAMBIA",
                                "ZIMBABWE"
                            ]
                        }
                    },
                    "awardingAgencies": {
                        "title": "Awarding Agencies",
                        "type": "array",
                        "description": "Matches the Awarding Agency tab. Enter agency names (e.g., \"Department of Energy\").",
                        "items": {
                            "type": "string"
                        }
                    },
                    "fundingAgencies": {
                        "title": "Funding Agencies",
                        "type": "array",
                        "description": "Matches the Funding Agency tab. Enter agency names (e.g., \"Department of Transportation\").",
                        "items": {
                            "type": "string"
                        }
                    },
                    "recipientType": {
                        "title": "Recipient Type",
                        "type": "array",
                        "description": "Same as the Recipient Type multi-select. Pick one or more of the available categories.",
                        "items": {
                            "type": "string",
                            "enum": [
                                "Business",
                                "Small Business",
                                "Other Than Small Business",
                                "Corporate Entity Tax Exempt",
                                "Corporate Entity Not Tax Exempt",
                                "Partnership or Limited Liability Partnership",
                                "Sole Proprietorship",
                                "Manufacturer of Goods",
                                "Sub-Chapter S Corporation",
                                "Limited Liability Corporation (LLC)",
                                "Minority Owned Business",
                                "Alaskan Native Corporation Owned Firm",
                                "American Indian Owned Business",
                                "Asian Pacific American Owned Business",
                                "Black American Owned Business",
                                "Hispanic American Owned Business",
                                "Native American Owned Business",
                                "Native Hawaiian Organization Owned Firm",
                                "Subcontinent Asian Indian American Owned Business",
                                "Tribally Owned Firm",
                                "Other Minority Owned Business",
                                "Women Owned Business",
                                "Women Owned Small Business",
                                "Economically Disadvantaged Women Owned Small Business",
                                "Joint Venture Women Owned Small Business",
                                "Joint Venture Economically Disadvantaged Women Owned Small Business",
                                "Veteran Owned Business",
                                "Service Disabled Veteran Owned Business",
                                "Special Designations",
                                "8a Program Participant",
                                "Ability One Program",
                                "DoT Certified Disadvantaged Business Enterprise",
                                "Emerging Small Business",
                                "Federally Funded Research and Development Corp",
                                "Historically Underutilized Business (HUBZone) Firm",
                                "Labor Surplus Area Firm",
                                "SBA Certified 8a Joint Venture",
                                "Self-Certified Small Disadvantaged Business",
                                "Small Agricultural Cooperative",
                                "Community Developed Corporation Owned Firm",
                                "U.S. Owned Business",
                                "Foreign-Owned and U.S. Located Business",
                                "Foreign Owned",
                                "Foreign Government",
                                "International Organization",
                                "Domestic Shelter",
                                "Hospital",
                                "Veterinary Hospital",
                                "Nonprofit",
                                "Foundation",
                                "Community Development Corporations",
                                "Higher Education",
                                "Public Institution of Higher Education",
                                "Private Institution of Higher Education",
                                "Minority-Serving Institution of Higher Education",
                                "School of Forestry",
                                "Veterinary College",
                                "Government",
                                "National Government",
                                "Interstate Entity",
                                "Regional and State Government",
                                "Regional Organization",
                                "U.S. Territory or Possession",
                                "Council of Governments",
                                "Local Government",
                                "Indian Native American Tribal Government",
                                "Authorities and Commissions",
                                "Individuals"
                            ],
                            "enumTitles": [
                                "Business",
                                "Small Business",
                                "Other Than Small Business",
                                "Corporate Entity Tax Exempt",
                                "Corporate Entity Not Tax Exempt",
                                "Partnership or Limited Liability Partnership",
                                "Sole Proprietorship",
                                "Manufacturer of Goods",
                                "Sub-Chapter S Corporation",
                                "Limited Liability Corporation (LLC)",
                                "Minority Owned Business",
                                "Alaskan Native Corporation Owned Firm",
                                "American Indian Owned Business",
                                "Asian Pacific American Owned Business",
                                "Black American Owned Business",
                                "Hispanic American Owned Business",
                                "Native American Owned Business",
                                "Native Hawaiian Organization Owned Firm",
                                "Subcontinent Asian Indian American Owned Business",
                                "Tribally Owned Firm",
                                "Other Minority Owned Business",
                                "Women Owned Business",
                                "Women Owned Small Business",
                                "Economically Disadvantaged Women Owned Small Business",
                                "Joint Venture Women Owned Small Business",
                                "Joint Venture Economically Disadvantaged Women Owned Small Business",
                                "Veteran Owned Business",
                                "Service Disabled Veteran Owned Business",
                                "Special Designations",
                                "8a Program Participant",
                                "Ability One Program",
                                "DoT Certified Disadvantaged Business Enterprise",
                                "Emerging Small Business",
                                "Federally Funded Research and Development Corp",
                                "Historically Underutilized Business (HUBZone) Firm",
                                "Labor Surplus Area Firm",
                                "SBA Certified 8a Joint Venture",
                                "Self-Certified Small Disadvantaged Business",
                                "Small Agricultural Cooperative",
                                "Community Developed Corporation Owned Firm",
                                "U.S. Owned Business",
                                "Foreign-Owned and U.S. Located Business",
                                "Foreign Owned",
                                "Foreign Government",
                                "International Organization",
                                "Domestic Shelter",
                                "Hospital",
                                "Veterinary Hospital",
                                "Nonprofit",
                                "Foundation",
                                "Community Development Corporations",
                                "Higher Education",
                                "Public Institution of Higher Education",
                                "Private Institution of Higher Education",
                                "Minority-Serving Institution of Higher Education",
                                "School of Forestry",
                                "Veterinary College",
                                "Government",
                                "National Government",
                                "Interstate Entity",
                                "Regional and State Government",
                                "Regional Organization",
                                "U.S. Territory or Possession",
                                "Council of Governments",
                                "Local Government",
                                "Indian Native American Tribal Government",
                                "Authorities and Commissions",
                                "Individuals"
                            ]
                        }
                    },
                    "awardType": {
                        "title": "Award Type",
                        "enum": [
                            "contracts",
                            "grants",
                            "loans",
                            "idvs",
                            "direct_payments",
                            "other_financial_assistance"
                        ],
                        "type": "string",
                        "description": "Mirrors the Award Type accordion, which groups the checkboxes for Contracts, Grants, Loans, IDVs, Direct Payments, and Other Financial Assistance.",
                        "default": "contracts"
                    },
                    "spendingLevel": {
                        "title": "Spending Level",
                        "enum": [
                            "awards",
                            "subawards"
                        ],
                        "type": "string",
                        "description": "Same toggle as the site (Awards vs Sub-Awards).",
                        "default": "awards"
                    },
                    "naicsCodes": {
                        "title": "NAICS Codes",
                        "type": "array",
                        "description": "Use the same codes you would select in the NAICS accordion (e.g., \"336411\" for Aircraft Manufacturing).",
                        "items": {
                            "type": "string"
                        }
                    },
                    "pscCodes": {
                        "title": "PSC Codes",
                        "type": "array",
                        "description": "Product and Service Codes (PSC). Use the same codes you would select in the PSC accordion (e.g., \"1520\" for Aircraft, Rotary Wing).",
                        "items": {
                            "type": "string"
                        }
                    },
                    "sort": {
                        "title": "Sort Field",
                        "enum": [
                            "Award Amount",
                            "Total Outlays",
                            "Start Date",
                            "End Date",
                            "Recipient Name",
                            "Award ID",
                            "Awarding Agency",
                            "Awarding Sub Agency",
                            "Description",
                            "Recipient Location",
                            "Primary Place of Performance",
                            "NAICS",
                            "PSC"
                        ],
                        "type": "string",
                        "description": "Matches the Sort By drop-down in Advanced Search.",
                        "default": "Award Amount"
                    },
                    "order": {
                        "title": "Sort Order",
                        "enum": [
                            "asc",
                            "desc"
                        ],
                        "type": "string",
                        "description": "Asc/Desc order, just like the UI toggle.",
                        "default": "desc"
                    },
                    "maxItems": {
                        "title": "Max Items",
                        "minimum": 1,
                        "maximum": 1000000,
                        "type": "integer",
                        "description": "Free users: Limited to 100. Paid users: Optional, max 1,000,000"
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
