# Regulations.gov Docket & Document Tracker (`fedfacts/regulations-dockets`) Actor

New federal rules, proposed rules and notices by agency, docket, type or keyword, with comment open/close dates. Official Regulations.gov API. No comments.

- **URL**: https://apify.com/fedfacts/regulations-dockets.md
- **Developed by:** [FedFacts](https://apify.com/fedfacts) (community)
- **Categories:** News
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## 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.

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

## Regulations.gov Docket & Document Tracker

Track new **federal rules, proposed rules and notices** as a clean table, with comment-period open and close dates. Filter by agency, docket, document type, keyword, posted date, or "comment period open now". Data comes straight from the official [Regulations.gov API v4](https://open.gsa.gov/api/regulationsgov/) run by the US General Services Administration (GSA).

### What you get

**Documents mode** (default): one row per document, with these fields:

- `documentId`, `docketId`, `agencyId`, `title`
- `documentType` (Rule, Proposed Rule, Notice, Supporting & Related Material, Other) and `subtype`
- `postedDate`, `commentStartDate`, `commentEndDate`, `lastModifiedDate` (ISO timestamps, UTC)
- `openForComment` and `withinCommentPeriod`, both flags exactly as Regulations.gov reports them, plus `allowLateComments` and `withdrawn`
- `frDocNum` (Federal Register document number)
- `url` (document page on regulations.gov), `docketUrl`, and `federalRegisterUrl`

**Dockets mode**: one row per docket (the folder that groups a rulemaking's documents): `docketId`, `agencyId`, `title`, `docketType` (Rulemaking or Nonrulemaking), `lastModifiedDate`, and `url`.

### Inputs

| Input | What it does |
|---|---|
| `apiKey` | Your own free api.data.gov key (secret field, see below). |
| `mode` | `documents` or `dockets`. |
| `agencyIds` | Agency acronyms as Regulations.gov uses them, e.g. `EPA`, `FAA`, `FDA`, `SEC`. |
| `documentTypes` | Rule, Proposed Rule, Notice, Supporting & Related Material, Other. |
| `docketIds` | Only documents in these dockets, e.g. `EPA-HQ-OAR-2025-0163`. |
| `docketTypes` | Rulemaking or Nonrulemaking (dockets mode). |
| `keyword` | Full-text search term. |
| `dateFrom` / `dateTo` | Posted date (documents) or last-modified date (dockets). Defaults to the last 30 days. |
| `openForCommentOnly` | Only documents whose comment period is open now. |
| `sortOrder` | `newest` or `oldest`. |
| `maxItems` | Stop after this many rows (0 = no limit). |

### Example input

```json
{ "apiKey": "YOUR_KEY", "agencyIds": ["EPA"], "documentTypes": ["Proposed Rule"], "openForCommentOnly": true, "maxItems": 200 }
```

### You need a free API key

Regulations.gov requires an api.data.gov key. It's free: fill in the short form at **https://api.data.gov/signup/** and the key arrives by email right away. Paste it into the `apiKey` field. It's stored as a secret input and never written to the dataset, the logs or the run summary.

If you leave it empty, the Actor uses the public `DEMO_KEY`. That key is shared and only allows a handful of requests per hour, so it's fine for a quick try but not for real use. A personal key allows about 1,000 requests per hour, and each request returns up to 250 rows.

When the key hits its rate limit, the run stops with a clear message, and rows already saved stay in the dataset. A rejected key also fails right away with a clear message.

### Limits

- The API serves at most 5,000 rows per query. For bigger date ranges the Actor automatically splits the range by date. If a single day has more than 5,000 matches, only the first 5,000 come back, and the run's `SUMMARY` record lists those days.
- Data is only as fresh and complete as Regulations.gov. Dates and flags are passed through as published.
- Agencies that don't use Regulations.gov aren't covered.

### What this Actor does NOT do

- **No public comments, commenter names or any personal data.** It never calls the comments endpoint, and "Public Submission" isn't an accepted document type.
- No document attachments or full text, only the metadata listed above.
- It doesn't scrape the regulations.gov website. It only uses the official API.

### Reliability

The Actor retries on server and network errors. Every run saves a `SUMMARY` record in the key-value store with the filters used (minus the key), the number of API requests, the rows returned, and why the run stopped.

### Pricing

Pay per event: **$0.002 per row** returned (`document-row` or `docket-row` event, $2 per 1,000 rows). There's no start fee. Example: 200 open EPA proposed rules cost $0.40. Nothing is charged when a search returns no rows. Set a maximum charge on the run, and the Actor stops cleanly when it reaches it.

### Source and attribution

Data: Regulations.gov, via the Regulations.gov API v4 (GSA eRulemaking Program). It is public US government information. This Actor isn't affiliated with or endorsed by GSA, Regulations.gov, or any federal agency.

# Actor input Schema

## `apiKey` (type: `string`):

Your own free key from https://api.data.gov/signup/ (takes a minute, emailed instantly). If left empty, the shared DEMO_KEY is used, which allows only a few requests per hour.

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

Documents are the individual Federal Register items. Dockets are the folders that group them.

## `agencyIds` (type: `array`):

Regulations.gov agency acronyms, e.g. EPA, FAA, FDA, SEC, OSHA. Empty = all agencies.

## `documentTypes` (type: `array`):

Empty = all types. (Public comments are never returned.)

## `docketIds` (type: `array`):

Only documents in these dockets, e.g. EPA-HQ-OAR-2025-0163.

## `docketTypes` (type: `array`):

Empty = both.

## `keyword` (type: `string`):

Full-text search term, e.g. "PFAS" or "drone".

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

YYYY-MM-DD. Documents: posted date. Dockets: last-modified date. Default: 30 days ago (no default when docket IDs are given).

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

YYYY-MM-DD. Default: today.

## `openForCommentOnly` (type: `boolean`):

Only documents whose comment period is open today.

## `sortOrder` (type: `string`):

By posted date (documents) or last-modified date (dockets).

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

Stop after this many rows. 0 means no limit (use a max charge instead).

## Actor input object example

```json
{
  "mode": "documents",
  "agencyIds": [
    "EPA"
  ],
  "documentTypes": [
    "Proposed Rule"
  ],
  "openForCommentOnly": false,
  "sortOrder": "newest",
  "maxItems": 50
}
```

# Actor output Schema

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

Dataset rows (one per record), as JSON/CSV/Excel via the dataset API.

## `summary` (type: `string`):

Filters used, rows returned/dropped and why the run stopped.

# 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 = {
    "agencyIds": [
        "EPA"
    ],
    "documentTypes": [
        "Proposed Rule"
    ],
    "maxItems": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("fedfacts/regulations-dockets").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 = {
    "agencyIds": ["EPA"],
    "documentTypes": ["Proposed Rule"],
    "maxItems": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("fedfacts/regulations-dockets").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 '{
  "agencyIds": [
    "EPA"
  ],
  "documentTypes": [
    "Proposed Rule"
  ],
  "maxItems": 50
}' |
apify call fedfacts/regulations-dockets --silent --output-dataset

```

## MCP server setup

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

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/XTYhscMnRJT3a0e0t/builds/yHWDHFGP2fO2i0IXh/openapi.json
