# Federal Register and USAspending Contract Awards (`plain-build/federal-register-usaspending-scraper`) Actor

Federal Register rules, notices and presidential documents by agency and date, plus USAspending contract awards (add usaspending to Sources), 10 newest documents by default. Each row has record type, agency, title, award amount, recipient, place of performance. No keyword or NAICS filter, no key.

- **URL**: https://apify.com/plain-build/federal-register-usaspending-scraper.md
- **Developed by:** [Plain Build](https://apify.com/plain-build) (community)
- **Categories:** News, Developer tools
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.28 / 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

## Federal Register and USAspending Contract Awards

### What it does

Federal Register rules, notices and presidential documents by agency and date, plus USAspending contract awards by signing date (add usaspending to Sources). Columns: record_type, agency, title, award_amount, recipient_organisation, place_of_performance. No keyword or NAICS filter, no key.

The data comes from Federal Register and USAspending through their official APIs (https://www.federalregister.gov/developers/documentation/api/v1). This Actor is not affiliated with, endorsed by or sponsored by Federal Register and USAspending. It reads only those APIs, at most 2 requests at a time, and it checks robots.txt before the first request to each host.

### Who it is for

- Business-development and capture people at government-contracting firms: with Sources set to usaspending, see which businesses won federal contracts in the last days, for how much and from which agency, then filter the table yourself.
- Compliance and policy analysts: pull new rules, proposed rules and notices from the agencies they track on a schedule.
- Journalists and researchers: one table of rulemaking and contract awards for the same dates, with a link to every record.
- Developers building alerts or dashboards: JSON rows with stable fields (record_type, source_id, url) from two APIs, no key to manage.

### How it works

The Actor calls two official public APIs. From the Federal Register it reads documents, 1,000 a page, filtered by agency and publication date. From USAspending it reads contract awards to organisations signed in the same date window, newest first, from all agencies: the agencies input filters only the Federal Register. Awards to individuals and documents about one person are left out. Award texts are cleaned the same way as all free text. When both sources are chosen and `max_items` is lower than the records found, the two sources share it equally. When an API returns its maximum number of records, the Actor writes an uncharged error item that says to narrow the dates, and for the Federal Register the agencies.

### How to try it

1. Open the Input tab. The prefilled input returns the first 25 Environmental Protection Agency documents of the last 7 days.
2. Click Start. A run usually finishes in under a minute.
3. Open the Output tab to see the results as a table, or export them as JSON, CSV or Excel.

To follow new records, schedule a daily run with `new_since_last_run` on and `published_after` empty. A record held back by `max_items` or your spending limit comes in the next run.

- Each combination of `sources` and `agencies` has its own memory.
- Turn the option off to get everything again. Once you have used the option, a run with it off is remembered too.
- The memory is a key-value store named `federal-register-usaspending-scraper-state` in your account. Delete it to start again.
- Two runs at the same time can deliver and charge the same record, so leave a gap between scheduled runs.

Each API returns at most 10,000 records for one search. A wider search ends with a `result_cap` item in the errors dataset: narrow the dates, or for the Federal Register the agencies. USAspending ignores the agencies, so for awards only a shorter date window helps.

An agency slug the Federal Register does not know fails the run after one request with `Invalid input` and one uncharged `unknown_agency` item; the slugs are the last part of the agency's address on federalregister.gov/agencies. Another search the Federal Register refuses fails the same way with a `bad_request` item.

With both sources, `max_items` and your spending limit are shared: one document, then one award, in turn. The records appear when both sources have answered. A run you abort before that delivers and charges nothing; a run near its timeout stops fetching and delivers what it has.

USAspending results are contracts signed in the date window, newest first. An award reported to USAspending more than 7 days after signing is not delivered by a daily run. `last_modified_at` is the date the award's record last changed at USAspending, for following changes to awards you already have. A new award's page on usaspending.gov can show "No Award found" for a day or more after the search lists it.

Defense Department contracts reach USAspending about 3 months after signing. A daily run looks at the last 7 days, so it misses most of them. They were 60 to 70% of new contracts signed in June and July 2026.

USAspending results are contracts to organisations: a recipient is delivered only when its name says it is one. A name that ends in a legal form such as Inc, LLC, JV or S.p.A. counts as an organisation, also when the company is named after its founder, unless it is a trading-as name. A two-letter form that can also be part of a name, such as SA, CO or PA, counts only with its dots (S.A.) or after a comma or "&". Other names that read as a person's, and some real organisations without such a word, are left out, uncharged. A run that leaves awards out writes one uncharged `dropped` item with their count, without names. Federal Register documents about one named person are left out too. This is not an official legal edition of the Federal Register.

The name check uses derived data, not official statistics: Statistics Norway (SSB) table 10501 and the Finnish Digital and Population Data Services Agency (DVV) first names, both CC BY 4.0, and Czech Statistical Office data, plus hand-written names.

### How much it costs

You pay per result delivered to the default dataset. Errors and empty results are written to a separate `errors` dataset and are never charged.

| Plan tier | Price per 1,000 results |
|---|---|
| Free and Bronze | USD 1.50 |
| Silver and above | USD 1.28 |

Example: a run that delivers 1,000 results costs USD 1.50 on the Free and Bronze tiers and USD 1.28 on Silver and above, plus the platform's start event of USD 0.00005. If you set a maximum cost per run, the Actor stops before it would go over it and delivers nothing it cannot charge for.

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `sources` | array | \[] | federal_register, usaspending or both. Leave empty for the Federal Register only. |
| `agencies` | array | \[] | Agency slugs as in the Federal Register address, for example environmental-protection-agency. Leave empty for all agencies. USAspending ignores this. |
| `published_after` | string | "" | Date as YYYY-MM-DD. Documents by publication date, awards by signing date. Leave empty for the last 7 days. |
| `new_since_last_run` | boolean | false | Deliver and charge only records this Actor has not delivered to you before for the same sources and agencies. A record held back by Maximum results or your spending limit comes in the next run. Delivered records are remembered in a key-value store named federal-register-usaspending-scraper-state in your account. |
| `max_items` | integer | 10 | How many results to return at most, from 1 to 10000. |

### Output

Each result has these fields. Missing values are `null`, never a different type.

| Field | Type | Description |
|---|---|---|
| `item_type` | string | Always `public_record` |
| `source_id` | string | fr: and the document number, or award: and the award's id |
| `record_type` | string | federal_register_document or usaspending_award |
| `agency` | string or null | Agency, comma separated when there are several |
| `document_type` | string or null | Document type or contract award type |
| `title` | string or null | Document title or award description |
| `docket` | string or null | Docket ids, comma separated |
| `published_at` | string or null | Publication date of a document, or signing date of the base award, YYYY-MM-DD. Awards are selected by it |
| `start_date` | string or null | Award start date, YYYY-MM-DD. It can be in the future |
| `end_date` | string or null | Award end date, YYYY-MM-DD |
| `last_modified_at` | string or null | Date the award's record last changed at USAspending, YYYY-MM-DD |
| `url` | string | The record on its official site |
| `abstract_snippet` | string or null | The first 300 characters of the abstract. Null when the document has none: about a third of Notices have no abstract |
| `recipient_organisation` | string or null | The organisation that received the award |
| `award_amount` | number or null | Award amount |
| `award_currency` | string or null | USD for awards |
| `place_of_performance` | string or null | US state code of the place of performance |
| `source_url` | string | The record on the source site |
| `fetched_at` | string | When the record was fetched, ISO 8601 UTC |
| `actor_version` | string | The build that produced the record |

Example item:

```json
{
  "item_type": "public_record",
  "source_id": "<source_id>",
  "record_type": "<record_type>",
  "agency": "<agency>",
  "document_type": "<document_type>",
  "title": "<title>",
  "docket": "<docket>",
  "published_at": "<published_at>",
  "start_date": "<start_date>",
  "end_date": "<end_date>",
  "last_modified_at": "<last_modified_at>",
  "url": "<url>",
  "abstract_snippet": "<abstract_snippet>",
  "recipient_organisation": "<recipient_organisation>",
  "award_amount": 0,
  "award_currency": "<award_currency>",
  "place_of_performance": "<place_of_performance>",
  "source_url": "<source_url>",
  "fetched_at": "2026-11-04T09:30:00Z",
  "actor_version": "0.4.1"
}
```

Free-text fields are cleaned before delivery: email addresses, phone numbers, @handles and person names introduced by words such as "contact", "recruiter", "founder" or "manager" are replaced with `[removed]`. The cleaning follows fixed rules, so a name written elsewhere in the text, or in lower case, can remain.

### Other Actors in this family

This Actor is part of a family of job and public-data scrapers built on the same core: one result per charge, a separate uncharged errors dataset, and no personal data. Links follow as the other Actors are published.

### FAQ and support

- **Is there personal data in the output?** No personal data by design: the output holds only facts about jobs and companies, never the author of a post, and contact details are removed from the text as described under Output.
- **Is the data accurate?** Accuracy is not guaranteed. The data is parsed from free text written by many people, and fields can be missing or wrong.
- **Who runs this Actor?** It is not affiliated with Federal Register and USAspending.
- **What may I do with the data?** You are responsible for complying with the law and with the source's terms when you use the data.
- **How is the data collected?** The official API or open data is used where the source offers it. This Actor uses only the official APIs of Federal Register and USAspending.
- **Something is broken.** Open an issue on the Issues tab with the run link and your input. Issues are answered by the automated maintainer.

# Changelog

This Actor's version history is a separate document: https://apify.com/plain-build/federal-register-usaspending-scraper/changelog.md

# Actor input Schema

## `sources` (type: `array`):

federal_register, usaspending or both. Leave empty for the Federal Register only.

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

Agency slugs as in the Federal Register address, for example environmental-protection-agency. Leave empty for all agencies. USAspending ignores this.

## `published_after` (type: `string`):

Date as YYYY-MM-DD. Documents by publication date, awards by signing date. Leave empty for the last 7 days.

## `new_since_last_run` (type: `boolean`):

Deliver and charge only records this Actor has not delivered to you before for the same sources and agencies. A record held back by Maximum results or your spending limit comes in the next run. Delivered records are remembered in a key-value store named federal-register-usaspending-scraper-state in your account.

## `max_items` (type: `integer`):

How many results to return at most. You pay per result delivered.

## Actor input object example

```json
{
  "sources": [],
  "agencies": [
    "environmental-protection-agency"
  ],
  "published_after": "",
  "new_since_last_run": false,
  "max_items": 25
}
```

# Actor output Schema

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

One item per public record.

## `errors` (type: `string`):

Records that could not be delivered, and queries with no results. Not charged.

# 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 = {
    "agencies": [
        "environmental-protection-agency"
    ],
    "max_items": 25
};

// Run the Actor and wait for it to finish
const run = await client.actor("plain-build/federal-register-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 = {
    "agencies": ["environmental-protection-agency"],
    "max_items": 25,
}

# Run the Actor and wait for it to finish
run = client.actor("plain-build/federal-register-usaspending-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 '{
  "agencies": [
    "environmental-protection-agency"
  ],
  "max_items": 25
}' |
apify call plain-build/federal-register-usaspending-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,plain-build/federal-register-usaspending-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/YWa2qcy3Hu8FGPzKV/builds/ukhqWecAxlttYqkxh/openapi.json
