# Federal Register Search — US Regulations & Rules (`scrapeworks/federal-register`) Actor

Search the official US Federal Register for rules, proposed rules, notices, and executive orders. Clean JSON with agency, dates, abstract, and links. Filter by type, agency, date, or keyword.

- **URL**: https://apify.com/scrapeworks/federal-register.md
- **Developed by:** [Nicolas van Arkens](https://apify.com/scrapeworks) (community)
- **Categories:** News, Other, Open source
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## Federal Register Search — US Regulations & Rules 🏛️

Search the official **US Federal Register** for federal rules, proposed rules, public notices, and presidential documents (executive orders, proclamations) — returned as clean, structured JSON. Filter by keyword, document type, agency, or date, and get agency names, publication and effective dates, comment deadlines, citations, and direct links.

Built for **legal, compliance, policy, and journalism** workflows where knowing what the government just published — and when it takes effect — actually matters.

### Why use it

- 📜 **All document types** — final rules, proposed rules, notices, and presidential documents
- 🏢 **Agency filtering** — track a specific agency (EPA, SEC, FDA, etc.)
- 🗓️ **Date & deadline fields** — publication date, effective date, and comment-close date
- 🔎 **Full-text search** — find every document mentioning your topic
- 🧾 **Citations & links** — official citation plus HTML and PDF URLs
- 👔 **Executive orders** — president, EO number, and signing date for presidential documents

### Use cases

- **Regulatory monitoring** — track new and proposed rules affecting your industry
- **Compliance** — catch effective dates and public-comment deadlines
- **Legal research** — find rules and notices by agency or topic
- **Policy & journalism** — monitor executive orders and agency actions as they publish
- **Datasets** — build structured corpora of federal regulatory activity

### Input

| Field | Description |
|-------|-------------|
| **Search term** | Full-text keywords. |
| **Document types** | RULE, PRORULE, NOTICE, PRESDOCU (any combination). |
| **Agency slug** | Restrict to one agency (Federal Register slug). |
| **Published after / before** | Date range (YYYY-MM-DD). |
| **Sort order** | Newest, oldest, or relevance. |
| **Maximum documents** | How many to return. |

### Output

```json
{
  "documentNumber": "2026-12345",
  "title": "Endangered and Threatened Wildlife and Plants; Listing the Foo Species",
  "type": "Rule",
  "abstract": "We, the U.S. Fish and Wildlife Service, are listing...",
  "action": "Final rule.",
  "agencies": ["Fish and Wildlife Service", "Interior Department"],
  "publicationDate": "2026-05-15",
  "effectiveDate": "2026-06-15",
  "commentsCloseDate": null,
  "citation": "91 FR 12345",
  "url": "https://www.federalregister.gov/documents/2026/05/15/2026-12345/...",
  "pdfUrl": "https://www.govinfo.gov/content/pkg/FR-2026-05-15/pdf/2026-12345.pdf"
}
````

Export to JSON, CSV, or Excel, or pull via the Apify API. Schedule it and pipe new rules into Slack, email, or a compliance dashboard.

### Notes

- Uses the official public Federal Register API. Independent tool, not affiliated with the Office of the Federal Register or the US government.
- Agency slugs follow the Federal Register's own naming (see federalregister.gov/agencies).

# Actor input Schema

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

Full-text keywords to search across documents. Example: 'clean air' or 'data privacy'. Leave empty to browse by the filters below.

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

Restrict to specific document types. Valid values: RULE (final rule), PRORULE (proposed rule), NOTICE, PRESDOCU (presidential documents like executive orders). Leave empty for all types.

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

Restrict to a specific agency by its Federal Register slug, e.g. 'environmental-protection-agency', 'securities-and-exchange-commission', 'food-and-drug-administration'.

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

Only documents published on/after this date (YYYY-MM-DD).

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

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

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

How to sort results.

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

How many documents to return.

## Actor input object example

```json
{
  "searchTerm": "artificial intelligence",
  "order": "newest",
  "maxItems": 100
}
```

# 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 = {
    "searchTerm": "artificial intelligence"
};

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

# Run the Actor and wait for it to finish
run = client.actor("scrapeworks/federal-register").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "searchTerm": "artificial intelligence"
}' |
apify call scrapeworks/federal-register --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=scrapeworks/federal-register",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Federal Register Search — US Regulations & Rules",
        "description": "Search the official US Federal Register for rules, proposed rules, notices, and executive orders. Clean JSON with agency, dates, abstract, and links. Filter by type, agency, date, or keyword.",
        "version": "0.1",
        "x-build-id": "rVoF1Sx9ezO63YUdu"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/scrapeworks~federal-register/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-scrapeworks-federal-register",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/scrapeworks~federal-register/runs": {
            "post": {
                "operationId": "runs-sync-scrapeworks-federal-register",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/scrapeworks~federal-register/run-sync": {
            "post": {
                "operationId": "run-sync-scrapeworks-federal-register",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "searchTerm": {
                        "title": "Search term",
                        "type": "string",
                        "description": "Full-text keywords to search across documents. Example: 'clean air' or 'data privacy'. Leave empty to browse by the filters below."
                    },
                    "documentTypes": {
                        "title": "Document types",
                        "type": "array",
                        "description": "Restrict to specific document types. Valid values: RULE (final rule), PRORULE (proposed rule), NOTICE, PRESDOCU (presidential documents like executive orders). Leave empty for all types.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "agency": {
                        "title": "Agency slug",
                        "type": "string",
                        "description": "Restrict to a specific agency by its Federal Register slug, e.g. 'environmental-protection-agency', 'securities-and-exchange-commission', 'food-and-drug-administration'."
                    },
                    "publishedAfter": {
                        "title": "Published after",
                        "type": "string",
                        "description": "Only documents published on/after this date (YYYY-MM-DD)."
                    },
                    "publishedBefore": {
                        "title": "Published before",
                        "type": "string",
                        "description": "Only documents published on/before this date (YYYY-MM-DD)."
                    },
                    "order": {
                        "title": "Sort order",
                        "enum": [
                            "newest",
                            "oldest",
                            "relevance"
                        ],
                        "type": "string",
                        "description": "How to sort results.",
                        "default": "newest"
                    },
                    "maxItems": {
                        "title": "Maximum documents",
                        "minimum": 1,
                        "maximum": 10000,
                        "type": "integer",
                        "description": "How many documents to return.",
                        "default": 100
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
