Check the setup
- Python 3.10 or newer
- A notebook environment such as Jupyter or Google Colab
- A free api.data.gov key saved in the DATA_GOV_API_KEY environment variable
Federal rulemaking dockets, documents, and public comments for building comment-period monitors and agency docket trackers.
From source to product signal
The regulations.gov v4 API searches dockets and documents with an api.data.gov key. Start with one agency and posted documents. Comment text is public input, not agency policy, and bulk comment jobs have separate rate limits.
Install the packages, then run the notebook cell.
python -m pip install pandas requests
import os
import pandas as pd
import requests
response = requests.get(
"https://api.regulations.gov/v4/documents",
params={
"api_key": os.environ["DATA_GOV_API_KEY"],
"filter[agencyId]": "EPA",
"filter[documentType]": "Proposed Rule",
"page[size]": 20,
"sort": "-postedDate",
},
timeout=30,
)
response.raise_for_status()
documents = pd.json_normalize(response.json()["data"])
documents["retrieved_at_utc"] = pd.Timestamp.now(tz="UTC")
print(documents.head())Test a useful signal
Test whether v4 document search can power a bounded comment-period monitor.
U.S. General Services Administration is a government source. Last verified 2026-08-18. Temporal coverage: federal dockets and comments available through regulations.gov.