# US Federal Register Documents Feed (Official API) (`jayraj0975/federal-register-documents`) Actor

Recent Federal Register documents (rules, proposed rules, notices, presidential documents) via the official federalregister.gov API: document number, title, type, agencies, abstract, publication date, effective/comment dates, and PDF/HTML URLs. Pay-per-result.

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

## Pricing

$3.00 / 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.

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 Federal Register Documents Feed

Return recent documents from the US Federal Register via the public, no-key
[`federalregister.gov` Documents API](https://www.federalregister.gov/developers/documentation/api/v1).
Each item includes the document number, title, type, agencies, abstract,
publication date, effective and comment-close dates, and links to the official
PDF and HTML documents.

### What it does

1. Calls the Federal Register API `documents.json` endpoint with
   `order=newest`.
2. Supports optional full-text search (`searchTerm`), agency slug (`agency`),
   document type (`type`), and a `sinceDays` publication-date window.
3. Pages through results (up to 1,000 per page) at a polite rate of **1 request
   per second**.
4. Normalizes every record into a stable schema and de-duplicates by document
   number.
5. **Fails loudly** with a clear error when the API layout changes (missing
   `results`, malformed records, etc.). It does not push empty or invalid items.

Public data only. No login, no captchas, no personal data collection.

### Input

| Field        | Type    | Description                                                                                   | Default |
| ------------ | ------- | --------------------------------------------------------------------------------------------- | ------- |
| `searchTerm` | string  | Optional full-text search term (e.g. `sanctions`, `clean water`).                             | —       |
| `type`       | string  | Optional document type: `Rule`, `Proposed Rule`, `Notice`, `Presidential Document`.           | —       |
| `agency`     | string  | Optional agency slug (e.g. `treasury-department`, `environmental-protection-agency`).         | —       |
| `sinceDays`  | integer | Optional: only documents published within the last N days.                                    | —       |
| `maxItems`   | integer | Maximum number of document records to return (1–5000).                                        | `100`   |

### Example output (illustrative — treat as a format sample, not a live feed)

Example record (illustrative; values vary):

```json
{
  "documentNumber": "2023-12345",
  "title": "Example Document Title",
  "type": "Notice",
  "agencies": ["EXAMPLE AGENCY"],
  "abstract": null,
  "publicationDate": "2023-06-01",
  "effectiveOn": null,
  "commentsCloseOn": null,
  "pdfUrl": "https://www.govinfo.gov/content/pkg/FR-2023-06-01/pdf/2023-12345.pdf",
  "htmlUrl": "https://www.federalregister.gov/documents/2023/06/01/2023-12345/example-document-title"
}
```

### Pricing

**$3 per 1,000 results.** Every dataset item pushed to the run's dataset = one billed result, charged via Apify's default dataset-item push event. Empty runs and hard errors are not billed.

### Limits

- Politeness: one API request per second.
- Maximum `maxItems` per run: 5,000.
- The upstream API caps a single query at 10,000 documents (this is a documented upstream limit and may change without notice).
- `abstract`, `effectiveOn`, `commentsCloseOn` are `null` for many documents (the source domain does not always supply them). `null` is expected, not a bug.
- Rate limits and availability depend on the upstream federalregister.gov API. Check the source's terms of use before commercial redistribution.

### Disclaimer

Unofficial Actor. **Not affiliated with, endorsed by, or supported by** the U.S. National Archives and Records Administration (NARA), GPO, or the Office of the Federal Register. It reads the public federalregister.gov Documents API only; no login, no captchas, no personal data.

Public data only. Provided "as is", without warranty of any kind. No guarantees are made regarding completeness, ordering, tolerance, or continued availability of the upstream service; upstream rate limits and schemas can change at any time. Always verify against the official documents at federalregister.gov.

# Actor input Schema

## `searchTerm` (type: `string`):

Optional full-text search term across Federal Register documents (e.g. 'sanctions', 'clean water', 'Medicare').

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

Optional filter by document type.

## `agency` (type: `string`):

Optional agency filter using the Federal Register agency slug (e.g. 'treasury-department', 'environmental-protection-agency').

## `sinceDays` (type: `integer`):

Optional filter to return only documents published within the last N days (e.g. 7 for past week, 30 for past month).

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

Maximum number of document records to return.

## Actor input object example

```json
{
  "maxItems": 100
}
```

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("jayraj0975/federal-register-documents").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("jayraj0975/federal-register-documents").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 '{}' |
apify call jayraj0975/federal-register-documents --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,jayraj0975/federal-register-documents"
        }
    }
}
```

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/zDVTu8YdLS5hXBHch/builds/33NZJRwXODyLfIXFN/openapi.json
