# Federal Register Scraper (`tortuga/federal-register-scraper`) Actor

US Federal Register rules, proposed rules, notices and presidential documents by keyword, agency, type, date, docket and CFR part: number, URL, title, agencies, dates, comment deadline, dockets, CFR references, abstract, PDF link, optional full text.

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

## Pricing

from $1.12 / 1,000 documents

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 Scraper

Search the US Federal Register and export rules, proposed rules, notices and presidential documents as clean JSON, CSV or Excel. For each document you get the document number, URL, title, type, agencies, publication and effective dates, comment deadline, docket IDs, CFR references, abstract, PDF and full-text links, page count and, optionally, the full plain text. Data comes from the public federalregister.gov API: no key, no login.

### What you can do with it

- Search by keyword (titles, abstracts and full text) and combine several searches in one run.
- Filter by document type, agency or sub-agency, publication date range, docket ID and CFR title/part.
- Track open comment periods: every proposed rule carries its `commentsCloseDate` and `commentUrl`.
- Monitor an agency, a keyword or a CFR part on a schedule and get only new documents.
- Paste a federalregister.gov search page URL or a single document URL instead of filling the form.
- Add the full plain text of each document for analysis, search or AI pipelines.

### Input example

```json
{
  "searchTerms": ["artificial intelligence"],
  "documentTypes": ["PRORULE", "RULE"],
  "agencies": ["Federal Trade Commission"],
  "publishedFrom": "90 days",
  "maxItems": 50
}
```

`searchTerms`, `agencies`, `docketIds`, `cfrReferences` and `startUrls` accept plain strings or lists. `publishedFrom` takes a date (2026-01-01) or a period (30 days). CFR references look like `40 CFR 60`.

### Output example

```json
{
  "documentNumber": "2026-23251",
  "url": "https://www.federalregister.gov/documents/2026/11/16/2026-23251/fisheries-of-the-exclusive-economic-zone-off-alaska-pelagic-trawl-gear-definition",
  "title": "Fisheries of the Exclusive Economic Zone off Alaska; Pelagic Trawl Gear Definition",
  "type": "Proposed Rule",
  "agencies": ["Commerce Department", "National Oceanic and Atmospheric Administration"],
  "publicationDate": "2026-11-16",
  "effectiveDate": null,
  "commentsCloseDate": "2026-12-16",
  "commentUrl": "http://www.regulations.gov/commenton/NOAA-NMFS-2026-0397-0001",
  "docketIds": ["Docket No. 261109-0002"],
  "cfrReferences": ["50 CFR Part 679"],
  "abstract": "NMFS proposes regulations to revise the regulatory definition of authorized fishing gear ...",
  "pageCount": 5,
  "pdfUrl": "https://www.govinfo.gov/content/pkg/FR-2026-11-16/pdf/2026-23251.pdf",
  "fullTextUrl": "https://www.federalregister.gov/documents/full_text/text/2026/11/16/2026-23251.txt",
  "fullText": null
}
```

Other fields: `subtype`, `agencySlugs`, `regulationsGovUrl`, `citation`, `action`, `significant`, `executiveOrderNumber`, `presidentialDocumentNumber`, `signingDate`, `president`, `topics`, `startPage`, `endPage`, `xmlUrl`. Values the document does not have are null. `fullText` is filled only with "Include full text".

### Pricing

| Event | Price |
| --- | --- |
| Document (one row) | $0.0014 |
| Full text (only with "Include full text", per document) | $0.0014 |
| Actor start | $0.00005 |

Paid plans get volume discounts. Platform usage is included: you pay only for the events above.

### Monitor changes on a schedule

Turn on "Only new or changed items" and save the run as a Task with a Schedule. The Actor remembers the documents earlier runs returned and outputs only new ones, or ones whose comment deadline or effective date changed, so unchanged documents are not charged. Each item gets `changeType` ("new" or "changed") and, for changed ones, `previousValues`. Use `monitoringKey` to keep several watches separate.

### Proxy note

The Federal Register API is public and the Actor paces itself. No proxy is needed. Switch on Apify Proxy only if you run many large jobs in parallel and see rate-limit errors.

### FAQ

**How do I get all proposed rules from one agency?** Set `documentTypes` to `PRORULE`, add the agency name, raise `maxItems` and set a date range. One search returns at most 10,000 documents, so split very large ranges by date.

**How do I find documents that affect a CFR part?** Add `40 CFR 60` (or any title and part) to `cfrReferences`.

**Does it need an API key or login?** No. It uses the public federalregister.gov API.

**Can it return the document text?** Yes: switch on "Include full text". The text is plain, tags removed, and cut at `maxTextChars`. The PDF link is always included.

**Is the data public?** Yes. Federal Register documents are public records of the US government.

# Actor input Schema

## `searchTerms` (type: `array`):

Keywords or phrases to search in document titles, abstracts and full text (one search per entry, results merged). Plain strings are fine. Leave empty to list recent documents with the filters below.

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

Keep only these document types. Empty keeps all.

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

Agency names or slugs, for example Environmental Protection Agency or environmental-protection-agency. Sub-agencies work too (forest-service).

## `publishedFrom` (type: `string`):

Only documents published on or after this date (YYYY-MM-DD) or within a period such as '30 days'.

## `publishedTo` (type: `string`):

Only documents published on or before this date (YYYY-MM-DD).

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

Agency docket IDs, for example EPA-HQ-OAR-2023-0072.

## `cfrReferences` (type: `array`):

Documents affecting a Code of Federal Regulations part, written like '40 CFR 60' or '40 CFR Part 60'. A bare title number ('40') matches the whole title.

## `significantOnly` (type: `boolean`):

Keep only documents the agency marked as significant under Executive Order 12866.

## `sortBy` (type: `string`):

Newest first is the default; relevance is the default when search terms are set.

## `startUrls` (type: `array`):

federalregister.gov search pages (documents/search?conditions...) or single document URLs. Plain strings are fine. Filters above are ignored for search URLs.

## `includeFullText` (type: `boolean`):

Download the full plain text of each document (one extra request, charged as a separate 'Full text' event).

## `maxTextChars` (type: `integer`):

Cut the full text after this many characters.

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

Stop after this many documents. Keeps cost predictable. One search returns at most 10,000 documents (an API limit); split bigger jobs by date.

## `onlyNewOrChanged` (type: `boolean`):

Remember what earlier runs of this search returned and output only new items or items whose watched values changed. Use with a Schedule; unchanged items are not charged.

## `monitoringKey` (type: `string`):

Name for this watch, so several schedules on the same search stay separate; defaults to a key derived from the search input.

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

The Federal Register API is public and works without a proxy. Switch on Apify Proxy only if you see rate-limit errors.

## Actor input object example

```json
{
  "searchTerms": [
    "artificial intelligence"
  ],
  "publishedFrom": "30 days",
  "maxTextChars": 200000,
  "maxItems": 20,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

No description

# 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 = {
    "searchTerms": [
        "artificial intelligence"
    ],
    "publishedFrom": "30 days",
    "maxTextChars": 200000,
    "maxItems": 20,
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("tortuga/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 = {
    "searchTerms": ["artificial intelligence"],
    "publishedFrom": "30 days",
    "maxTextChars": 200000,
    "maxItems": 20,
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("tortuga/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 '{
  "searchTerms": [
    "artificial intelligence"
  ],
  "publishedFrom": "30 days",
  "maxTextChars": 200000,
  "maxItems": 20,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call tortuga/federal-register-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,tortuga/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/AoNiwcSvg4CY1cLZ8/builds/50idqbC1TvevSuTQy/openapi.json
