eCFR Regulations Search — Full-Text Federal Regulations API
Pricing
from $3.00 / 1,000 results
eCFR Regulations Search — Full-Text Federal Regulations API
Search the Electronic Code of Federal Regulations (eCFR) API to extract full-text regulation data with enriched citations, regulatory hierarchy, and LLM-ready excerpts. Filter by query term and result count.
Pricing
from $3.00 / 1,000 results
Rating
0.0
(0)
Developer
Compute Edge
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
2 days ago
Last modified
Categories
Share
Overview
The eCFR Regulations Search Actor is a powerful tool for searching the Electronic Code of Federal Regulations (eCFR) — the official, up-to-date text of all federal regulations maintained by the U.S. Government Publishing Office (GPO). This actor searches the eCFR's public API, extracts full-text regulation data with enriched citations and regulatory hierarchy, and outputs LLM-ready excerpts perfect for compliance automation, regulatory research, and policy analysis.
Who needs this?
- Compliance officers — Track regulatory requirements across titles and parts
- Regulatory affairs teams — Monitor changes and new regulations in their industry
- Lawyers & legal researchers — Full-text search with context and citations
- Policy analysts — Research specific regulation areas with structured data
- GRC platforms — Embed regulation search into compliance workflows
- AI/LLM applications — Feed LLM-ready excerpts into RAG pipelines for regulatory intelligence
Features
- Full-text search across all 50 titles of the Code of Federal Regulations
- Enriched citations — Automatically constructs hierarchical citations (e.g., "Title 6 → Chapter I → Part 158 → § 158.201")
- LLM-ready excerpts — HTML tags stripped, plain text output optimized for AI models
- Regulatory hierarchy — Returns complete structural context (title, chapter, part, subpart, section)
- Relevance scoring — Results ranked by relevance to your search
- Effective dates — Tracks when regulations became effective and when they were superseded
- Direct links — eCFR URLs for each regulation for quick access to full text
- Pagination — Handles large result sets automatically; configurable result limits
Data Fields
| Field | Type | Description |
|---|---|---|
citation | string | Hierarchical citation (e.g., "Title 6 → Chapter I → Part 158 → § 158.201") |
type | string | Regulation type: Section, Appendix, Interp, etc. |
excerptText | string | Full-text excerpt with search terms highlighted (HTML tags removed, LLM-ready) |
score | number | Relevance score from the eCFR search engine (higher = more relevant) |
starts_on | date | Date the regulation became effective |
ends_on | date | Date the regulation was superseded or removed (null if still active) |
ecfrUrl | string | Direct link to the regulation on eCFR.gov |
searchQuery | string | The search query used |
hierarchy | object | Structured regulatory hierarchy (title, chapter, part, section, etc.) |
headings | object | Human-readable headings for each hierarchy level |
fetchedAt | datetime | ISO 8601 timestamp of when the data was retrieved |
How to Use
Step 1: Configure Your Search
In the Apify console or your API call, provide:
{"query": "data privacy","maxResults": 200}
Parameters:
-
query(string, required): Your search term. Examples:"cybersecurity"— Returns DHS, NIST, and other cybersecurity regulations"environmental protection"— Returns EPA and other environmental regs"data privacy"— Returns HIPAA, FCPA, FTC, and privacy-related rules"pharmaceutical"— Returns FDA pharmaceutical regulations"financial disclosure"— Returns SEC and financial disclosure rules
-
maxResults(integer, default 200, min 1, max 10000): Maximum regulation records to return. The actor will paginate until this limit or the end of results.
Step 2: Run the Actor
Click Start in the Apify console, or use the API:
curl -X POST https://api.apify.com/v2/acts/{actorId}/runs \-H "Authorization: Bearer YOUR_APIFY_TOKEN" \-H "Content-Type: application/json" \-d '{"query": "cybersecurity", "maxResults": 500}'
Step 3: Retrieve Results
Results are saved to the actor's default dataset. Access via:
- Console: View results directly in the Apify console
- API:
GET https://api.apify.com/v2/datasets/{datasetId}/items - Download: Export as JSON, CSV, or XML
Example Output
{"citation": "Title 6 → Chapter I → Part 158 → § 158.201","type": "Section","excerptText": "Cybersecurity is a matter of homeland security and one of the core missions of the Department. Cybersecurity responsibilities are vested in the Secretary and distributed throughout the Department with responsibilities relating to cybersecurity...","score": 8.947,"starts_on": "2021-11-15","ends_on": null,"ecfrUrl": "https://www.ecfr.gov/current/title-6/section-158.201","searchQuery": "cybersecurity","hierarchy": {"title": "6","chapter": "I","part": "158","subpart": "B","section": "158.201"},"headings": {"title": "Domestic Security","chapter": "Department of Homeland Security, Office of the Secretary","part": "Cybersecurity Talent Management System (CTMS)","subpart": "DHS Cybersecurity Service","section": "Cybersecurity mission."},"fetchedAt": "2025-06-12T14:32:18.542Z"}
Pricing
The eCFR Regulations Search Actor is priced at $0.003 per result in addition to Apify's compute unit costs.
Pricing examples:
- 200 results → $0.60 (plus compute)
- 500 results → $1.50 (plus compute)
- 2,000 results → $6.00 (plus compute)
Apify's compute units are typically $0.25–$0.50 per run depending on actor complexity and runtime. See Apify pricing for details.
FAQ
Q: What is the eCFR? A: The Electronic Code of Federal Regulations (eCFR) is the official, regularly updated full-text repository of U.S. federal regulations maintained by the Government Publishing Office (GPO). It's the source of truth for all CFR titles (1-50).
Q: How often is the eCFR updated? A: The eCFR is updated daily to reflect new regulations, amendments, and supersessions. This actor retrieves the latest version every run.
Q: Can I search across all 50 titles? A: Yes! The eCFR API searches all titles by default. Your search term will return results from any title matching your query.
Q: How accurate are the citations?
A: Citations are auto-constructed from the eCFR's official hierarchy. The hierarchy and headings fields contain the raw structured data from the API, which is the authoritative source.
Q: What if I get 0 results? A: Your search term didn't match any regulations in the eCFR. Try:
- Broader terms (e.g.,
"financial"instead of"offshore derivative swap") - Acronyms (e.g.,
"HIPAA"or"FCPA") - Agency names (e.g.,
"EPA"or"FDA")
Q: Can I use this data in a RAG or LLM pipeline?
A: Yes! The excerptText field is stripped of HTML and optimized for AI models. The citation field provides precise regulatory context. Feed these into your LLM context for accurate compliance queries.
Q: How large can my result set be? A: Up to 10,000 results per run. If you need more, run multiple searches with different query terms or use the API's built-in pagination.
Q: Is there a rate limit? A: The eCFR API itself has no documented rate limits. The actor adds a 300ms delay between pages to be respectful.
Q: What if a regulation is superseded?
A: The ends_on field will show the date it was removed/superseded. The ecfrUrl will still link to the archive or note the supersession. Always check ends_on to identify inactive regulations.
Use Cases
Compliance Monitoring
Search your industry's key terms ("healthcare", "HIPAA", "FDA approval") and monitor for new or updated regulations. Feed results into your GRC platform.
Regulatory Intelligence
Track regulatory changes by searching broad terms quarterly ("environmental", "financial reporting", "data protection") and analyzing trends.
Legal Research
Search for specific regulatory provisions (e.g., "electronic signatures", "good faith standard") with full-text context and precise citations.
Policy Analysis
Analyze how multiple regulations address the same issue (e.g., search "consumer privacy" across all titles) to understand fragmentation and overlap.
AI/LLM Integration
Feed excerptText + citation into a compliance chatbot or RAG system to provide users with accurate regulatory guidance.
Legal Disclaimer
This actor retrieves publicly available U.S. government data from the Electronic Code of Federal Regulations (eCFR). All data is in the public domain. This tool is provided for informational purposes only and is not a substitute for legal or regulatory advice. Always verify critical compliance requirements with official sources and consult with qualified legal counsel. The accuracy and completeness of data depend on the eCFR's updates; this actor reflects the state of the eCFR at the time of execution.
Support
For issues, feature requests, or data quality questions, contact the actor developer or open an issue in the Apify Actor documentation.
Related Actors
- eCFR Agencies Scraper — Extract structured data about federal agencies from eCFR.
- CISA KEV Scraper — Track CISA's Known Exploited Vulnerabilities for compliance and security audits.
- Regulations.gov Scraper — Scrape proposed rules and public comments from Regulations.gov.
Actor Version: 0.1
Last Updated: June 2025
Data Source: Electronic Code of Federal Regulations (eCFR) API
Maintained By: seatsignal