regulations_search_documents
Search Regulations.gov for rulemaking documents such as rules, proposed rules, and notices. Filter by agency, docket, document type, date, or comment period status.
Instructions
Search Regulations.gov rulemaking DOCUMENTS (rules, proposed rules, notices) — the flagship of the api.data.gov keyed source (JSON:API; DATA_GOV_API_KEY or the shared DEMO_KEY). Input searchTerm/query, filters (agencyId, docketId, documentType, withinCommentPeriod, postedDateGe/Le YYYY-MM-DD), sort (def -postedDate), pageNumber (1..40 HARD cap), pageSize (5..250, def 25). Returns { documents:[{ id, documentType, title, agencyId, docketId, postedDate, commentEndDate, openForComment, withinCommentPeriod, frDocNum, objectId }] } + honest _meta. HONESTY: totalAvailable = meta.totalElements (the EXACT real total, ~millions), NOT the capped totalPages; page[number] is hard-capped at 40 (10,000-record ceiling) — at the ceiling hasMore stays true but nextOffset is null + a note says how to reach the rest (narrow filters / seek by lastModifiedDate). Genuine-empty ⇒ complete:true/total:0; an outage/4xx THROWS (never a fake empty).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | Sort order (default '-postedDate'). Live-verified set: -postedDate/postedDate/-lastModifiedDate/lastModifiedDate/-commentEndDate (non-exhaustive). | |
| query | No | Alias for `searchTerm` (either is accepted; both feed filter[searchTerm]). | |
| agencyId | No | Filter by posting agency acronym (filter[agencyId]), e.g. 'EPA', 'FDA'. | |
| docketId | No | Filter by docket id (filter[docketId]), e.g. 'EPA-HQ-OAR-2021-0257'. | |
| pageSize | No | Records per page (page[size]), 5..250, default 25. | |
| pageNumber | No | 1-based page number, 1..40 (HARD cap — page[number] max is 40; the reachable window is 40×pageSize ≤ 10,000 records). | |
| searchTerm | No | Full-text search term (filter[searchTerm]), e.g. 'artificial intelligence'. | |
| documentType | No | Filter by document type (documents only): Rule / Proposed Rule / Notice / Supporting & Related Material / Other. | |
| postedDateGe | No | Posted on/after this date, YYYY-MM-DD (filter[postedDate][ge]). | |
| postedDateLe | No | Posted on/before this date, YYYY-MM-DD (filter[postedDate][le]). | |
| withinCommentPeriod | No | true ⇒ only documents currently open for comment (documents only; filter[withinCommentPeriod]). |