DEV Community

Donglin Li
Donglin Li

Posted on

Federal Register API Scraper — US Rules & Notices

If you need to monitor Federal Register rules without an API key, a Federal Register API Scraper on Apify reads the official public Federal Register API and returns structured records you can filter by keyword, document type or agency. This guide walks through a no-key workflow: dry-run first, cap what each run writes, then automate the feed. You get document number, title, type, publication date, agencies and a source URL — built for regulatory monitoring, compliance alerts and policy research.

Why monitor regulation instead of bulk-scraping it

Federal rule changes are public, but they are buried in a firehose. Re-fetching the whole feed on a schedule wastes requests and, on pay-per-event platforms, credits. If you only care about new rules matching a narrow topic, a monitored Actor is a better fit than a bulk scraper.

Actor page: https://apify.com/daj8/federal-register-scraper-incremental

How to monitor Federal Register rules without an API key

The Federal Register API Scraper uses the official Federal Register public API — no API key, no login. You can narrow results server-side by keyword, document type and agencies, so the Actor fetches only what matches. The maxItems cap then refers to real matches, not a raw page you filter locally: it is honored by fetching whole 50-item API pages rather than truncating a single fixed page.

To start:

  1. Open the Store page and click Try it.
  2. Run with dryRun: true and a narrow query, for example keyword: "lending".
  3. Inspect the dataset, then turn on the cost guard and schedule the Actor.

Use Apify Scheduler for the cadence. Connect the dataset to a webhook, a Slack channel, an email digest or a compliance database. Each run writes LAST_RUN_SUMMARY to the key-value store with fetched and pushed counts.

Federal Register API scraper fields

Each row from the Federal Register API Scraper contains:

  • document number
  • title
  • type (rules, proposed rules, notices)
  • publication date
  • agencies
  • source HTML URL

That is the field set this Actor returns. It does not attempt CFR references, RINs or full document text — if you need those, a different tool is a better fit.

Pricing and cost control

Two inputs keep the bill predictable:

  • maxChargeItems caps dataset writes per run.
  • dryRun: false commits results and advances the checkpoint.

Seen-document tracking uses a deterministic ordered queue: the oldest entries are trimmed first, and documents with no usable timestamp are skipped rather than re-emitted with a fabricated "now". That last point matters — a fallback timestamp turns every run into a "new" run and quietly doubles your bill.

Check the Store page for current pricing before raising the cap.

Honest scope

Deduplication is within a run. Cross-run checkpointing is not reliable on this account because each API run gets a fresh key-value store; if you need persistent state, configure a persistent KV store at the platform level and feed the high-water mark back in.

FAQ

Do I need an API key for the Federal Register API?
No. The Federal Register API Scraper uses the official public API — no key, no login.

Which document types can I monitor?
Rules, proposed rules and notices, filtered by keyword, type or agency.

How does it avoid duplicate documents?
Within a run it deduplicates; seen documents follow a deterministic ordered queue. Cross-run state needs a persistent key-value store you configure yourself.

Can I get full document text or CFR references?
No. The output is metadata-level: document number, title, type, publication date, agencies and source URL.

Where to go next

The same pattern works for SEC filings (10-K/10-Q/8-K by CIK) and ClinicalTrials.gov status changes. Both are public APIs with no key, and both are available as Actors in the same family.

Actor page: https://apify.com/daj8/federal-register-scraper-incremental

Top comments (0)