# Federal Register Scraper – US Rules & Notices (`biddata/federal-register-scraper`) Actor

Scrape US Federal Register documents by keyword. Export document number, title, type, agencies, publication date, abstract and official PDF/HTML links. Official federalregister.gov API - no key, no browser. For compliance, legal, policy and regulatory monitoring teams.

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

## Pricing

from $2.00 / 1,000 result rows

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

## Federal Register Scraper – US Rules, Notices & Proposed Rules

**Every US federal rule, proposed rule and notice matching your keyword — from the government's own JSON API, not from scraping federalregister.gov page by page.**

The Federal Register is the official daily journal of the US federal government. Every agency rule, proposed rule, notice, presidential document and public comment deadline is published there — roughly 300 documents a day, about 75,000 a year.

This Actor queries the official `federalregister.gov/api/v1` JSON API and returns one flat row per document: what was published, by which agency, when, and where to read the full text.

### Why this Actor

| | Typical scrapers | This Actor |
|---|---|---|
| Data source | HTML pages and paginated search UI | Official `federalregister.gov/api/v1` JSON API |
| Freshness | Whatever the page shows | Same feed the site itself renders |
| Proxies / CAPTCHA | Sometimes needed | Never |
| API key | Varies | None — anonymous public access |
| Output shape | Mixed HTML with agency objects inline | One flat row per document, fixed schema |

### What you get

One dataset item per Federal Register document.

| Field | Type | Description |
|---|---|---|
| `document_number` | string | Official Federal Register document number, e.g. 2026-22838. Stable key for de-duplication. |
| `title` | string | Document title as published. |
| `type` | string | Document type: Rule, Proposed Rule, Notice or Presidential Document. |
| `agencies` | string | Issuing agencies by display name, pipe separated when several agencies jointly issued the document. |
| `publication_date` | string | Date the document appeared in the Federal Register, YYYY-MM-DD. |
| `abstract` | string | Official abstract written by the agency. Empty for documents without one. |
| `html_url` | string | Public HTML page on federalregister.gov. |
| `pdf_url` | string | Direct PDF of the official document. |

- **`agencies`** -- The API returns agency objects with both a display name and a raw all-caps name; only the clean display names are kept, so `Housing and Urban Development Department` rather than `DEPARTMENT OF HOUSING AND URBAN DEVELOPMENT`.
- **`abstract`** -- Agency-written prose, not generated. Documents that genuinely have no abstract (many notices) come back with an empty string.
- **`type`** -- Values are the API's own labels: Rule, Proposed Rule, Notice, Presidential Document.

### Input

| Parameter | Type | Default | Description |
|---|---|---|---|
| `keyword` | string | `artificial intelligence` | **Required.** Full-text search term matched against document titles, abstracts and full text, e.g. artificial intelligence, emission standards, Medicare reimbursement. Short phrases work best. |
| `maxResults` | integer | `25` | Maximum number of documents to save. The API returns up to 100 documents per page and the Actor pages through until this number is reached. |
| `docType` | string (enum) | *(empty)* | Restrict to one document type: RULE (final rule), PRORULE (proposed rule), NOTICE, or PRESDOCU (presidential document). Leave empty to include all types. |
| `startDate` | string | *(empty)* | Lower bound on the publication date, YYYY-MM-DD. Leave empty for no lower bound. |

### Usage examples

**1. New final rules about artificial intelligence**

```json
{
  "keyword": "artificial intelligence",
  "docType": "RULE",
  "maxResults": 50
}
```

**2. Everything published about a topic since a given date**

```json
{
  "keyword": "emission standards",
  "startDate": "2026-01-01",
  "maxResults": 200
}
```

Run it daily with Apify Schedules and push new documents to Slack, a Google Sheet or a compliance tracker. De-duplicate on `document_number`, which never changes for a given document.

### Data notes

- Documents are returned newest first (`order=newest`), so a daily run gives you yesterday's output.
- The API matches documents whose full text contains every word of the keyword, then sorts by date rather than relevance. A broad phrase can therefore surface a notice where the phrase only appears deep in the body — narrow with `docType`, `startDate` or a longer phrase.
- Comments deadlines and docket numbers are not part of this schema; they live on the document page behind `html_url`.

### Pricing

This Actor uses pay-per-event pricing. You only pay for what you actually get.

| Event | Price | When it is charged |
|---|---|---|
| Actor start | $0.002 | Once per run |
| Result row | $0.002 per row | For every row saved to the dataset |

That works out to **$2 per 1,000 rows**. A typical run returning 50 rows costs about **$0.10** in total.

No subscription is required. You can cap your spend with the max cost per run setting in Apify Console, and an empty or invalid input charges only the start event.

### FAQ

**Do I need an API key?**

No. The Federal Register API is public and anonymous. No registration, no key, no quota to configure.

**Is this legal?**

Yes. Federal Register content is a US government work in the public domain, and the API is published by the Office of the Federal Register for reuse. The Actor makes one request per 100 documents.

**Why does the same keyword return documents from many agencies?**

Because the search is full-text. A phrase like `artificial intelligence` appears in HUD notices, FDA guidance and FTC rules alike. Filter by `docType` or add a more specific phrase to narrow it.

**Are public comments included?**

No. This Actor exports document metadata. Comment counts and deadlines are separate fields on the document page and are not part of this schema.

### Related Actors

More data tools from the same publisher:

- [App Store Reviews Scraper](https://apify.com/biddata/app-reviews-scraper) - App Store and Steam user reviews with ratings, versions and dates.
- [EU Tenders Scraper](https://apify.com/biddata/ted-tenders-scraper) - EU public procurement notices from the official TED API.
- [ClinicalTrials.gov Scraper](https://apify.com/biddata/clinicaltrials-scraper) - Clinical trial records with phase, status and sponsor.
- [arXiv Scraper](https://apify.com/biddata/arxiv-scraper) - arXiv papers with authors, abstracts and PDF links.
- [Hacker News Scraper](https://apify.com/biddata/hackernews-scraper) - Hacker News stories by keyword, top ranking or newest.
- [Weather Scraper](https://apify.com/biddata/weather-scraper) - Weather forecast and history for any city worldwide.

### Disclaimer

All data is retrieved in real time from **FederalRegister.gov**, the official daily journal of the US federal government, via its public API v1. This Actor is an independent tool and is not affiliated with, endorsed by, or sponsored by the Office of the Federal Register, the National Archives or any government agency.

The Federal Register is a publication of record: documents can be corrected, withdrawn or superseded. Verify anything legally or commercially significant against the `html_url` and `pdf_url` of the document itself. This dataset is a monitoring aid, not legal advice.

# Actor input Schema

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

Full-text search term matched against document titles, abstracts and full text, e.g. artificial intelligence, emission standards, Medicare reimbursement. Short phrases work best.

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

Maximum number of documents to save. The API returns up to 100 documents per page and the Actor pages through until this number is reached.

## `docType` (type: `string`):

Restrict to one document type: RULE (final rule), PRORULE (proposed rule), NOTICE, or PRESDOCU (presidential document). Leave empty to include all types.

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

Lower bound on the publication date, YYYY-MM-DD. Leave empty for no lower bound.

## Actor input object example

```json
{
  "keyword": "artificial intelligence",
  "maxResults": 25,
  "docType": "",
  "startDate": ""
}
```

# Actor output Schema

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

All collected records in the default dataset, one row per record.

# 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 = {
    "keyword": "artificial intelligence",
    "maxResults": 25,
    "docType": "",
    "startDate": ""
};

// Run the Actor and wait for it to finish
const run = await client.actor("biddata/federal-register-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 = {
    "keyword": "artificial intelligence",
    "maxResults": 25,
    "docType": "",
    "startDate": "",
}

# Run the Actor and wait for it to finish
run = client.actor("biddata/federal-register-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 '{
  "keyword": "artificial intelligence",
  "maxResults": 25,
  "docType": "",
  "startDate": ""
}' |
apify call biddata/federal-register-scraper --silent --output-dataset

```

## MCP server setup

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