regulations_browse_cfr
regulations_browse_cfrExplore the codified Code of Federal Regulations via eCFR in two modes. "structure" walks the CFR hierarchy (all 50 titles, or one title's chapters → parts → sections) to discover a cite when the exact citation is unknown. "search" runs a full-text query across the codified CFR and returns matching sections with their hierarchy path and a snippet. Both modes accept title and part to narrow the scope, so a part surfaced by structure mode can be searched directly instead of filtering a whole title's hits by eye. Both feed regulations_get_cfr_section. Every search result reports which corpus answered it — the synced local mirror or the live eCFR index — and what that corpus covers, in source and sourceScope.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Point-in-time date, ISO 8601 (YYYY-MM-DD). Defaults to current. Structure mode uses it for the historical hierarchy. Search mode matches only the section text in effect on that day, so a past date searches the CFR as it read then; eCFR indexes 2017-01-03 onward and rejects a date past its current index date. | |
| mode | Yes | "structure": browse the CFR tree (titles, or one title's chapters/parts/sections) to find a cite. "search": full-text search the codified CFR for sections matching a phrase. | |
| part | No | CFR part within the title, in both modes — structure mode narrows the returned tree to that part's sections, search mode restricts matches to text inside that part. Requires title; a part on its own is rejected. Parts can be alphanumeric ("1203a", "16A") and are matched exactly, so pass the identifier as eCFR writes it — "58", not "Part 58" or "058". | |
| query | No | Full-text search phrase (search mode, required in that mode). Ignored in structure mode. | |
| title | No | CFR title number (1–50). Structure mode: omit to list all 50 titles, or provide to expand one title. Search mode: optional filter restricting matches to that title — e.g. 40 for environmental rules, 21 for food and drugs. | |
| per_page | No | Results per page in search mode (1–50, default 20). Ignored in structure mode. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Resolved point-in-time date — the hierarchy snapshot (structure mode), or the day whose section text was searched (search mode, live source only). | |
| mode | No | Which mode produced this result. | |
| error | No | Present when the call failed. Absent on success. | |
| nodes | No | Hierarchy nodes at the requested level (structure mode). | |
| shown | No | Results returned on this page (search mode). | |
| notice | No | Guidance when nothing matched. | |
| source | No | Provenance: the synced mirror index, or the live eCFR search API (search mode). | |
| results | No | Matching CFR sections, this page (search mode). | |
| truncated | No | True when search results were capped at per_page. | |
| totalCount | No | Total search matches before pagination (search mode). | |
| sourceScope | No | What the answering corpus covers — the mirror's title coverage, or the live index and the date it was read at — narrowed by whichever of title and part the call supplied (search mode). Read it before concluding a query found nothing. |