# US Federal Register Monitor (`downright_blessing/federal-register-monitor`) Actor

Search US Federal Register documents (rules, proposed rules, notices, presidential documents) via the official Federal Register API v1. Filter by keyword, document type and publication date. Returns title, type, agencies, abstract, publication date and HTML/PDF URLs.

- **URL**: https://apify.com/downright_blessing/federal-register-monitor.md
- **Developed by:** [Joao Pedro Rosado](https://apify.com/downright_blessing) (community)
- **Categories:** News, AI, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 fr documents

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 Document Monitor

Search and monitor **US Federal Register** documents (rules, proposed rules, notices, presidential documents) via the official [Federal Register API v1](https://www.federalregister.gov/developers/documentation/api/v1). Filter by keyword, document type and publication date. Returns title, type, agencies, abstract, dates and HTML/PDF URLs.

**No API key.** Diff S.

**Endpoint:** `GET https://www.federalregister.gov/api/v1/documents.json`\
**Docs:** [federalregister.gov/developers](https://www.federalregister.gov/developers/documentation/api/v1)

***

### What it does

1. Calls the official documents search with `conditions[term]`, optional type and date filters.
2. Writes one Dataset row per document.

### Who it's for

- Policy / compliance teams tracking US regulatory changes (tariffs, sanctions, FDA, customs)
- Trade desks needing Federal Register alerts alongside HTS / Comex Actors
- Agents scheduling daily keyword monitors

### Input summary

| Field | Required | Description |
|---|---|---|
| `term` | no | Keyword (default `tariff`) |
| `documentTypes` | no | e.g. `RULE`, `PRORULE`, `NOTICE`, `PRESDOCU` |
| `publicationDateFrom` / `To` | no | `YYYY-MM-DD` bounds |
| `perPage` / `page` | no | Pagination |
| `maxItems` | no | Dataset cap |

### Output fields

`documentNumber`, `title`, `type`, `subtype`, `abstract`, `publicationDate`, `agencies`, `agencyNames`, `htmlUrl`, `pdfUrl`, `publicInspectionPdfUrl`, `excerpts`, `startPage`, `endPage`, `pageLength`, `significant`, `sourceUrl`, `scrapedAt`.

### Pricing

**Pay-per-event** suggested:

- **Actor start** (`apify-actor-start`): **$0.03** / run
- **Dataset item** (`apify-default-dataset-item`): **$0.005** / document

Use `maxItems` as the spend cap.

### Quick start

```json
{ "term": "tariff", "perPage": 20, "page": 1, "maxItems": 20 }
```

#### Local smoke

```bash
npm run local
```

### Legal / data source

Data from the official **Federal Register** public API (National Archives / GPO). This Actor is independent — **not affiliated** with NARA or the Office of the Federal Register. Documents are public domain US government works; always verify against the official HTML/PDF.

***

### Português (resumo)

Monitora documentos do **Federal Register** dos EUA (regras, propostas, avisos) via API oficial. Ideal para compliance e desks de trade. Sem API key. PPE sugerido: ~US$0,03 por execução + ~US$0,005 por documento.

# Actor input Schema

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

Keyword for conditions\[term]. Examples: tariff, sanctions, FDA, customs.

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

Optional Federal Register type filters (RULE, PRORULE, NOTICE, PRESDOCU).

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

Optional lower bound for publication date.

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

Optional upper bound for publication date.

## `perPage` (type: `integer`):

Federal Register per_page (max 1000).

## `page` (type: `integer`):

Page to fetch (1-based).

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

Hard Dataset row cap.

## Actor input object example

```json
{
  "term": "tariff",
  "documentTypes": [
    "RULE",
    "PRORULE",
    "NOTICE"
  ],
  "publicationDateFrom": "",
  "publicationDateTo": "",
  "perPage": 20,
  "page": 1,
  "maxItems": 20
}
```

# Actor output Schema

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

Default dataset items from Federal Register API.

# 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 = {
    "term": "tariff",
    "documentTypes": [
        "RULE",
        "PRORULE",
        "NOTICE"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("downright_blessing/federal-register-monitor").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 = {
    "term": "tariff",
    "documentTypes": [
        "RULE",
        "PRORULE",
        "NOTICE",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("downright_blessing/federal-register-monitor").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 '{
  "term": "tariff",
  "documentTypes": [
    "RULE",
    "PRORULE",
    "NOTICE"
  ]
}' |
apify call downright_blessing/federal-register-monitor --silent --output-dataset

```

## MCP server setup

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

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/8wYdmhfZmGTDktW7g/builds/Sd6hzRVCdhG6cfN0t/openapi.json
