# Us Fpds Federal Contracts Scraper (`zerobreak/us-fpds-federal-contracts-scraper`) Actor

This Actor collects public US federal contract award records from the Federal Procurement Data System (FPDS). It extracts procurement identifiers, contracting agencies, vendor names, obligated amounts, PSC codes, action types, and key dates to support bid tracking, spend analysis,and market research

- **URL**: https://apify.com/zerobreak/us-fpds-federal-contracts-scraper.md
- **Developed by:** [ZeroBreak](https://apify.com/zerobreak) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.99 / 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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## US FPDS Federal Contracts Scraper

![US FPDS Federal Contracts Scraper cover](https://images.bigibyte.com/cdn-cgi/image/width=1260,height=540,fit=cover,format=webp/apify-actors-covers/us-fpds-federal-contracts-scraper-cover.png)

### US FPDS Federal Contracts Scraper — US Government Contract Awards

Collect public US federal contract award records from the Federal Procurement Data System (FPDS). Search using keywords or field-specific filters, control the number of records collected, and export structured contract information for procurement research, vendor analysis, and award monitoring.

### What This Actor Does

This actor collects federal contract action records and organizes them into structured dataset entries.

Each record can include the contract award title, HTML link, awarding agency ID, Procurement Instrument Identifier (PIID), signed date, obligated amount, Product or Service Code (PSC), and vendor name.

The actor supports keyword-based and field-specific searches, removes duplicate records, and adds a collection timestamp to each result.

### Features

- Search public federal contract award records.
- Use keywords or field-specific search filters.
- Collect contract award titles and record links.
- Retrieve awarding agency IDs and PIIDs.
- Extract contract signed dates and modification timestamps.
- Collect obligated amounts.
- Retrieve Product or Service Codes (PSC).
- Identify vendors and awardees.
- Avoid duplicate contract records.
- Set a maximum number of records per run.
- Export results in JSON, CSV, Excel, and other supported dataset formats.

### Collection Mode

**Contract Award Search (`search`)**

Search FPDS contract actions using keywords or field-specific filters.

Examples:

- `software` — search for software-related contract actions.
- `VENDOR_NAME:"SOFTWARE AG"` — search using a vendor name.

### Input Parameters

| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| `mode` | String | No | `search` | Selects the contract award search mode. |
| `query` | String | No | `software` | Search query using keywords or field-specific filters. |
| `maxItems` | Integer | No | `100` | Maximum number of contract records to collect. Maximum: 1000. |
| `requestDelayMs` | Integer | No | `1000` | Delay between requests, in milliseconds. |

### Example Input

**Keyword Search**

```json
{
    "mode": "search",
    "query": "software",
    "maxItems": 50,
    "requestDelayMs": 1000
}
```

**Field-Specific Search**

```json
{
    "mode": "search",
    "query": "VENDOR_NAME:\"SOFTWARE AG\"",
    "maxItems": 25
}
```

### What Data Does This Actor Extract?

| Field | Description |
|---|---|
| `entryTitle` | Contract award title from the feed. |
| `link` | HTML link to the contract award record. |
| `modified` | Last modified timestamp of the feed entry. |
| `agencyID` | Awarding agency identification number. |
| `PIID` | Procurement Instrument Identifier for the contract action. |
| `signedDate` | Date the contract action was signed. |
| `obligatedAmount` | Amount obligated for the contract action. |
| `productOrServiceCode` | Product or Service Code (PSC) associated with the award. |
| `vendorName` | Vendor or awardee name. |
| `scrapedAt` | Date and time when the record was collected. |

### Example Output

```json
{
    "entryTitle": "New DEFINITIVE CONTRACT 00001199309DAC0193AD33613 awarded to INTERACTIVE SOFTWARE for the amount of $98,000",
    "link": "https://www.fpds.gov/ezsearch/search.do?s=FPDS&indexName=awardfull&templateName=1.5.3&q=00001199309DAC0193AD33613+8900+",
    "modified": "2006-08-18 18:23:03",
    "agencyID": "8900",
    "PIID": "00001199309DAC0193AD33613",
    "signedDate": "1993-09-15 00:00:00",
    "obligatedAmount": "98000.00",
    "productOrServiceCode": "7030",
    "vendorName": "INTERACTIVE SOFTWARE",
    "scrapedAt": "2026-10-26T00:00:00+00:00"
}
```

### Use Cases

- **Procurement Research:** Find federal contract actions related to specific industries, vendors, or agencies.
- **Award Monitoring:** Track contract awards and identify new PIIDs matching a search query.
- **Vendor Research:** Analyze vendor participation in federal procurement.
- **Competitive Intelligence:** Review obligated amounts and PSC classifications across contract awards.
- **Market Analysis:** Explore government spending activity within selected industries.
- **Data Pipelines:** Export structured contract records for dashboards, reporting, and business intelligence workflows.

### Working with Your Dataset

After the actor completes a run, open the dataset to review the collected contract records.

You can export your results in supported formats, including:

- JSON
- CSV
- Excel

Use these exports to analyze federal contract awards, compare vendor activity, and organize procurement research.

### FAQ

**Who is this actor for?**

It is designed for procurement analysts, government contractors, researchers, vendors, and businesses interested in US federal contract awards.

**Can I search for a specific vendor?**

Yes. Use a field-specific query such as `VENDOR_NAME:"SOFTWARE AG"` to search by vendor name.

**Can I search using regular keywords?**

Yes. Enter a keyword such as `software` in the `query` input.

**How many contract records can it collect per run?**

You can collect up to 1000 records per run using `maxItems`. The default is 100.

**Can I schedule recurring collections?**

Yes. You can use Apify Schedules to run the actor automatically at your preferred intervals.

**What export formats are supported?**

You can export your dataset in JSON, CSV, Excel, and other supported Apify dataset formats.

### Disclaimer

This actor is an independent tool and is not affiliated with, endorsed by, sponsored by, or otherwise officially associated with FPDS or its owners. It collects publicly available contract information. Users are responsible for ensuring that their use of collected data complies with applicable terms, attribution requirements, and laws.

### Is Web Scraping Legal?

Collecting information that is already public is generally legal. There is no single law that bans all forms of web scraping. The limits are the usual ones: do not break into accounts, do not take private or confidential data, and be careful with personal data and copyrighted works. A site's terms can also restrict how you access it. Facts such as a public name, price, or rating are not the same as republishing someone's article or photo.

This actor collects information from public pages. It does not log in and it does not bypass access controls.

For a longer explanation, see Apify's article [Is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/).

# Actor input Schema

## `mode` (type: `string`):

What to scrape. search reads the public FPDS ATOM feed for an ezSearch query.

## `query` (type: `string`):

ezSearch query (e.g. VENDOR_NAME:"X" or keywords like software).

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

Stop after this many successful rows. Hard max is 1000.

## `userAgent` (type: `string`):

User-Agent header sent with each request.

## `requestDelayMs` (type: `integer`):

Milliseconds to wait between paginated ATOM requests.

## `timeoutSecs` (type: `integer`):

Overall run budget in seconds.

## `requestTimeoutSecs` (type: `integer`):

Per-request timeout in seconds.

## `proxyConfiguration` (type: `object`):

Optional proxy. Leave off unless FPDS blocks your IP.

## Actor input object example

```json
{
  "mode": "search",
  "query": "software",
  "maxItems": 100,
  "userAgent": "ActorResearch/1.0",
  "requestDelayMs": 1000,
  "timeoutSecs": 300,
  "requestTimeoutSecs": 30,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

Dataset rows in the overview table.

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

Full dataset for this run.

## `items` (type: `string`):

Dataset items as JSON.

# 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 = {
    "query": "software"
};

// Run the Actor and wait for it to finish
const run = await client.actor("zerobreak/us-fpds-federal-contracts-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 = { "query": "software" }

# Run the Actor and wait for it to finish
run = client.actor("zerobreak/us-fpds-federal-contracts-scraper").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 '{
  "query": "software"
}' |
apify call zerobreak/us-fpds-federal-contracts-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,zerobreak/us-fpds-federal-contracts-scraper"
        }
    }
}
```

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/3MZzpyNJy2q8XNevh/builds/f1YRr1RMc15sc8IhI/openapi.json
