eCFR Scraper - Code of Federal Regulations by Date avatar

eCFR Scraper - Code of Federal Regulations by Date

Pricing

from $1.00 / 1,000 run start fees

Go to Apify Store
eCFR Scraper - Code of Federal Regulations by Date

eCFR Scraper - Code of Federal Regulations by Date

Get current and historical eCFR section text with its version date, search federal regulations, and list substantive changes between dates with Federal Register document numbers and regulations.gov docket links. For compliance and legal teams.

Pricing

from $1.00 / 1,000 run start fees

Rating

0.0

(0)

Developer

SR

SR

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

15 days ago

Last modified

Features

Limited permissions

Share

eCFR Scraper

eCFR Scraper retrieves current and historical US federal regulation text, finds sections by keyword, and lists substantive changes between two dates. Use a CFR citation to get the consolidated rule as it stood on a particular day, together with its heading, paragraphs, source note and version date. Federal Register references can be resolved to document numbers and docket identifiers for connecting the codified text to the rulemaking record.

What eCFR Scraper returns

A section record represents one CFR provision on one date. A change record represents one substantive version identified by the source. The record_type field distinguishes these records, while _type provides the corresponding shared regulation record name. Every delivered record includes its citation, retrieval timestamp, source identifier, position and a dated source URL. These fields let you keep a repeatable evidence trail when a rule changes later.

This is useful for compliance monitoring, legal research, regulatory inventories and comparison of historical requirements. A date-specific snapshot answers which consolidated text was available for that date. The source version list answers when a provision changed. A resolved Federal Register reference helps you find the document behind a codifying amendment and continue your research in the associated docket.

Input

Provide title and optionally part, section or subpart for a hierarchy lookup. For example, {"title":21,"section":"101.91"} retrieves the food labeling provision for gluten-free claims. Section input also accepts § 101.91 and 21 CFR 101.91 when the supplied title matches. Omit the section to collect a part, or omit the part to walk the title. Title numbers range from 1 to 50; reserved titles have no regulation text to return.

Set date to a calendar date in YYYY-MM-DD format for a historical snapshot. Without it, the Actor uses the latest available issue date reported for the selected title. That date can be earlier than today. An unavailable future date is rejected rather than silently replaced with another date.

Use changesSince to return the requested snapshot and substantive versions after that starting date, up to and including date. Use compareDate when you also want the earlier snapshot in the same result set. For the real provision above, comparing 2020-08-12 with 2020-10-13 shows the text before and after the 2020 gluten labeling amendment. The starting boundary is exclusive for changes; the ending boundary is inclusive.

Use query for full-text searching, optionally restricted by title, part, section and agency slugs in agencies. The default currentOnly=true searches the latest available material. Set it to false to include historical result versions. An explicit date always takes precedence. Search and comparison fields are separate workflows and cannot be combined in a single input.

includeText controls delivery of consolidated text and paragraph arrays. includeFrLinks controls resolution of Federal Register citations. Both default to true. Turn both off for a compact search result set containing headings and plain-text excerpts. maxItems, from 1 to 1000, limits all delivered records combined, including change records and both snapshots when comparing dates.

Output

Section records include citation, as_of, heading, text, paragraphs, version_date, source_note and fr_citations. Search records also include the original query, plain-text excerpt, source excerpt, relevance score and version validity dates. A null ends_on indicates that the search version remains current in the source. Historical versions keep their own starting date.

Change records include effective_on, issue_date, removed, amending_document_id, amending_citation, docket_id and fr_document_candidates. The document identifier can be joined to Federal Register document data; a docket identifier can be used to continue to regulations.gov. The cited Federal Register page may lie inside a document rather than match its first page.

A document number is reported as confirmed only when a unique source-note match supports it. Multiple plausible documents remain candidates. Missing matches stay null. Older citations, especially those before 1994, may not have a document in the searchable Federal Register archive. A temporary link-resolution failure keeps the regulation text and adds a visible warning to the run output.

Example output

Input {"title": 21, "section": "101.91", "changesSince": "2020-01-01"} returns one section record followed by the substantive versions after 1 January 2020. This is a trimmed copy of a real response, so the citation, dates and identifiers below are the ones the source reported:

{
"data": {
"items": [
{
"record_type": "section",
"_type": "regulation_section",
"citation": "21 CFR 101.91",
"as_of": "2026-11-05",
"version_date": "2020-10-13",
"heading": "Gluten-free labeling of food.",
"text": "(a) Definitions. (1) The term “gluten-containing grain” means any one of the following grains or their crossbred hybrids…",
"source_note": "[78 FR 47178, Aug. 5, 2013, as amended at 85 FR 49260, Aug. 13, 2020]",
"fr_citations": [
{ "citation": "78 FR 47178", "publication_date": "2013-08-05", "fr_document_number": "2013-18813" },
{ "citation": "85 FR 49260", "publication_date": "2020-08-13", "fr_document_number": "2020-17088" }
],
"url": "https://www.ecfr.gov/on/2026-11-05/title-21/section-101.91",
"source": "ecfr",
"position": 1
},
{
"record_type": "change",
"_type": "regulation_change",
"citation": "21 CFR 101.91",
"effective_on": "2020-08-13",
"issue_date": "2020-08-13",
"amending_citation": "85 FR 49260",
"amending_document_id": "2020-17088",
"docket_id": "FDA-2014-N-1021",
"removed": false,
"position": 2
}
],
"partial": false,
"warnings": [],
"cursor": null
}
}

The full paragraph array, the remaining text of the section and the second change record (effective_on 2020-10-13) are trimmed here; a run returns all of them.

Use cases for eCFR Scraper

  • Point-in-time answers. Ask for the section as it stood on a given date, for example the labeling rule as it read the day before an amendment took effect.
  • Change monitoring. Run the same citation with changesSince each week and keep only the rows that appeared, so a regulation team sees amendments instead of re-reading the whole part.
  • Rulemaking follow-up. Take the Federal Register document number from a change record and the docket identifier beside it, then continue in the Federal Register or regulations.gov record.
  • Inventory and comparison work. Walk a part or a whole title with maxItems and build a table of provisions, version dates and source notes for an audit or a regulatory inventory.
  • Full-text discovery. Search a phrase such as gluten-free inside one title, part or agency scope, then pull the matched sections with their citations.
  • Retired provisions. Rows for withdrawn requirements arrive with removed set, so a rule that no longer exists is distinguishable from one that never had text.

How eCFR Scraper compares

Browsing the public eCFR website is free and fine for reading one provision, but it hands you web pages: no structured rows to keep, and a date picker you drive by hand. Calling its public API directly means assembling the hierarchy, the change list and the Federal Register join yourself. The annual printed edition of the Code of Federal Regulations arrives as static documents and lags the daily consolidation. Other eCFR actors in this Store cover current text or full-text search, and some also take a date; what this Actor adds is the pair — the consolidated snapshot and the list of substantive versions between two dates, each with a Federal Register document number and a regulations.gov docket identifier in the same response. If you only need today's wording, the website is enough. If you need the wording on a past date plus the record of what changed and which document changed it, that is this Actor.

Pricing

The Actor counts each delivered section, snapshot, search result or substantive change as one result. The current pricing panel states the applicable event prices and any run-start charge. A run with no delivered records has no result charge. Non-paying users are limited to ten delivered records per run. Paid users can request up to the input maximum. A comparison can deliver more than one record for a single citation, so choose maxItems with that combined total in mind.

Large collections continue automatically in bounded pages. Output and the dataset describe delivered records rather than attempted downloads. A partial result or unresolved reference is reported in the run output, so downstream workflows can distinguish complete delivery from a source interruption.

FAQ

Is the latest available date always today?

No. Each title has its own published availability date. The Actor uses that source date for a current lookup and includes the selected date on the returned section record.

Does every substantive version mean the rule text changed?

No. The source can label an amendment announcement as substantive before new wording takes effect. Announcement cross-references are excluded from the consolidated text. Compare the snapshots when you need to inspect the actual wording; the change list preserves the source's classification.

Are Federal Register matches guaranteed?

No. Source citations without a unique matching document remain unresolved. Date-only matches are candidates, and the Actor does not turn them into a confirmed amendment identifier.

Can I retrieve an entire title?

Yes. Supply its title number and choose a result limit. The Actor walks the available provisions and continues collection automatically until the requested row limit or the available content is reached. Review any warnings before treating a collection as complete.